]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: add IOPOLL and reserved field checks to IORING_OP_UNLINKAT
authorJens Axboe <axboe@kernel.dk>
Wed, 23 Jun 2021 15:07:45 +0000 (09:07 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:31 +0000 (17:00 +0200)
commit3d62a74f2b90a51b873aa622ff768947eda99db1
tree1e269c5bd557509660cd4ab16cfe168d6ab11dd0
parentfacc7c069f0a41c81602de87694700d6feecf5a7
io_uring: add IOPOLL and reserved field checks to IORING_OP_UNLINKAT

commit 22634bc5620d29765e5199c7b230a372c7ddcda2 upstream.

We can't support IOPOLL with non-pollable request types, and we should
check for unused/reserved fields like we do for other request types.

Fixes: 14a1143b68ee ("io_uring: add support for IORING_OP_UNLINKAT")
Cc: stable@vger.kernel.org
Reported-by: Dmitry Kadashev <dkadashev@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c