From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 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== 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== 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 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) 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 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 01BF31F00893; Thu, 3 Dec 2026 04:10:06 +0000 (UTC) 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== 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) Content-Type: text/plain; charset="utf-8" X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH bpf] bpf: Use the checked TCP header length in the syncookie helpers From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179627100476.2352782.17415880894527521536.git-patchwork-notify@kernel.org> Date: Thu, 03 Dec 2026 04:10:04 +0000 References: <20261201091755.1130605-1-bjorn@kernel.org> In-Reply-To: <20261201091755.1130605-1-bjorn@kernel.org> To: =?utf-8?b?QmrDtnJuIFTDtnBlbCA8Ympvcm5Aa2VybmVsLm9yZz4=?=@aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org 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 Hello: This patch was applied to bpf/bpf.git (master) by Alexei Starovoitov : 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