Article View: linux.kernel.netdev
Article #414Re: [PATCH net] flow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect()
From: patchwork-bot+netdevbpf
Date: Thu, 08 Oct 2026 02:00
Date: Thu, 08 Oct 2026 02:00
24 lines
6273 bytes
6273 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 7 Oct 2026 06:56:15 +0200 you wrote:
> bpf_flow_dissect() sanitizes the offsets returned by the BPF program
> with clamp_t(u16, ..., hlen).
>
> If hlen is bigger than 65535, the upper bound is truncated before
> the comparison. For instance, with hlen == 65536, both nhoff and
> thoff are forced to zero, even if the program returned sane values.
>
> [...]
Here is the summary with links:
- [net] flow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect()
https://git.kernel.org/netdev/net/c/f202578efc73
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179142480877.3768853.7937189397834700341.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342636-linux-kernel-netdev=dewy.ruReferences:
<20261007045616.445596-1-edumazet@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342636-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] flow_dissector: avoid u16 truncation of hlen in bpf_flow_dissect() Date: Thu, 08 Oct 2026 02:00:08 +0000 Organization: Usenet Network Message-ID: <179142480877.3768853.7937189397834700341.git-patchwork-notify@kernel.org> References: <20261007045616.445596-1-edumazet@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="780778"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:YLR6Rx3RN43KB9kVailNpR5SqhM= sha256:e4Vs39tTR0b7agusUIgBA2z3b4fJ6LkawBEZcfe8eEQ= sha1:spYeIwcoN4QurO+6/jOOJV/ShFQ= sha256:YFyQSammJbDEKkkDtGW+Q9dQesRt6fJa7svbxqg174w= 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 0235E10F2A9; Thu, 8 Oct 2026 05:00:41 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.641 X-Spam-Status: No, score=-3.641 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.241, 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 u7-nwrV25Prw; Thu, 8 Oct 2026 05:00:37 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-342636-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 8899110F253; Thu, 8 Oct 2026 05:00:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id CFD9332D37; Thu, 8 Oct 2026 02:00:11 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 976E4385D8A; Thu, 8 Oct 2026 02:00:11 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JJPel+SJ" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A25D03845A7 for <netdev@vger.kernel.org>; Thu, 8 Oct 2026 02:00:10 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791424811; cv=none; b=W3NDVH8CiW6nyfWVcjbupWnerlficbcyspVxIVxqMwOPKsoSIgRCqEotapaXOR3juTmwZUDsywcDAsa20RBe0fRbZcGZ4FPL1M2wYvgZWTjCXwcO9HfOokVz+Xd7ExGDCCuZuI11lyg7G586NPh5FClKUPosPhCS14ucwXRN+ak= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791424811; c=relaxed/simple; bh=RszinOXxN5EvYBqaHou37vxwI9m6DIiYtae+QfnyZjI=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=h1+mM9dlYJjemimrCelk2bsZvCDh655frAZRh7Clwt8w5jd4jRvOGHtBwzYiIoFxBVU1/yY/AnMmXWk0v5MYG5d17XzD0JWa5S5Uk0y/p6fkn0bJD0JebQx8TZuQAvRzorA1l9hgc7GDbeivCWE3IcJq8pJjyDi3fMpCEfOGkLE= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JJPel+SJ; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4506A1F000FF; Thu, 8 Oct 2026 02:00:10 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1791424810; bh=42cO8tpMC4PEsFhzmXoN8QPC9IMFYcI5qAc0lVGmpFE=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=JJPel+SJRmfUyDrFtBLquKXtyK1QBuwMWfsOq16rYKb+AAOZo2kzB3cP9oJ0sMd57 wGYep2Wz45x1CMXygJMn/eue3+gVEE2mRNKO75ZczO3d8jR+32PL/RHl/kLtWkfc0+ CeUfiGeqh/ue30/UMw6356CoDNQI6QH+0Xzj+MFocEVzcrKJh5kvlP7vHUYM1MNR3J 6uJjWlIuJufZaFU/MiVE2tKcCvLZ152HBMgBSoqoQdCHABpjjkZb9jV+ilJmOsvqNs dG2CDK7YQtQj/IyNsRK4i/AZS0CpVJFun7gtIvDI9QAjyfByoBGlHUF25zRxD9PJ1G dmvy9jbt4t5bA== 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 3A1873809A09; Thu, 8 Oct 2026 02:00:10 +0000 (UTC) X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261007045616.445596-1-edumazet@kernel.org> X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, netdev@vger.kernel.org