diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-09-29 12:56:34 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-09-29 12:56:34 -0700 |
commit | a98b95959b98f0015ea159292f516f9e8cc9e4db (patch) | |
tree | a05bb3bb35e111d18d6638109e12e108dbd664ba | |
parent | 1c84724ccb1a9f6eaf727ded49dd7e22ac62cc5b (diff) | |
parent | a52d4f657568d6458e873f74a9602e022afe666f (diff) |
Merge tag 'io_uring-6.6-2023-09-28' of git://git.kernel.dk/linux
Pull io_uring fix from Jens Axboe:
"A single fix going to stable for the IORING_OP_LINKAT flag handling"
* tag 'io_uring-6.6-2023-09-28' of git://git.kernel.dk/linux:
io_uring/fs: remove sqe->rw_flags checking from LINKAT
-rw-r--r-- | io_uring/fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/fs.c b/io_uring/fs.c index f6a69a549fd4..08e3b175469c 100644 --- a/io_uring/fs.c +++ b/io_uring/fs.c @@ -243,7 +243,7 @@ int io_linkat_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe) struct io_link *lnk = io_kiocb_to_cmd(req, struct io_link); const char __user *oldf, *newf; - if (sqe->rw_flags || sqe->buf_index || sqe->splice_fd_in) + if (sqe->buf_index || sqe->splice_fd_in) return -EINVAL; if (unlikely(req->flags & REQ_F_FIXED_FILE)) return -EBADF; |