Jens Axboe
ee116574de
io_uring/nop: ensure nop->fd is always initialized
...
A previous commit added file support for nop, but it only initializes
nop->fd if IORING_NOP_FIXED_FILE is set. That check should be
IORING_NOP_FILE. Fix up the condition in nop preparation, and initialize
it to a sane value even if we're not going to be directly using it.
While in there, do the same thing for the nop->buffer field.
Reported-by: syzbot+9a8500a45c2cabdf9577@syzkaller.appspotmail.com
Fixes: a85f31052bce ("io_uring/nop: add support for testing registered files and buffers")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2024-11-21 07:15:30 -07:00
..
2024-06-16 14:54:55 -06:00
2022-07-24 18:39:11 -06:00
2024-04-15 08:10:25 -06:00
2024-11-06 13:55:38 -07:00
2024-10-29 13:43:27 -06:00
2023-05-26 20:22:41 -06:00
2022-07-24 18:39:11 -06:00
2024-10-29 13:43:26 -06:00
2024-06-16 14:54:55 -06:00
2024-11-06 13:55:38 -07:00
2022-07-24 18:39:12 -06:00
2024-11-07 15:24:33 -07:00
2024-11-07 15:24:33 -07:00
2023-11-20 09:01:42 -07:00
2022-07-24 18:39:11 -06:00
2024-11-06 13:55:38 -07:00
2024-11-06 13:55:38 -07:00
2024-11-21 07:11:00 -07:00
2024-11-21 07:11:00 -07:00
2024-09-11 07:27:56 -06:00
2024-06-16 14:54:55 -06:00
2024-09-16 13:29:00 +02:00
2024-08-29 08:44:58 -06:00
2024-08-30 10:52:02 -06:00
2024-11-20 08:01:59 -07:00
2024-11-15 09:58:34 -07:00
2024-11-15 09:55:54 -07:00
2024-10-29 13:43:26 -06:00
2024-11-06 13:55:38 -07:00
2024-11-06 13:55:38 -07:00
2024-11-07 15:24:33 -07:00
2024-06-19 07:57:21 -06:00
2024-11-21 07:15:30 -07:00
2022-07-24 18:39:11 -06:00
2024-11-06 13:55:38 -07:00
2024-04-22 19:31:18 -06:00
2024-10-29 13:43:28 -06:00
2024-06-19 08:58:00 -06:00
2024-01-23 15:25:14 -07:00
2023-12-12 07:42:57 -07:00
2024-11-06 13:55:38 -07:00
2024-11-06 13:55:38 -07:00
2024-04-15 08:10:26 -06:00
2024-11-18 09:10:56 -07:00
2024-11-15 09:58:34 -07:00
2024-11-07 15:24:33 -07:00
2024-11-07 15:24:33 -07:00
2024-11-07 15:24:33 -07:00
2024-04-15 08:10:25 -06:00
2023-03-09 10:10:58 -07:00
2024-11-07 15:24:33 -07:00
2024-10-29 13:43:28 -06:00
2024-10-29 13:43:27 -06:00
2024-03-01 06:28:19 -07:00
2024-06-05 17:03:57 +02:00
2022-07-24 18:39:11 -06:00
2023-01-29 15:18:26 -07:00
2022-07-24 18:39:11 -06:00
2024-11-06 13:55:38 -07:00
2022-10-07 12:25:30 -06:00
2024-11-06 13:55:38 -07:00
2024-11-06 13:55:38 -07:00
2024-02-09 09:04:39 -07:00
2024-02-09 09:04:39 -07:00
2024-11-11 08:11:37 -07:00
2024-11-06 13:55:38 -07:00
2024-11-06 13:55:38 -07:00
2024-11-06 13:55:38 -07:00
2024-06-05 17:03:57 +02:00
2022-07-24 18:39:11 -06:00