io_uring: statx/openat/openat2 don't support fixed files
authorJens Axboe <axboe@kernel.dk>
Fri, 7 Feb 2020 04:31:40 +0000 (21:31 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Feb 2020 20:06:33 +0000 (13:06 -0700)
commitcf3040ca55f2085b0a372a620ee2cb93ae19b686
treed0fc59857057a21bc5289eef781c0e765b752dfb
parent1e95081cb5b4cf77065d37866f57cf3c90a3df78
io_uring: statx/openat/openat2 don't support fixed files

All of these opcodes take a directory file descriptor. We can't easily
support fixed files for these operations, and the use case for that
probably isn't all that clear (or sensible) anyway.

Disable IOSQE_FIXED_FILE for these operations.

Reported-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c