🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25587

Re: [PATCH net v2] octeontx2-af: Fix uninitialized variables in MCS alloc handlers

#25587
From: patchwork-bot+netdevbpf
Date: Wed, 02 Dec 2026 03:10
28 lines
8885 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Willem de Bruijn <willemb@google.com>:

On Tue, 24 Nov 2026 16:42:27 -0800 you wrote:
> In rvu_mbox_handler_mcs_alloc_ctrl_pkt_rule(), switch (req->rule_type)
> has no default case; an unrecognized rule_type in a PF/VF mailbox
> request leaves 'offset' uninitialized when passed to
> mcs_alloc_ctrlpktrule(), allocating rules from the wrong hardware
> partition or failing spuriously.
> 
> In rvu_mbox_handler_mcs_alloc_resources(), 'rsrc_id' is left
> uninitialized when !req->all and either req->rsrc_cnt == 0 or
> req->rsrc_type is not one of the four handled types, evaluating
> uninitialized stack memory at 'exit:'.
> 
> [...]

Here is the summary with links:
  - [net,v2] octeontx2-af: Fix uninitialized variables in MCS alloc handlers
    https://git.kernel.org/netdev/net-next/c/5bf78f7ba087

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179618101399.1147029.15480626499963940809.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375516-linux-kernel-netdev=dewy.ru
References: <20261125004227.1007723-1-irogers@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375516-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] octeontx2-af: Fix uninitialized variables in MCS alloc handlers
Date: Wed, 02 Dec 2026 03:10:13 +0000
Organization: Usenet Network
Message-ID: <179618101399.1147029.15480626499963940809.git-patchwork-notify@kernel.org>
References: <20261125004227.1007723-1-irogers@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network; logging-data="1874996"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:0o0Uu0iJQUlJjOihPFphQfzOvHg= sha256:A5uz6qHP0Bagh0tq+UGF42w4xetbRxHrbKfapeBHzs0= sha1:aqQWLTIfO7GzK0lX5DcdusOXlSI= sha256:TwEwlnQBR2c8xW6s5OlhhpbCfRZzUZwO4x0LjVow/Kw=
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 1E37E117541; Wed,  2 Dec 2026 06:10:34 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[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 wRFWPAHdXsB4; Wed,  2 Dec 2026 06:10:31 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-375516-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 E2F9F11753E; Wed,  2 Dec 2026 06:10:21 +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 70E4128214; Wed,  2 Dec 2026 03:10:20 +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=1796181016; b=FFWeFD2cwd2fM5os0+iWjZd+1HovcQoBLuHdBhK1xxa5yzPfaWoQJ5fszLTOSbDo1ApL SD+wjOCeKFxYNq7GAv4ld7nsMDyL67cGJdp7N3pp1jbhrIPgavnQbBaExFH6EzvLGFkKE wuUprFvm5TLxky7PXIlCX6AW6ah+QcuD3DDB6+69jeAcMVlPdlbyN3MZYBinqe15XwRcu BXYyWTie3ryZFtjddJ7gwFWnrm2omq3+INvpdG//OnbdVHH0Mz/nfa1/zqd2Y/XfVxjoh O/rzXVvE7yqNS5XsGhffLURIWtHBclaGx5ymdF6PCx2CZF0fK82a+A7//98Dk4pVs2g==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796181016; 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=0Z32y1kkKE07cm+b1BJ/u5CAfg/xzgGs+odb0uGJhEw=; b=ivr6pJFrT7Pfzbf8Ax52eDqdKShfY+FnRy0vfR3Iw2/9dnaKJuK6k8Y32Mp8SsFR9an7 +YhFzql2C4twH9a/N4+bhIVOSREeL5AXt1ZB61+40I3U9si2PAJRtNURDxB+6WalhE1jF v4a2B1uQKKi+Lqzyqj/Na4f4UFdoW4aeDnvLvvuXr8AnV7V3JOjKi3YFNithmOu0gbCK7 ypmvMh3bOKWHzyAgaHqN+FRFO/wWGBPFsPbLSKNHOEOsTs/txEuW7ewDOWxPaFGaXNiML 7nYHmbwk9tV2B+Wo9ki4/2Csk9E36QLyFYftZsCW2AKaZ2RS2EqxKLCRdwZ2kBHNjgw==
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=SDFytq+L; 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 D6B9D606A68E; Wed,  2 Dec 2026 03:10:16 +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=SDFytq+L
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=1796181016; b=bYMA+VrpuvhR9QVKUgBhV2KM4MA/r8wpYRDFyYt8qk6ROini/8U2Vca5f31XNS+qaJZ1 EHg1VMMSRZ30wshTaNo/v3Q5rAYeO0YQqsOIGHrCtDY+6AK4h6/YDHdi00fes5RakLuEk +R3Gv8jGK4uYGy3r11GYYWWn0k/u1hLQEMQwCCCv80jUY29bUVRaunLY3Cmwpnp8ALCvA dP3UqQ32RU2GqJ+EbX+l57KDT9OPjFf8tGHIvo3ewMaARPUiGnuSiNmqScwEl64Sa/P7d KJA2etK7nipu0mLEWqVrjEEd5AIygtMfvwLJFmg5jkQDWL7qKnfBPizXNAlLStigOJg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796181016; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=0Z32y1kkKE07cm+b1BJ/u5CAfg/xzgGs+odb0uGJhEw=; b=jMjjBwOnSBAEiFPiuZb3xi09eXVx5fXXMON2FAedPSwZmIsmVVTMggyzt91YP5zMWrpS Z0rozDcxjfxp2hZGdqTze9Mbq4CuCvOdvh+RnwW2QBr3s+Q62buLHk/2+WiXij7jPiI1r FgHQkcJKSUNEHkTsUnC9p1izJMekdaapFKhF5TQZPSJ0NE+QK3PRK0R5yHjRqNctSLDHb GNAVfBfXnHn1gbunZi24OlFATDWUJdLLsU+VNNrmNfQkM5dueEHN/TTPLKOGhyauplrmq 9jYx8prveNFShq2XEUj4vf2ClqPphVRGc2Nbi2nD6jBz37Af1iZgYmN58q8HB1N5wrQ==
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=SDFytq+L; 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 05792606A332; Wed,  2 Dec 2026 03:10:15 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B8821F00929; Wed,  2 Dec 2026 03:10:15 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796181015; bh=0Z32y1kkKE07cm+b1BJ/u5CAfg/xzgGs+odb0uGJhEw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=SDFytq+Lv0c//crdbs2xTQi8MC+pPeLA6yxxfGup5AZldzlcGlsE0i+xhXiODiqYo wG8MEobf+ovs71vOthSDjs3eZ6aUzttcKTg4cWSrACD9fCgVNwsnwOTzTqBuWACEq9 ZI5k6UbHGL2um/OBG2l5BtZJyZ5cLDwjlEyXVuT+GAd3bGYKzquikERCWMJZT0PliU J8N4Vi7gayKji2XMoK5N97kwoZQwLh9g5yVeGceVZzdi0B6S2N+KjO8VFdLJMD+vn9 JLTr7VWvAoQhTy+S4Au1+cpRFTJxDT/EmehakbpuMiTW4rbBHz9GW68hppDOyxUpli LlWU2XEHzNvQQ==
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 71729380821E; Wed,  2 Dec 2026 03:10:15 +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: <20261125004227.1007723-1-irogers@google.com>
X-Cc: sgoutham@marvell.com, rkannoth@marvell.com, gakula@marvell.com, sbhatta@marvell.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, elkin@google.com