Skip to content

Commit 6ebf051

Browse files
isilenceaxboe
authored andcommitted
io_uring/net: save msg_control for compat
Match the compat part of io_sendmsg_copy_hdr() with its counterpart and save msg_control. Fixes: c559780 ("io_uring/net: move receive multishot out of the generic msghdr path") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/2a8418821fe83d3b64350ad2b3c0303e9b732bbd.1740498502.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 4614de7 commit 6ebf051

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

io_uring/net.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ static int io_sendmsg_copy_hdr(struct io_kiocb *req,
322322
if (unlikely(ret))
323323
return ret;
324324

325-
return __get_compat_msghdr(&iomsg->msg, &cmsg, NULL);
325+
ret = __get_compat_msghdr(&iomsg->msg, &cmsg, NULL);
326+
sr->msg_control = iomsg->msg.msg_control_user;
327+
return ret;
326328
}
327329
#endif
328330

0 commit comments

Comments
 (0)