]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/fs: remove sqe->rw_flags checking from LINKAT
authorJens Axboe <axboe@kernel.dk>
Wed, 4 Oct 2023 14:43:13 +0000 (08:43 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 11:18:22 +0000 (13:18 +0200)
commita2b1d486fb7030b6298c159c35ea9febbe8a921c
tree40470645dbe45df288f4a89acf1fe1a78d3d625a
parent111fe77cb13fe0b74cad7fe64d87ce5fcfefd23b
io_uring/fs: remove sqe->rw_flags checking from LINKAT

commit a52d4f657568d6458e873f74a9602e022afe666f upstream.

This is unionized with the actual link flags, so they can of course be
set and they will be evaluated further down. If not we fail any LINKAT
that has to set option flags.

Fixes: cf30da90bc3a ("io_uring: add support for IORING_OP_LINKAT")
Cc: stable@vger.kernel.org
Reported-by: Thomas Leonard <talex5@gmail.com>
Link: https://github.com/axboe/liburing/issues/955
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c