🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26139

Re: [PATCH bpf] bpf: Use the checked TCP header length in the syncookie helpers

#26139
From: patchwork-bot+netdevbpf
Date: Thu, 03 Dec 2026 04:10
24 lines
9200 bytes
Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast@kernel.org>:

On Tue,  1 Dec 2026 10:17:53 +0100 you wrote:
> Each call to bpf_tcp_gen_syncookie(), bpf_tcp_raw_gen_syncookie_ipv4()
> or bpf_tcp_raw_gen_syncookie_ipv6() reads th->doff twice. The helper
> first checks that th->doff matches th_len, the header length that the
> verifier allowed. tcp_parse_mss_option(), called directly or through
> tcp_get_syncookie_mss(), then reads th->doff again to find the end of
> the options.
> 
> [...]

Here is the summary with links:
  - [bpf] bpf: Use the checked TCP header length in the syncookie helpers
    https://git.kernel.org/bpf/bpf/c/a4a304f126da

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179627100476.2352782.17415880894527521536.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376280-linux-kernel-netdev=dewy.ru
References: <20261201091755.1130605-1-bjorn@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu.MISMATCH!feed-us-txt.newsdeef.eu!feed-us-ny.newsdeef.eu!srv.newsdeef.eu!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-376280-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH bpf] bpf: Use the checked TCP header length in the
 syncookie
 helpers
Date: Thu, 03 Dec 2026 04:10:04 +0000
Organization: Usenet Network
Message-ID: <179627100476.2352782.17415880894527521536.git-patchwork-notify@kernel.org>
References: <20261201091755.1130605-1-bjorn@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2140038"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ltM85nkHfco2a6a8kti9AgWP6r4= sha256:x3nYwwEFfsVjWx68UO3xsiS4D0/+dbI3bF+glviLXG0=
	sha1:82GqsM472VMXnzd1UX+kaEZeIq0= sha256:lPbvfu5uz1mim0n52M5LelobBSjEI03sb2y0ov4mUm4=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D796A117813; Thu,  3 Dec 2026 07:10:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id b24GpilYpwdz;
	Thu,  3 Dec 2026 07:10:22 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-376280-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 021D01174ED; Thu,  3 Dec 2026 07:10:09 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 50CDC27FCF; Thu,  3 Dec 2026 04:10:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796271007;
	b=dACY6zufXQeZDiMZXfknR84dqkhs1tyg4nuwaQPa+zGDsbDV0AXzrkEljAaee3uesDjQ
	 B3Uw1Y69AavNdWsCFJtb9Zx0WUngc/iR2ljEfaF7j+UafmkZttqXA8YTd3qVhzic4vO90
	 SMAML7JDzSH2L9kOyOPSIy6aVZewSHIhi3Ba/8GSyJN2MOT/Xg6bTFSb68cR6yo3wwZBs
	 fOKx4wlb6hsjvdb5RINsXF50l6HUa5MccfbqmFhLOxeKmc1cpMJtEsfeXZ9s5tAKPwlLh
	 sQ0PyUDBSg7L3CwhqHK24GcDgRw4sFrMSSvp+aQyNkrvVLXkC+vKCHzKjzYXS+VT8YA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796271007;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=hz3HRYiM2PCOUC6WwL5BrCXyNaiGN6vH58t/8+mJWYI=;
	b=O1e6lg7R4KtX42380oz3+tzXGqxmLeOG34oTu3pZD6+v90OG2A4AS/2smQmMwdFc7rYC
	 sPVL+Zdki8lkF4XeNPTI1g/zQXFlazkFCjhHioL/EpDMb4Ei31yMezq2ZkKxY1ekC/8kV
	 Leb2D5BAjzLlxOA75TgYDHLJjEFFTsY5ug9q336jzaTQPnJKFShLCAf3aCLWi5RxW77JU
	 lP7Ev3vKkbjnsVxG9Qt6gYEamfhxndee4WxysnQXAlGeavlWp+iv4XqJHR89S7aPRfKXq
	 3xd3Lzk65Upfy8qmOtEOkHrb8YLBJXuV9B2XCKkZ8lutbuhG6JMxzs9jAB4m5ecTW6g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Z8zcGjaL;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 2842F606A334;
	Thu,  3 Dec 2026 04:10:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Z8zcGjaL
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796271006;
	b=QbS0SOdawMjCs2c+mujf1HO63HmC2s/qfh0S/s48DIsYimF6MlybBXZ8I32Nw3+4R19n
	 hWzFg55KlShd82qA8M5+Szpl+RJlJovEftqVmFFRDQZ4pd7sLLVVFN6sz8lNWP0PybX7C
	 bO8hWElXkuQdq2e6PjOA3sY+eq5t5DqHyAw/XJkiz1zXlhF5Ep4HSzoY28q0BEcFta2El
	 t2aV7dNXCCwdinCbUZqhgV22YsO5RqixcX2CIS7aD6MBLOK6KYB+6P9gVojUTwtq3szCO
	 V4BHuGXxozNhjMJfegOzTFOGjpkGfRkuizmWUk4jdeIQ+5J9Rf/DQsSX/XvnRCyno4Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796271006;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=hz3HRYiM2PCOUC6WwL5BrCXyNaiGN6vH58t/8+mJWYI=;
	b=AIIQ+Cp3Yrp/IdAIBPMGbhrN+epTJk5PQpTIrHYwtyZhGfEHUbN3AjfJ1B7s1NIr+4aG
	 e0BNpwzgRsdp+R3gk5xx1/WFT9mK1qA8kd2WssLngc4yH+9MGhsjuj1uo/TjP8HIAeCo7
	 c14G7XvMIwwLGBdLpAf2LxAVxJA0FuYoCAnAr20+w+0xtSXP+Upbb2a3bWLCeejf68db3
	 ep6G4HEYqJCFOznOsmdZwbl8Lg0QZxdIgkMeFeiGw8XupP9bEuyUjjJjg8Ku0qQP9IET/
	 ScaiG9yv3jmaKkshnX0TLa6pK425ywG7XzwkSS2PzsWaPN//iOGPJTNJWP1bMYg8JKQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Z8zcGjaL;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45A98606A322;
	Thu,  3 Dec 2026 04:10:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01BF31F00893;
	Thu,  3 Dec 2026 04:10:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796271006;
	bh=hz3HRYiM2PCOUC6WwL5BrCXyNaiGN6vH58t/8+mJWYI=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=Z8zcGjaLQVkN0IHol00+gqfT6MOIdwQu88jYFbfSQ+416iZS8UnRwbiGkPx5mr1WH
	 M2yb7Xm7NvhSC8nAEkRgCf6h/3+A4fGlscP2DPRoLbeqPzPfQiXjurym90/CFRLWlA
	 gbeUfBM2ke2whUX6abx5hJzSGDk1LF86DhFUsfhqASuvc+2nTo3mIpHDEzsJQyhSwe
	 1cVPSTDkS6z2KBZdFH/aStXFVFVAryfUbMIPJ2A6fjU0AdqGtyf6/lbSezaNsbIYaK
	 aw8H6C2SVoWDLDQ26AVSj3OBxb/Mpu47ev+WoDOzCToYciMBWDq3HsNa2KTN/8AkWR
	 nTY8y9eAC7QhQ==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id EB9C93808236;
	Thu,  3 Dec 2026 04:10:05 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261201091755.1130605-1-bjorn@kernel.org>
X-Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org,
 eddyz87@gmail.com, memxor@gmail.com, edumazet@kernel.org,
 ncardwell@google.com, davem@davemloft.net, kuba@kernel.org,
 pabeni@redhat.com, willemb@google.com, hawk@kernel.org, bpf@vger.kernel.org,
 netdev@vger.kernel.org, kuniyu@google.com, horms@kernel.org,
 martin.lau@linux.dev, john.fastabend@gmail.com, sdf@fomichev.me,
 song@kernel.org, yonghong.song@linux.dev, jolsa@kernel.org,
 emil@etsalapatis.com, ihor.solodrai@linux.dev, lmb@cloudflare.com,
 ppenkov@google.com, tariqt@nvidia.com, alice.kernel@fastmail.im