Netdev List
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf, sockmap: fix copied_seq left behind when a stream parser is removed
@ 2026-06-30 20:50 Sechang Lim
  2026-06-30 20:50 ` [PATCH bpf 1/2] bpf, sockmap: settle copied_seq " Sechang Lim
  2026-06-30 20:50 ` [PATCH bpf 2/2] selftests/bpf: test sockmap strparser recover with undelivered ingress Sechang Lim
  0 siblings, 2 replies; 3+ messages in thread
From: Sechang Lim @ 2026-06-30 20:50 UTC (permalink / raw)
  To: Eric Dumazet, Neal Cardwell, John Fastabend, Jakub Sitnicki,
	Jiayuan Chen, David S. Miller, Jakub Kicinski, Paolo Abeni,
	Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Eduard Zingerman, Kumar Kartikeya Dwivedi, Shuah Khan
  Cc: Kuniyuki Iwashima, Simon Horman, Martin KaFai Lau, Song Liu,
	Yonghong Song, Jiri Olsa, Emil Tsalapatis, Ihor Solodrai, netdev,
	bpf, linux-kernel, linux-kselftest

A stream-parser sockmap socket can be removed with SK_PASS data still
parked on its ingress_msg queue. The copied_seq rollback for that data is
never repaid, leaving copied_seq behind sk_receive_queue, so the native
tcp_recvmsg() warns. Patch 1 settles copied_seq on removal. Patch 2 adds a
selftest.

Sechang Lim (2):
  bpf, sockmap: settle copied_seq when a stream parser is removed
  selftests/bpf: test sockmap strparser recover with undelivered ingress

 net/ipv4/tcp_bpf.c                            |  9 +++
 .../selftests/bpf/prog_tests/sockmap_basic.c  | 59 +++++++++++++++++++
 2 files changed, 68 insertions(+)

-- 
2.43.0


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

end of thread, other threads:[~2026-06-30 20:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30 20:50 [PATCH bpf 0/2] bpf, sockmap: fix copied_seq left behind when a stream parser is removed Sechang Lim
2026-06-30 20:50 ` [PATCH bpf 1/2] bpf, sockmap: settle copied_seq " Sechang Lim
2026-06-30 20:50 ` [PATCH bpf 2/2] selftests/bpf: test sockmap strparser recover with undelivered ingress Sechang Lim

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