From: Kuniyuki Iwashima <kuniyu@google.com>
To: "David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Paolo Abeni <pabeni@redhat.com>
Cc: Simon Horman <horms@kernel.org>,
Kuniyuki Iwashima <kuniyu@google.com>,
Kuniyuki Iwashima <kuni1840@gmail.com>,
netdev@vger.kernel.org
Subject: [PATCH v1 net-next 0/4] af_unix: Drop MSG_OOB support.
Date: Mon, 16 Nov 2026 02:18:17 +0000 [thread overview]
Message-ID: <20261116021845.2533130-1-kuniyu@google.com> (raw)
MSG_OOB implementation is quite buggy and has received many CVEs,
which led to CONFIG_AF_UNIX_OOB, but the default is 'y' so it is
enabled by major distros, even though there is no clear use case.
In addition, such bugs have changed user-visible MSG_OOB
behaviour many times, but no one complained about that.
MSG_OOB is often used to upgrade a trivial bug to LPE.
We do not have good reason to maintain such an unused feature
and expose many users to risk.
This series drops MSG_OOB support.
Kuniyuki Iwashima (4):
selftests: landlock: Replace MSG_OOB with O_ASYNC+F_SETSIG.
selftests: bpf: sockmap: Remove AF_UNIX MSG_OOB test case.
selftests: af_unix: Remove MSG_OOB tests.
af_unix: Remove MSG_OOB.
include/net/af_unix.h | 3 -
include/net/dropreason-core.h | 6 -
net/unix/Kconfig | 7 -
net/unix/af_unix.c | 252 +----
.../selftests/bpf/prog_tests/sockmap_redir.c | 45 +-
tools/testing/selftests/landlock/config | 1 -
.../selftests/landlock/scoped_signal_test.c | 55 +-
.../testing/selftests/net/af_unix/.gitignore | 1 -
tools/testing/selftests/net/af_unix/Makefile | 1 -
tools/testing/selftests/net/af_unix/config | 1 -
tools/testing/selftests/net/af_unix/msg_oob.c | 958 ------------------
.../selftests/net/af_unix/scm_rights.c | 45 +-
12 files changed, 35 insertions(+), 1340 deletions(-)
delete mode 100644 tools/testing/selftests/net/af_unix/msg_oob.c
--
2.56.0.611.g1030f0b940-goog
next reply other threads:[~2026-11-16 2:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 2:18 Kuniyuki Iwashima [this message]
2026-11-16 2:18 ` [PATCH v1 net-next 1/4] selftests: landlock: Replace MSG_OOB with O_ASYNC+F_SETSIG Kuniyuki Iwashima
2026-11-16 2:18 ` [PATCH v1 net-next 2/4] selftests: bpf: sockmap: Remove AF_UNIX MSG_OOB test case Kuniyuki Iwashima
2026-11-16 2:18 ` [PATCH v1 net-next 3/4] selftests: af_unix: Remove MSG_OOB tests Kuniyuki Iwashima
2026-11-16 2:18 ` [PATCH v1 net-next 4/4] af_unix: Remove MSG_OOB Kuniyuki Iwashima
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=20261116021845.2533130-1-kuniyu@google.com \
--to=kuniyu@google.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=kuni1840@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.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