netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 net 0/2] af_unix: Fix SO_PEEK_OFF bug in unix_stream_read_generic().
@ 2025-11-17 17:47 Kuniyuki Iwashima
  2025-11-17 17:47 ` [PATCH v1 net 1/2] af_unix: Read sk_peek_offset() again after sleeping " Kuniyuki Iwashima
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kuniyuki Iwashima @ 2025-11-17 17:47 UTC (permalink / raw)
  To: David S . Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, Aaron Conole, Kuniyuki Iwashima, Kuniyuki Iwashima,
	netdev

Miao Wang reported a bug of SO_PEEK_OFF on AF_UNIX SOCK_STREAM socket.

Patch 1 fixes the bug and Patch 2 adds a new selftest to cover the case.


Kuniyuki Iwashima (2):
  af_unix: Read sk_peek_offset() again after sleeping in
    unix_stream_read_generic().
  selftest: af_unix: Add test for SO_PEEK_OFF.

 net/unix/af_unix.c                            |   3 +-
 tools/testing/selftests/net/.gitignore        |   1 +
 tools/testing/selftests/net/af_unix/Makefile  |   1 +
 .../selftests/net/af_unix/so_peek_off.c       | 162 ++++++++++++++++++
 4 files changed, 165 insertions(+), 2 deletions(-)
 create mode 100644 tools/testing/selftests/net/af_unix/so_peek_off.c

-- 
2.52.0.rc1.455.g30608eb744-goog


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

end of thread, other threads:[~2025-11-19  3:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-17 17:47 [PATCH v1 net 0/2] af_unix: Fix SO_PEEK_OFF bug in unix_stream_read_generic() Kuniyuki Iwashima
2025-11-17 17:47 ` [PATCH v1 net 1/2] af_unix: Read sk_peek_offset() again after sleeping " Kuniyuki Iwashima
2025-11-17 17:47 ` [PATCH v1 net 2/2] selftest: af_unix: Add test for SO_PEEK_OFF Kuniyuki Iwashima
2025-11-17 23:09   ` Miao Wang
2025-11-18  4:10     ` Kuniyuki Iwashima
2025-11-18  1:26   ` Jakub Kicinski
2025-11-18  3:07     ` Kuniyuki Iwashima
2025-11-19  3:30 ` [PATCH v1 net 0/2] af_unix: Fix SO_PEEK_OFF bug in unix_stream_read_generic() 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;
as well as URLs for NNTP newsgroup(s).