* [PATCH 1/1] io_uring/net: save msg_control for compat
@ 2025-02-25 15:59 Pavel Begunkov
2025-02-25 17:01 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Begunkov @ 2025-02-25 15:59 UTC (permalink / raw)
To: io-uring; +Cc: asml.silence
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 <[email protected]>
---
io_uring/net.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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
--
2.48.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] io_uring/net: save msg_control for compat
2025-02-25 15:59 [PATCH 1/1] io_uring/net: save msg_control for compat Pavel Begunkov
@ 2025-02-25 17:01 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2025-02-25 17:01 UTC (permalink / raw)
To: io-uring, Pavel Begunkov
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,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-25 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-25 15:59 [PATCH 1/1] io_uring/net: save msg_control for compat Pavel Begunkov
2025-02-25 17:01 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox