From: Paul Moses <p@1g4.org>
To: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net,
martin.lau@linux.dev, edumazet@kernel.org, ncardwell@google.com,
kuniyu@google.com, jiayuan.chen@linux.dev, Paul Moses <p@1g4.org>
Subject: [PATCH bpf v2 0/3] tcp, bpf: fix CA state on open and the TCP_CONGESTION name check
Date: Fri, 04 Dec 2026 09:01:08 +0000 [thread overview]
Message-ID: <cover.1796374535.git.p@1g4.org> (raw)
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
next reply other threads:[~2026-12-04 9:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 9:01 Paul Moses [this message]
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
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=cover.1796374535.git.p@1g4.org \
--to=p@1g4.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=edumazet@kernel.org \
--cc=jiayuan.chen@linux.dev \
--cc=kuniyu@google.com \
--cc=martin.lau@linux.dev \
--cc=ncardwell@google.com \
--cc=netdev@vger.kernel.org \
/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