Skip to content

Fix op_recv stack corruption

Gabriel Krisman Bertazi io-uring 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2test/send_recvmsg: Preserve msghdr until op_recvmsg completestest/send_recvmsg.c+8 -87 replies
2/2test/recv-msgall-stream: Preserve msghdr until op_recvmsg completestest/recv-msgall-stream.c+7 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH liburing 0/2] Fix op_recv stack corruption

Jens,

These two tests were failing on my debug infrastructure. It seems gcc hides the issue with a higher level of optimization, most likely by smarting out the local variable allocation straight to registers, which is why we don't observe it more often. When building with '-O0 -g3', I could trigger it 100% of time. Tested with kernel 7.2-rc4.

Gabriel Krisman Bertazi (2):
test/send_recvmsg: Preserve msghdr until op_recvmsg completes test/recv-msgall-stream: Preserve msghdr until op_recvmsg completes

 test/recv-msgall-stream.c | 14 +++++++-------
 test/send_recvmsg.c       | 16 ++++++++--------
 2 files changed, 15 insertions(+), 15 deletions(-)
Signature · 1 line
2.54.0