BPF List
 help / color / mirror / Atom feed
* [PATCH bpf v2 0/3] tcp, bpf: fix CA state on open and the TCP_CONGESTION name check
@ 2026-12-04  9:01 Paul Moses
  2026-12-04  9:01 ` [PATCH bpf v2 1/3] tcp: reset congestion-control state when the route selects a new CA Paul Moses
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Paul Moses @ 2026-12-04  9:01 UTC (permalink / raw)
  To: bpf
  Cc: netdev, ast, daniel, martin.lau, edumazet, ncardwell, kuniyu,
	jiayuan.chen, Paul Moses

Patches 1 and 2 fix the cases Alexei reported [1]: stale CA state
when a route changes the algorithm or a child inherits the listener's
private state. Patch 3 uses the same name for the CDG check and lookup.

Patch 2 needs Jiayuan's fix [2] so the clone hook runs after the
child's CA state is cleared.

I left the callback issue [3] out after reading more historical context.

v1..v2: Add the two TCP fixes. The original BPF fix is patch 3.
v1: https://lore.kernel.org/bpf/20261130065659.621451-1-p@1g4.org/

splats:
p1:  BUG: KASAN: invalid-free in tcp_cdg_release+0x38/0xac
p2:  BUG: KASAN: slab-out-of-bounds in tcp_cdg_cong_avoid+0xe14/0x11c4
p3:  BUG: KASAN: double-free in tcp_cdg_release+0x38/0xac

refs:
[1] https://lore.kernel.org/netdev/DNASOXUN4KAE.1IJL3LGF4E1DO@gmail.com/
[2] https://lore.kernel.org/bpf/20261130041156.295524-1-jiayuan.chen@linux.dev/
[3] https://lore.kernel.org/bpf/2R3IejGOudqccITwe2YD7Iz6tMgFlLhGy12eQ3HWVSx-QgFb0uWBGA_WKHCHq0967iKpsbRJL4sEpxGciBlGFKs6kwBBauQLCWEiza-qes8=@1g4.org/

Paul Moses (3):
  tcp: reset congestion-control state when the route selects a new CA
  tcp: clear inherited congestion-control state for a cloned child
  bpf: check and set TCP congestion control from the same name

 net/core/filter.c        | 11 ++++++++---
 net/ipv4/tcp_minisocks.c |  3 +++
 net/ipv4/tcp_output.c    | 10 ++++++++--
 3 files changed, 19 insertions(+), 5 deletions(-)


base-commit: 007722b8211f7b34fdf21b1e6a9c32497633ea29
prerequisite-patch-id: ccd3c308caecec9d14cd15ceef9b817171f77b1f
-- 
2.56.0.lol.gf7de81456940



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

end of thread, other threads:[~2026-12-04 21:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04  9:01 [PATCH bpf v2 0/3] tcp, bpf: fix CA state on open and the TCP_CONGESTION name check Paul Moses
2026-12-04  9:01 ` [PATCH bpf v2 1/3] tcp: reset congestion-control state when the route selects a new CA Paul Moses
2026-12-04  9:01 ` [PATCH bpf v2 2/3] tcp: clear inherited congestion-control state for a cloned child Paul Moses
2026-12-04  9:01 ` [PATCH bpf v2 3/3] bpf: check and set TCP congestion control from the same name Paul Moses
2026-12-04 21:04 ` [PATCH bpf v2 0/3] tcp, bpf: fix CA state on open and the TCP_CONGESTION name check Alexei Starovoitov
2026-12-04 21:26   ` Paul Moses

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