]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring/fs: consider link->flags when getting path for LINKAT
authorCharles Mirabile <cmirabil@redhat.com>
Mon, 20 Nov 2023 10:55:45 +0000 (05:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:31:24 +0000 (07:31 +0100)
commit35b5d86e43ec8efe2e40881a1f0b49da72efe9e4
tree849837836261dee9c9ceb2f76c93bf44654cb38f
parent2bb75a2c3490ecdc536961859f1ca8e9c029004f
io_uring/fs: consider link->flags when getting path for LINKAT

commit 8479063f1fbee201a8739130e816cc331b675838 upstream.

In order for `AT_EMPTY_PATH` to work as expected, the fact
that the user wants that behavior needs to make it to `getname_flags`
or it will return ENOENT.

Fixes: cf30da90bc3a ("io_uring: add support for IORING_OP_LINKAT")
Cc: <stable@vger.kernel.org>
Link: https://github.com/axboe/liburing/issues/995
Signed-off-by: Charles Mirabile <cmirabil@redhat.com>
Link: https://lore.kernel.org/r/20231120105545.1209530-1-cmirabil@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
io_uring/io_uring.c