Skip to content

af_unix: Minor fixes for MSG_OOB and MSG_PEEK.

Kuniyuki Iwashima netdev 1 version Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3af_unix: Update last skb marker in manage_oob().net/unix/af_unix.c+7 -31 replyApplied
2/3af_unix: Return immediately when manage_oob() returns NULL for 0-length buffer.net/unix/af_unix.c+1 -11 replyApplied
3/3selftest: af_unix: Add zero-buffer test for msg_oob.ctools/testing/selftests/net/af_unix/msg_oob.c+67 -00 repliesApplied

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH v1 net 0/3] af_unix: Minor fixes for MSG_OOB and MSG_PEEK.

Fahad Alharbi reported blocking recv(MSG_PEEK) could hog CPU due to OOB skb.

Patch 1 and 2 fixes the issues and Patch 3 adds tests.

Kuniyuki Iwashima (3):
af_unix: Update last skb marker in manage_oob().
af_unix: Return immediately when manage_oob() returns NULL for
0-length buffer.
selftest: af_unix: Add zero-buffer test for msg_oob.c

 net/unix/af_unix.c                            | 12 ++--
 tools/testing/selftests/net/af_unix/msg_oob.c | 67 +++++++++++++++++++
 2 files changed, 75 insertions(+), 4 deletions(-)
Signature · 1 line
2.55.0.970.g62bdec98f9-goog