Commit 6fb53cf
io_uring: verify resv is 0 in ringfd register/unregister
Only allow resv field to be 0 in struct io_uring_rsrc_update user
arguments.
Fixes: e7a6c00 ("io_uring: add support for registering ring file descriptors")
Signed-off-by: Dylan Yudaken <dylany@fb.com>
Link: https://lore.kernel.org/r/20220412163042.2788062-4-dylany@fb.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent d8a3ba9 commit 6fb53cf
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10533 | 10533 | | |
10534 | 10534 | | |
10535 | 10535 | | |
| 10536 | + | |
| 10537 | + | |
| 10538 | + | |
| 10539 | + | |
| 10540 | + | |
10536 | 10541 | | |
10537 | 10542 | | |
10538 | 10543 | | |
| |||
10579 | 10584 | | |
10580 | 10585 | | |
10581 | 10586 | | |
10582 | | - | |
| 10587 | + | |
10583 | 10588 | | |
10584 | 10589 | | |
10585 | 10590 | | |
| |||
0 commit comments