[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250619041457.1132791-1-kuni1840@gmail.com>
Date: Wed, 18 Jun 2025 21:13:54 -0700
From: Kuniyuki Iwashima <kuni1840@...il.com>
To: "David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Simon Horman <horms@...nel.org>,
Rao Shoaib <rao.shoaib@...cle.com>,
Kuniyuki Iwashima <kuniyu@...gle.com>,
Kuniyuki Iwashima <kuni1840@...il.com>,
netdev@...r.kernel.org
Subject: [PATCH v2 net 0/4] af_unix: Fix two OOB issues.
From: Kuniyuki Iwashima <kuniyu@...gle.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
Powered by blists - more mailing lists