Skip to content

Commit 619ca26

Browse files
committed
Merge tag 'io_uring-5.10-2020-12-05' of git://git.kernel.dk/linux-block
Pull io_uring fix from Jens Axboe: "Just a small fix this time, for an issue with 32-bit compat apps and buffer selection with recvmsg" * tag 'io_uring-5.10-2020-12-05' of git://git.kernel.dk/linux-block: io_uring: fix recvmsg setup with compat buf-select
2 parents 32f741b + 2d280bc commit 619ca26

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

fs/io_uring.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4499,7 +4499,8 @@ static int __io_compat_recvmsg_copy_hdr(struct io_kiocb *req,
44994499
return -EFAULT;
45004500
if (clen < 0)
45014501
return -EINVAL;
4502-
sr->len = iomsg->iov[0].iov_len;
4502+
sr->len = clen;
4503+
iomsg->iov[0].iov_len = clen;
45034504
iomsg->iov = NULL;
45044505
} else {
45054506
ret = __import_iovec(READ, (struct iovec __user *)uiov, len,

0 commit comments

Comments
 (0)