]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring/fs: remove sqe->rw_flags checking from LINKAT
authorJens Axboe <axboe@kernel.dk>
Thu, 28 Sep 2023 15:23:27 +0000 (09:23 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Oct 2023 12:57:02 +0000 (14:57 +0200)
commit75c307d9f2fbb949cb8713b8f659fec5f21f2c34
tree5a2bea14a6848f457947abdacf76187633097a64
parent06fba8a8dea22c2260785cafd74e6d42ac38711a
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/fs.c