diff mbox series

[1/1] io_uring/net: save msg_control for compat

Message ID 2a8418821fe83d3b64350ad2b3c0303e9b732bbd.1740498502.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [1/1] io_uring/net: save msg_control for compat | expand

Commit Message

Pavel Begunkov Feb. 25, 2025, 3:59 p.m. UTC
Match the compat part of io_sendmsg_copy_hdr() with its counterpart and
save msg_control.

Fixes: c55978024d123 ("io_uring/net: move receive multishot out of the generic msghdr path")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 io_uring/net.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Comments

Jens Axboe Feb. 25, 2025, 5:01 p.m. UTC | #1
On Tue, 25 Feb 2025 15:59:02 +0000, Pavel Begunkov wrote:
> Match the compat part of io_sendmsg_copy_hdr() with its counterpart and
> save msg_control.
> 
> 

Applied, thanks!

[1/1] io_uring/net: save msg_control for compat
      commit: 6ebf05189dfc6d0d597c99a6448a4d1064439a18

Best regards,
diff mbox series

Patch

diff --git a/io_uring/net.c b/io_uring/net.c
index 8283a1f55192..eda666c834e9 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -324,7 +324,9 @@  static int io_sendmsg_copy_hdr(struct io_kiocb *req,
 		if (unlikely(ret))
 			return ret;
 
-		return __get_compat_msghdr(&iomsg->msg, &cmsg, NULL);
+		ret = __get_compat_msghdr(&iomsg->msg, &cmsg, NULL);
+		sr->msg_control = iomsg->msg.msg_control_user;
+		return ret;
 	}
 #endif