Netdev List
 help / color / mirror / Atom feed
* [PATCH v1 net-next 0/4] af_unix: Drop MSG_OOB support.
@ 2026-11-16  2:18 Kuniyuki Iwashima
  2026-11-16  2:18 ` [PATCH v1 net-next 1/4] selftests: landlock: Replace MSG_OOB with O_ASYNC+F_SETSIG Kuniyuki Iwashima
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Kuniyuki Iwashima @ 2026-11-16  2:18 UTC (permalink / raw)
  To: David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Kuniyuki Iwashima, Kuniyuki Iwashima, netdev

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


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

end of thread, other threads:[~2026-11-16  2:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-16  2:18 [PATCH v1 net-next 0/4] af_unix: Drop MSG_OOB support Kuniyuki Iwashima
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

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