🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2153

Re: [PATCH net v2] netfilter: ebtables: ebt_802_3: check the LLC fields before reading them

#2153
From: Guo Zihao
Date: Mon, 12 Oct 2026 07:27
44 lines
7429 bytes
Hi Pablo,

thanks for looking at this.

On the target tree: right, there is no reproducer, and I did not run
anything against a real crash, so v3 is tagged [PATCH nf-next v3].

On llc support being removed: I could not find that. The last commit
touching net/bridge/netfilter/ebt_802_3.c in net-next is Jeremy's
header-inlining change from 2019 (85cfbc25e5c5), and the module still
registers "802_3" for NFPROTO_BRIDGE today. Were you thinking of a
pending removal, or of something else? If you do want to drop the
match instead, I am happy to withdraw this series.

The comments are gone in v3, you are right that the call plus git
blame says enough.

Sashiko reported four more items against v2 (1 Low, 3 Medium). All
four check out and v3 deals with them:

 - the commit messages no longer claim that ebt_basic_match()
   pre-filters the protocol; they now say the match is not restricted
   to 802.3 frames and that the kernel never enforced the userspace
   "-p Length" pairing,

 - the TYPE match now reads the header in two steps (dsap/ssap plus
   control first, then the type from the ui or the ni layout), so a
   complete 21/22-byte SNAP UI frame still matches; the 24-byte
   sizeof() requirement is only imposed where the ni type is really
   read,

 - the S/I format test is now (ctrl & IS_UI) == IS_UI, patched 2/2,

 - 2/2 reads the ni-view type at the wire offset with
   get_unaligned_be16(); the padding in struct hdr_ni cannot be
   fixed because the uAPI struct is shared with ebtables userspace.

Series at https://lore.kernel.org/netdev/20261012072721.3306308-1-guozh23@xiaopeng.com/
([PATCH nf-next v3 1/2]) and thread.

pw-bot: cr

Guo Zihao
Technical Details
Message-ID: <20261012072737.3313804-1-guozh23@xiaopeng.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344765-linux-kernel-netdev=dewy.ru
References: <asd1uX2tWn9LtsUT@chamomile>

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-344765-linux-kernel-netdev=dewy.ru
From: guozh23@xiaopeng.com (Guo Zihao)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] netfilter: ebtables: ebt_802_3: check the LLC fields before reading them
Date: Mon, 12 Oct 2026 15:27:37 +0800
Organization: Usenet Network
Message-ID: <20261012072737.3313804-1-guozh23@xiaopeng.com>
References: <asd1uX2tWn9LtsUT@chamomile>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1708021"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iChc8O69WyFY+Tc1OMI45l1HibA= sha256:w33ryGWsZ4Y7maHY+CV+tbuJ4v1URe+X88FA0qy4xpI=
	sha1:KVwL78p+7uIn32l2pGCPxXpYX54= sha256:sbuifow9WPVimgYICZ98gCYskQsXuZ2457gjbPBhkoQ=
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 0BB8610FB14; Mon, 12 Oct 2026 10:33:21 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.749
X-Spam-Status: No, score=-0.749 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=xiaopeng.com
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 5R-Efp5RtP6J;
	Mon, 12 Oct 2026 10:33:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344765-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=xiaopeng.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6D0BF10FB0F; Mon, 12 Oct 2026 10:33:06 +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 CCA582B382; Mon, 12 Oct 2026 07:27:51 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A318437463;
	Mon, 12 Oct 2026 07:27:51 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=xiaopeng.com header.i=@xiaopeng.com header.b="uq/zDFv2"
X-Received: from out28-5.mail.aliyun.com (out28-5.mail.aliyun.com [115.124.28.5])
	(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 8A50531AABF;
	Mon, 12 Oct 2026 07:27:48 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.28.5
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791790071; cv=none; b=pzdmkpe4lUHaU/VJPafgIROXCXASi4/jlWXH9ynM+AieAGtPC9HPd166MRnPna7R8AvychaMsheLJou8osZrr6dskq3ZrcX+6cUKtQF0Ffgn9IKnPSuvv8rj3R22XyPYQ77pWakaf8zSCnK0hH3+d0Zu38rKjpG3iB8J/vPkZ68=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791790071; c=relaxed/simple;
	bh=cQQasB83hW+IIFrMPWO/YXArsGHooJTtS1M0lBe8izY=;
	h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:
	 MIME-Version; b=XRMl2ptIG1UQNKUMuAc0JEvb+IO7+q4/T8jRzjGpp5CPAdGbjmfdgjJAIgBg2vhL4OA0dQ4mQERHu5IxHbP2j+9z4pLMeGHX7RAtDFOgdUUJlOGqa6DFsnznVd/1ixTwK1I2abvg4l7XPn2A57UxzkEr2NXF/+co3gk6mr6L7HQ=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com; spf=pass smtp.mailfrom=xiaopeng.com; dkim=pass (1024-bit key) header.d=xiaopeng.com header.i=@xiaopeng.com header.b=uq/zDFv2; arc=none smtp.client-ip=115.124.28.5
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=xiaopeng.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xiaopeng.com
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=xiaopeng.com; s=default;
	t=1791790058; h=From:To:Subject:Date:Message-ID:MIME-Version;
	bh=XorIrIplWxJhQV21amxhTVYV0lJGwdY32+kptBAZQTc=;
	b=uq/zDFv271/mA27pip5vV8aI8gXdwS3iigG6SItnsBHaYlmAz10N2mjtVliOn1WlFXqJLOr+2pyCxdoImnuL+rNauvObr6SyjpccEfVhGb7cpBkp/Ch/7XVc7oDMn32cHC5aH5hMkUNKk90kv3wHvW+RS3pWdcQjdxLGYAQ/IOU=
X-Alimail-AntiSpam: AC=CONTINUE;BC=0.1052275|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_system_inform|0.0167187-0.0089166-0.974365;FP=18446590920149191191|0|0|0|0|-1|-1|-1;HT=maildocker-contentspam033037026024;MF=guozh23@xiaopeng.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.jZjoirn_1791790057;
X-Received: from localhost(mailfrom:guozh23@xiaopeng.com fp:SMTPD_---.jZjoirn_1791790057 cluster:ay29)
          by smtp.aliyun-inc.com;
          Mon, 12 Oct 2026 15:27:38 +0800
X-Cc: Florian Westphal <fw@strlen.de>,
	Phil Sutter <phil@nwl.cc>,
	netfilter-devel@vger.kernel.org,
	netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.50.1
X-In-Reply-To: <asd1uX2tWn9LtsUT@chamomile>
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>