Skip to content

af_unix: Fix two OOB issues.

Kuniyuki Iwashima netdev 2 versions – 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 · linked by author and title

  1. v2 Latest4 patches 1 replyApplied 4/4
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

* Patch 3: skip the leading consumed OOB skb instead of freeing it

Patches in v2 All 4 applied

#Subject and filesSizeRepliesApplied
1/4af_unix: Don't leave consecutive consumed OOB skbs.net/unix/af_unix.c+11 -20 repliesApplied
2/4af_unix: Add test for consecutive consumed OOB.tools/testing/selftests/net/af_unix/msg_oob.c+23 -00 repliesApplied
3/4af_unix: Don't set -ECONNRESET for consumed OOB skb.net/unix/af_unix.c+12 -61 replyApplied
4/4selftest: af_unix: Add tests for -ECONNRESET.tools/testing/selftests/net/af_unix/msg_oob.c+115 -40 repliesApplied

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchJann HornChristian Brauner
1/4R-b
2/4
3/4A-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net 0/4] af_unix: Fix two OOB issues.

From: Kuniyuki Iwashima <[email protected]>

Recently, two issues are reported regarding MSG_OOB.

Patch 1 fixes issues that happen when multiple consumed OOB skbs are placed consecutively in the recv queue.

Patch 2 fixes an inconsistent behaviour that close()ing a socket with a consumed OOB skb at the head of the recv queue triggers -ECONNRESET on the peer's recv().

Changes:
v2:
* Patch 3: skip the leading consumed OOB skb instead of freeing it

v1: https://lore.kernel.org/netdev/[email protected]/

Kuniyuki Iwashima (4):
af_unix: Don't leave consecutive consumed OOB skbs.
af_unix: Add test for consecutive consumed OOB.
af_unix: Don't set -ECONNRESET for consumed OOB skb.
selftest: af_unix: Add tests for -ECONNRESET.

 net/unix/af_unix.c                            |  31 +++-
 tools/testing/selftests/net/af_unix/msg_oob.c | 142 +++++++++++++++++-
 2 files changed, 161 insertions(+), 12 deletions(-)
Signature · 1 line
2.49.0