public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net 0/4] af_unix: Fix two OOB issues.
@ 2025-06-19  4:13 Kuniyuki Iwashima
  2025-06-19  4:13 ` [PATCH v2 net 1/4] af_unix: Don't leave consecutive consumed OOB skbs Kuniyuki Iwashima
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Kuniyuki Iwashima @ 2025-06-19  4:13 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Rao Shoaib, Kuniyuki Iwashima, Kuniyuki Iwashima,
	netdev

From: Kuniyuki Iwashima <kuniyu@google.com>

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/20250618043453.281247-1-kuni1840@gmail.com/


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(-)

-- 
2.49.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-06-24  8:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  4:13 [PATCH v2 net 0/4] af_unix: Fix two OOB issues Kuniyuki Iwashima
2025-06-19  4:13 ` [PATCH v2 net 1/4] af_unix: Don't leave consecutive consumed OOB skbs Kuniyuki Iwashima
2025-06-19  4:13 ` [PATCH v2 net 2/4] af_unix: Add test for consecutive consumed OOB Kuniyuki Iwashima
2025-06-19  4:13 ` [PATCH v2 net 3/4] af_unix: Don't set -ECONNRESET for consumed OOB skb Kuniyuki Iwashima
2025-06-23 12:12   ` Christian Brauner
2025-06-19  4:13 ` [PATCH v2 net 4/4] selftest: af_unix: Add tests for -ECONNRESET Kuniyuki Iwashima
2025-06-24  8:30 ` [PATCH v2 net 0/4] af_unix: Fix two OOB issues patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox