io_uring: IORING_OP_F[GS]ETXATTR is fine with REQ_F_FIXED_FILE
authorJens Axboe <axboe@kernel.dk>
Mon, 7 Oct 2024 18:20:20 +0000 (12:20 -0600)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 20 Oct 2024 00:40:10 +0000 (20:40 -0400)
commitdc7e76ba7a6057e4c12d449db49f026d0ec238ec
tree445251ca3e9cdd836398c2a36016767645331144
parente896474fe4851ffc4dd860c92daa906783090346
io_uring: IORING_OP_F[GS]ETXATTR is fine with REQ_F_FIXED_FILE

Rejection of IOSQE_FIXED_FILE combined with IORING_OP_[GS]ETXATTR
is fine - these do not take a file descriptor, so such combination
makes no sense.  The checks are misplaced, though - as it is, they
triggers on IORING_OP_F[GS]ETXATTR as well, and those do take
a file reference, no matter the origin.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
io_uring/xattr.c