Article View: linux.kernel.netdev
Article #17521Re: [PATCH net v3] team: validate the length of U32 and S32 option data
From: patchwork-bot+netdevbpf
Date: Tue, 17 Nov 2026 00:00
Date: Tue, 17 Nov 2026 00:00
29 lines
8988 bytes
8988 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 13 Nov 2026 17:01:08 +0800 you wrote:
> In team_nl_options_set_doit(), the policy for TEAM_ATTR_OPTION_DATA in
> team_attr_option_nl_policy is NLA_BINARY because the payload layout
> varies with the option type.
>
> For TEAM_OPTION_TYPE_U32 and TEAM_OPTION_TYPE_S32, the payload is
> read directly with nla_get_u32(attr_data) and nla_get_s32(attr_data)
> without checking its attribute length. When userspace supplies a
> truncated attribute (0 to 3 bytes), nla_get_u32() or nla_get_s32()
> performs an out-of-bounds read past the attribute buffer. Conversely,
> oversized payloads (> 4 bytes) would also have trailing bytes
> silently ignored instead of being rejected as invalid input.
>
> [...]
Here is the summary with links:
- [net,v3] team: validate the length of U32 and S32 option data
https://git.kernel.org/netdev/net/c/de9886cb02f3
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179487360552.250117.3472263145936765475.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364834-linux-kernel-netdev=dewy.ruReferences:
<20261113090108.175889-1-sunwenbo@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364834-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v3] team: validate the length of U32 and S32 option data Date: Tue, 17 Nov 2026 00:00:05 +0000 Organization: Usenet Network Message-ID: <179487360552.250117.3472263145936765475.git-patchwork-notify@kernel.org> References: <20261113090108.175889-1-sunwenbo@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2198806"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:D4ibwpeoOIzHIY1jSTfRmGG6aPs= sha256:xMkbXJNj3WdujeBDoU/5CnamexN8gpAbgh4Ej1+Cc98= sha1:gJgPIJgKCOQEcx4IzgBSmeGKlmU= sha256:T7r1MX15/uriKJMC9EMUzB9bK+pwbYPCHzf+M1OwE7Q= 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 F133B114DCA; Tue, 17 Nov 2026 03:00:38 +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 jhQTqJ4iHtDC; Tue, 17 Nov 2026 03:00:35 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364834-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 547C1114DC7; Tue, 17 Nov 2026 03:00:27 +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 97EB830381; Tue, 17 Nov 2026 00:00:15 +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=1794873613; b=rT6AEPldf7n6mWuWq5khIFqmrBc4uXtXI3ryBJ7i5fqxGiXK+HMrdQUDRyBLVkH6p9cF 6WP86j6MdZzRitnIATGvwZDy9k50h7J18JxaAeytRJqi+5A/vRsLvxfKYc0hheI4zYv1o jL8lxSY9glu8nAe5WWT1OejsxJP76udQ7qN4nJiC3wsYjniYDWXxL4nPGIn+aGFFyfKHC NM0yKFuXNDyoHQOz+VVkLa3LACftA0IenxIH7LPsw8Ejxa+GelC3bkmQDe0oYoybkbDF+ 2FN4wahJ5B2rpdqxYrDSedauqRbXu21rcznQGhPzREjtDuDahJgp2Jp7KkhLEyZu+9Q== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794873613; 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=gb226OdwCidc6WSe+jGRW6bvAhVCxuI44YctW7ONTT8=; b=l1tbAANFbbedQHrxKfT/ptgvzjDZPRCLNY0yhcH3dvPbNTHzZDpejkbVHdEOFQIX49VC WqyCXI+DcdCUrTU2SgaoYqV1sPJFqrto81ETOB80zj1o2OMYoAa6hcXCFxhIHzhuFgZoc ApzdJCqW780Wp6Q1CHSIWCRp0Qh1gxl1aA9TLOwdFXMrNAjnRU5zEcqGLG5NIeFBQpau+ RFc+VYfDylEJ2Kl51ClHBbAmMvbeeJsjgjNCbwFmWBzgJvLfHEWdgRmKCVN7VAqfQEK5G sIbgLaRLraRrZPlVjTYONGGqbqJLVOXaoPuBhziYaPZKBYLK4bf+1yHmrCoPHPeEnNQ== 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=cvrhhiXn; 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 64311606A32F; Tue, 17 Nov 2026 00:00:13 +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=cvrhhiXn 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=1794873607; b=xhzR6U4MPnjRB0z7kYRnx55nEXSN9UX/5aF8vgr7TE88XYO3xp6Lw68nsv68KvbpHqP0 /n5kkNw6v0P6FWEi5opbWvxQ8bHxd+U8eUG0ms4YGjlvr5wPMmiuHtoeM5AHEK9guBFXU oVHGvn1qg4DBH0mwADDhkhhTwkNvhcnwkN0ody3umUEuolVANL1dYTKjiqmFQAUF2FQdz gvP+thhD/jsvmuqmG6Ucjpvuf0oVhHrAK5WXIC3YXbzaGmEnryLa+BLlOo5VS6MqPBHBU MmwFtdOPtnu5SPFcUFrchWF3UDxtYS2QoCcBq2ms7FCYClihpqcIJahNGGZKUVUc/Bw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794873607; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=gb226OdwCidc6WSe+jGRW6bvAhVCxuI44YctW7ONTT8=; b=TQ2WJ4azdF6CdBvvMC1Km13l9FnZw1an3ToDREd1lTpwzHr2cjx9cv/ISBlBjoUJhB9t pMRUXeyB1Jh3Ctg9w0jMpNsYEJYqFTSi44Q+2kikqBSeeDhl/OJ3wG6BzqCmRCR4R2OCY XwB/3uqy9A8Rh0hVLS4y/aWUuBbDP49+E63RhqC1RVmD/WEBrjymQmI5UPBU+1aa9am4e 2hCS1sTU7hGjQ1KaeyZlBiXvGTP1nyLQnIHFvAN+tfBilAwZ8VSrZ4nNjjimxQospdZY+ cpXg7Y+OxLxKNA+GncjXy1y7gVFJfVoMtW2gyjKdS2N85AUH6PcjExo2bry1RbD1YeQ== 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=cvrhhiXn; 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 82348606A332; Tue, 17 Nov 2026 00:00:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B0A11F000C6; Tue, 17 Nov 2026 00:00:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794873607; bh=gb226OdwCidc6WSe+jGRW6bvAhVCxuI44YctW7ONTT8=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=cvrhhiXnwhGxqRWYkUq273HCl1AdWsNek+1Jwp9tl5PEoCzEJ4u2fHtvGKyHLqJzc 4H82skI/oPdohVII00ayAG8fvzJX4/4O7rLxhW1BBEhL+9DmDnBOaC5NkBw5sjplu/ gxbdRnkNuqoJtgBIS6/xq5fJCCrofDucQItW1O+Td2jPAqK1+yzuj1goUJ+GSvQY1M Lab36csJg34DJ0gPiF2hQerBQQv7nkMEqwt3ryl/jclxnUEU6jwjlDKgggcfk/i+7r Nm2bF4Tm7XW2c1u01geaZhdYma2kfkTIXfqlw/n7xsBHr8S0QuEV+gYCZoQy562mgN ew7VUmtT9guAQ== 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 F160D391B061; Tue, 17 Nov 2026 00:00:06 +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: <20261113090108.175889-1-sunwenbo@cmss.chinamobile.com> X-Cc: jiri@resnulli.us, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, hangbin.liu@linux.dev, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 1342116488@qq.com