]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: check that data field is 0 in ringfd unregister
authorEugene Syromiatnikov <esyr@redhat.com>
Fri, 29 Apr 2022 14:22:18 +0000 (16:22 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Apr 2022 14:39:43 +0000 (08:39 -0600)
commit24f0a6fd39f7296330e4fa89638446d7197fe9fe
tree38f0530dc123bfb1ea423537ab422eee8dc7e9e6
parent2b6c2faf7555b9023065e123dbdd5f5d462dd8b1
io_uring: check that data field is 0 in ringfd unregister

Only allow data field to be 0 in struct io_uring_rsrc_update user
arguments to allow for future possible usage.

Fixes: 7640404d4ea7 ("io_uring: add support for registering ring file descriptors")
Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
Link: https://lore.kernel.org/r/20220429142218.GA28696@asgard.redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c