diff options
author | 2023-09-29 12:56:34 -0700 | |
---|---|---|
committer | 2023-09-29 12:56:34 -0700 | |
commit | a98b95959b98f0015ea159292f516f9e8cc9e4db (patch) | |
tree | a05bb3bb35e111d18d6638109e12e108dbd664ba | |
parent | Merge tag 'slab-fixes-for-6.6-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab (diff) | |
parent | io_uring/fs: remove sqe->rw_flags checking from LINKAT (diff) | |
download | wireguard-linux-a98b95959b98f0015ea159292f516f9e8cc9e4db.tar.xz wireguard-linux-a98b95959b98f0015ea159292f516f9e8cc9e4db.zip |
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; |