From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=109.224.244.22 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796374877; b=mJe8HR2mTEvS6vkcJuGjMJ5vNC5SQzSC3bpXiPqJzzPovYMpqs5SwfE8AsgNvEERIXzL fMnGUOJQ8IJNKp2uZ9gWUB5zU99EjW2NnVF3j0D7EMwbAHxZfahGihvU7NWNamdZJKh3l Wn05l/guvmzXUVE4zC773EDrBkao54F/BbkeKeQMeyhBxe1eP3JYRUaqm5q0Xomn+2wa1 Yonk7HD3r6mKjaVr3/0yqbJ1mgWjFecbwU4IEFkPseePK+y48H2FrNKalib6KkzgEsGWo QFf5G8ssidU8pTFAaWYSlEZUSgt+g3WWrJQzCAXOa9SH+Rkn7j6dmq5qqIAvt2YHwqA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796374877; h=DMARC-Filter:DKIM-Signature:Date:To:From:Cc:Subject:Message-ID: Feedback-ID:X-Pm-Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=yGMV4c8w9ne4cFdL5VS/vXqE/9TDTMeO/SIrKNCKd58=; b=n+jCj7zp4WXbcFe3uD1K0IbtOdDp8VPaZVBqBlJoNwPn4nUJNUnTXnNa/wW4pUDxyRCq 0qxMwP1r9nZmtU697AELK+l/nWUQwaw149tRX+DhEj0PH9gSw+bOOOFnmkRuCWCtJKoDe gv3zjFlCVvmEria5/mbqSdmwposGQxMUMUxPTmHdg6lwM2J8VR82/RMyaBuWzVa/uEWhX r4HjR/57zDbofcU+8WU2AzGfSKkmwYHv26uesKsy53R72nSKJNss6hdaYFYBRwELIuY+O jf9WUW+Z/mUAGjjSNW91JtBsM+/J3Tr7c8c9XDhJlaR0Vo81s7VBnyy/HJsv3qVNNZw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=1g4.org; spf=pass smtp.mailfrom=1g4.org; dkim=pass header.d=1g4.org header.i=@1g4.org header.a=rsa-sha256 header.s=protonmail header.b=JrjmfxV2; arc=none smtp.remote-ip=109.224.244.22 Received: from mail-24422.protonmail.ch (mail-24422.protonmail.ch [109.224.244.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F1CA606A68C for ; Fri, 4 Dec 2026 09:01:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6F1CA606A68C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=1g4.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1g4.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=1g4.org header.i=@1g4.org header.a=rsa-sha256 header.s=protonmail header.b=JrjmfxV2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1g4.org; s=protonmail; t=1796374874; x=1796634074; bh=yGMV4c8w9ne4cFdL5VS/vXqE/9TDTMeO/SIrKNCKd58=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=JrjmfxV2OFpLWexDDQltXmphNa9yi9yb6Z3+VQ6EGqwftoONsiqI3/24xxCoNrY6z ztMpwLSi4r+VAjUuem7BMwmT4yx84zyMv3TCIHE987j7vKxiOXgqzZ1Tv270L26rIj Fn0lVTed1I3NUe9g9YO96FoQY3yuK5hX/+4OvnsnU3bmIC0yRzHDEOFioXgfy9x3x+ Pyv5BTgtWVLIkBcJ0JTdYeAMoo/ReZ0iZxM8eE8XlYVfKqj/W+BnDS9ApEz053xtK6 anNxocVzFbnhdYnarRGmJGSCzeJU+fQ+ULmhDpi37ct7oK3l+c/L2Dki5+su0v39iO PVCyJRwQnaNJw== Date: Fri, 04 Dec 2026 09:01:08 +0000 To: bpf@vger.kernel.org From: Paul Moses 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 Subject: [PATCH bpf v2 0/3] tcp, bpf: fix CA state on open and the TCP_CONGESTION name check Message-ID: Feedback-ID: 8253658:user:proton X-Pm-Message-ID: ae8f2d0c68302831e0e33c4bebf7cf1929f932d7 X-Mailing-List: bpf@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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=3D@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 --=20 2.56.0.lol.gf7de81456940