🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8215

Re: [PATCH] net: sched: em_ipt: validate hook value from netlink

#8215
From: patchwork-bot+netdevbpf
Date: Wed, 28 Oct 2026 11:50
25 lines
8706 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:

On Mon, 26 Oct 2026 17:07:17 +0800 you wrote:
> em_ipt_change() accepts the user-provided TCA_EM_IPT_HOOK value
> without validating its range.
> 
> The value is later used in check_match() as "1 << im->hook".  A hook
> value of 32 or greater causes undefined behavior and may undermine the
> xt match hook-mask validation.  The value is also passed to
> nf_hook_state_init() as a hook index.
> 
> [...]

Here is the summary with links:
  - net: sched: em_ipt: validate hook value from netlink
    https://git.kernel.org/netdev/net/c/94cea342e891

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179318820432.674732.3698525593677079612.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-352835-linux-kernel-netdev=dewy.ru
References: <20261026090717.41597-1-fangxy@xiaopeng.com>

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-352835-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] net: sched: em_ipt: validate hook value from netlink
Date: Wed, 28 Oct 2026 11:50:04 +0000
Organization: Usenet Network
Message-ID: <179318820432.674732.3698525593677079612.git-patchwork-notify@kernel.org>
References: <20261026090717.41597-1-fangxy@xiaopeng.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1762831"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Y3uXjuiPyn95ZQYg0WVxlTG6p7I= sha256:ZpZeMd8utU/o9s64NNBhfTp+DAEY2V0DOtNtmkZXfOQ=
	sha1:gUvB5aOcO2oiy1uNdQz2SkLM1t4= sha256:v8n0wum6VKZEvEEFETDiffWeCvKiWyQLgHFWreaP3mE=
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 C25AE125C35; Wed, 28 Oct 2026 14:53:48 +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 sMZ-sWdlLXEp;
	Wed, 28 Oct 2026 14:53:45 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-352835-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 849B0125C33; Wed, 28 Oct 2026 14:53:37 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id CD02A2C277; Wed, 28 Oct 2026 11:50:09 +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=1793188207;
	b=3Cw4Yw/y0qZdhjJR/he8lD/08GXNsiqQhc0QlPSiD1VsnfLMH0veQ1aXZKcbD7boMvV7
	 vEy+Iy2/5jZIDyZefpngD7Wlk4LtiTV3+2t+gsjLQiDhfv4AM9cRjzP2h9fcBE2MUHYPa
	 jhoaxvBRrnT29Q0ZmdlfMOXKFYRC0qbX+aSuZ9D93a7BgLt1OD0OFsHiiXgSDlDoH+l1w
	 rAt8dFMx6KWAgPd79NKmkotPJBXAzkGgK4Z3FLjP6kiiD29OFsS2z0OH1vF2ribEPmLAg
	 Wmn2RSwb9hZCCvLKWVSVXNZd4tblTODytUyIGoULzcT5krcC/WP8SMYhhcAB/kTQRng==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793188207;
	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=eZCjIfua1NVGQXe03RlVuUyF2WuomENUggZmCurRgP4=;
	b=CCvtu9QhCufSAX+C0ZzKJ6K/rSCx8ajQ53FrSRPGBywR0AHd3ojUIt0m7EcfWkJw+LU8
	 tg9EldqNHrV06pn+H87O+PBPdIvK3JRovO7A/6yYZYGoikCf4CBq341gPQzC68+DwPtRr
	 dpKJMKzT9AEgl5zQiJqeCABQhHbQRgYf07qGyEi9cOLL+7cnmhUM8j2wMTTy7ysR7FHNy
	 9LHylstUE7Jv/9kEWSmbXQKDVqMllCJ/3XH18tFqMbRSIq5z3GdSSZGu7ySzXGm0dDExg
	 OZlfixOpduK+xR40jK3YLTRE2YElA9Y52T8C5zceELVp+XNvT+82Z6opzjqLml5i/tQ==
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="a/3UWtxs";
	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 15B08606A324;
	Wed, 28 Oct 2026 11:50:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=a/3UWtxs
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=1793188206;
	b=b0vCIAOxpZpJdjRLBbzWh3tjedBL6VUGnIuahFkD7RcqMySb4H81rZeW3w/83ibzY9gS
	 CWQN7ZLE31optBtl/46WtW4WxsT7mEqINZ5aHPfKfR6NQIcKtIp1vd4Ov302m8mBCyaGw
	 gV6sg0CLZVIlSol59WqK0APa1lPdZOkgg4DhWEliL50vGcvSVsjPHXwVUgfzE3oQYETxJ
	 JTWtEFXBRyQSb3vW9TPHeb22ls8DIErIp16XQYtmWmS7dEm6ZFKaBwyctqo7UcPsnjqWe
	 0VWnF7Nje0hzipQ24UflPmu789fuTrhd0ToBzlMFJLk0mnPXGlKcS3geT/D7E0Y09hQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793188206;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=eZCjIfua1NVGQXe03RlVuUyF2WuomENUggZmCurRgP4=;
	b=jcUxqATcxVy/ljjyKZst+MeH5EY7AJXgryfBdZYuPR8swCahiXNxhu98zYLRyjU7nRom
	 vBpL47MdbYMZd3CysL9SlrNSuFJvwPrUb/MkqqHs+s8aoYgqWtlTnqGgnCyv/YP4FbRbo
	 uWNwhRw8WQUKE9ZhGja6b3f0R7M6s7GFQ5t0K35Af+k/9vTEZytyhWhXrFZQW2YofWvca
	 oDdrMVZ4PYR2mL+ChD+fkMkzpIZtiCkF+UsK/5x+YjSOP/kdl8+Cu6B7y8+Sdx3cp4Bbx
	 i6Z/Wz8cxWbOJWP8hR8IThlzI8hljroFSi+5XOuv0mAYT+i2aONjg43kEU/YLSnOEzw==
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="a/3UWtxs";
	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 EB74E606A31C;
	Wed, 28 Oct 2026 11:50:05 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F94A1F01828;
	Wed, 28 Oct 2026 11:50:05 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793188205;
	bh=eZCjIfua1NVGQXe03RlVuUyF2WuomENUggZmCurRgP4=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=a/3UWtxsIp/ziY58P3nzikTBK4B/Rz2/DTN/lvSIhEJhilYFUwFQnG6IX3IUKU9we
	 j9JJCAKaNsHFizWWE7frxzjuoBY4Eg9cqQGfURbT1kkb2GMHkIxvCciwthq/7I7fYq
	 7nxeX1lLwIba+iKB4n/tdOwHneCVfP2ktReyB3hKT50LaK8AQHImtIz3f2pl55sXrb
	 26PFs11QaE6rxaRHtJ2hdZCZyY6orwCAGc8e3EuquwtqWqdlOTkF9i9yDwIfVR5xZm
	 nr8XDfQ1hByOb8Xbhfj72Z/8hz6ZvZVIL9sjttLIdEXb3YGrykgyGoSge/XG58oHfa
	 adw/vHCKUA+iQ==
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 8150D3AAA6CC;
	Wed, 28 Oct 2026 11:50: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: <20261026090717.41597-1-fangxy@xiaopeng.com>
X-Cc: jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net,
 edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 eyal.birger@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 liuwb@xiaopeng.com, zhugl3@xiaopeng.com