public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Kuniyuki Iwashima <kuni1840@gmail.com>
To: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>,
	Rao Shoaib <rao.shoaib@oracle.com>,
	Kuniyuki Iwashima <kuniyu@google.com>,
	Kuniyuki Iwashima <kuni1840@gmail.com>,
	netdev@vger.kernel.org
Subject: [PATCH v2 net 0/4] af_unix: Fix two OOB issues.
Date: Wed, 18 Jun 2025 21:13:54 -0700	[thread overview]
Message-ID: <20250619041457.1132791-1-kuni1840@gmail.com> (raw)

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


             reply	other threads:[~2025-06-19  4:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-19  4:13 Kuniyuki Iwashima [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250619041457.1132791-1-kuni1840@gmail.com \
    --to=kuni1840@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rao.shoaib@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox