Article View: linux.kernel.netdev
Article #8398Re: [PATCH net] net: dcb: initialize PFC value before calling getpfccfg
From: patchwork-bot+netdevbpf
Date: Wed, 28 Oct 2026 23:40
Date: Wed, 28 Oct 2026 23:40
31 lines
9181 bytes
9181 bytes
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sat, 24 Oct 2026 22:47:24 -0300 you wrote:
> dcbnl_getpfccfg() and dcbnl_cee_fill() pass the address of an
> uninitialized stack u8 to the driver's getpfccfg() op and then put it
> into the netlink reply unconditionally. The op returns void, so the
> core cannot tell whether the driver wrote the value.
>
> i40e_dcbnl_get_pfc_cfg() and ice_dcbnl_get_pfc_cfg() return without
> writing *setting unless the DCBX agent is host managed and in CEE mode.
> Both drivers normally run with firmware managed DCBX
> (DCB_CAP_DCBX_LLD_MANAGED), and i40e with FW LLDP disabled runs host
> managed in IEEE mode, so on a DCB capable i40e/ice port the PFC values
> in DCB_CMD_PFC_GCFG and DCB_CMD_CEE_GET replies, and in the CEE part of
> RTNLGRP_DCB notifications, come from uninitialized stack. The same u8
> is reused for all eight priorities, so this is one byte per reply.
>
> [...]
Here is the summary with links:
- [net] net: dcb: initialize PFC value before calling getpfccfg
https://git.kernel.org/netdev/net/c/ca87a2dffbb5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179323080631.1480461.17695620852598790529.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-353083-linux-kernel-netdev=dewy.ruReferences:
<179289284460.50470.572724041164324949@gmail.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-353083-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] net: dcb: initialize PFC value before calling getpfccfg Date: Wed, 28 Oct 2026 23:40:06 +0000 Organization: Usenet Network Message-ID: <179323080631.1480461.17695620852598790529.git-patchwork-notify@kernel.org> References: <179289284460.50470.572724041164324949@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1895047"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:BTqnlN1ZWGpe0kosp+F/aD709cU= sha256:8efLnJsBsApbguq8qMWkemAAZ3SkLS9RrjSST3GUV5Y= sha1:2jTCEu/UXS35vpDezFQaeZE8+GQ= sha256:1t1NKvnU0p493Nmnjx+ber7e362S1ykODCfFjx4LYLI= 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 4220C125C4D; Thu, 29 Oct 2026 02:40:58 +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 NWoK3kftNaaV; Thu, 29 Oct 2026 02:40:55 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-353083-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id A6CD0125C51; Thu, 29 Oct 2026 02:40:44 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id EA30B251DB; Wed, 28 Oct 2026 23:40:30 +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=1793230828; b=g5LrrkDW/feWOovR3HWdBqxth2XZYuTG8CjpOtv76ZEMsfzih16GD/NRivhGauqNAkUC 0m5z4t545hCPY7jclzw6qP8MGFSpN0fxeIPKW9sP23nHi+n/CrtjrjTrJTFoeqB1W0aDB D4Mn/2iiOPKMadL5XxsC18veXbGWO75aoy4QLLUAnvt9j2B+1eUrtE2Xw0VjWiMJzVeRX 36zSWzMAQWyXXMVh3YFlHzLBFU33l6kJsTos4OyjwtAuxH/YwS7Rpy2HQB8WIMwDK+wOU zT3wGl3JTcokJFd2g0+BlzmyJRPjs1/lBcszVZpNafceQhYcbOpapkRAI1cwPshdMNw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793230828; 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=eSBje7ne27VllfT95Jt8SmIZ4PCn+iHIMvYclQHKX28=; b=z0ZIZ0V54PNQym/E6p/mQEreZc2RsEaitE3qTF64PdB56Cf/lbrT8tG9WhxcUHkPH2tK WXhM0LOsI6hFfHCRqfVG+Zz9hgCX6yGZ7nXZl7ND8JjdXEkkZwGp7GwNqwnP24hrW4jeU 04EA4CNC2up+0nv46/CA8Th6vmquflG8UiITYQHph47Z3bftf2xCx+mu9H0g/fe/36f3b VUDeSyRGsoZ3Vg5ZDkSHoCqiL0D+mXII0jVPcsH+shTAevUZrXhW3Srv3T2QTfKT5Aerd vYyeLYsil7r1mWEyVSE/8lkowNSMW0LtwhGJBY9Vv+xaPyY3bJLT6OL8DDZOgCgYo+A== 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=TYda7JoK; 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 22F94606A31A; Wed, 28 Oct 2026 23:40:28 +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=TYda7JoK 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=1793230808; b=1pIm+W7VNoabr3Pbn8Vm999BuMDY5SUPtiyt3hmGfy9dRXFkoiaiJKf1/q9GTmM2T/mU FCLSGTHsWTqfyz5wLfYnFh059MPpUV0RiJMeucI8pTxw9bQpRZagKITmkcDVBB+RUBoxD eglBhzgi8pGiGiS/ymf7jtK7XDRFDpiy8DBV11S4w8TkM6w832YPzgH5x86ut1zfexycj yqQEdx7r9e1RrJkXk1V5/7fQS/rvihxFGT8PsgMWzPUyuFn//d1lrLSe4nfDbbQDWP1pb 5aGaorD/DeHykO6RsxAGKPFb72wy4Gs9fujgDi9mMHxpJlGkxCZGQKWBls1lcZKon+g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793230808; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=eSBje7ne27VllfT95Jt8SmIZ4PCn+iHIMvYclQHKX28=; b=bf1NHprsD7iVOdZ92oVw2uO9wl6xoaMhOhNqhPgaCAyAEzlxm2GnEKNVNw7zUB5eREI6 6Rav6/JHLl3CJJBFuzQVrNsJBrOX2P4OKHdkv0TjDBKH9NUs5rftZvUGObFn+HOyP3Wo9 b2xsmOBHSSoFX/s252yBwnAZUA/rjeOhKjkgbqRhHw7RfbrkAHpoBoVaP6uIYbNerdFGC sBv9PbzfU2EHrti2Q0MOm9lj8LRBrK3GjD9FBmQSr3n28ffskyOAiYr+1Atr9YLhHdos3 qP83KNs9Zh4NsqY1MYy4KtIUudVNwEvDWegBxIvgJkaQicej0QNDCjPfX42E4xxirrQ== 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=TYda7JoK; 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 3032D606A325; Wed, 28 Oct 2026 23:40:07 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8B921F01828; Wed, 28 Oct 2026 23:40:07 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793230807; bh=eSBje7ne27VllfT95Jt8SmIZ4PCn+iHIMvYclQHKX28=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=TYda7JoKvtil9ssL1fslNDIQ5ntctsBf/lt8a7R+CnlDMBd1CMWXShIZSI+liyXw8 EUu9IR2T7NJzBG/ScEcdkjFXLsA2HZ22qx0WCf6cWIAufbCv1Ttv/w8V9Glb0ZrDuc M3JqT5dwuuA+d+4c7pN2KSGIbLowNxBRJESVu055SBqAjQftrNkrVqCA22/wngNeDH qzL3obrRVIZavsGHeZ940y7n+M5E6K++1YYD0QEs5UwqGq9XiQGfXdFjhxagU9d/UT EyXFfTh++3Z1TEYWwqLCdbJopHqQrX+Jii/YIFz1PCzE0z6teKT7tq20jATNveps6j 79VcOV1xULSXQ== 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 BE6953AAFC4C; Wed, 28 Oct 2026 23:40:07 +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: <179289284460.50470.572724041164324949@gmail.com> X-Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, anthony.l.nguyen@intel.com, przemyslaw.kitszel@intel.com, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org