Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11911C5B56A for ; Wed, 12 Aug 2026 17:08:46 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F2FC740264; Wed, 12 Aug 2026 19:08:45 +0200 (CEST) Received: from agw.arknetworks.am (agw.arknetworks.am [79.141.165.80]) by mails.dpdk.org (Postfix) with ESMTP id 9BACD4025F for ; Wed, 12 Aug 2026 19:08:44 +0200 (CEST) Received: from localhost.localdomain (unknown [78.109.70.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by agw.arknetworks.am (Postfix) with ESMTPSA id D76ACE0AD0; Wed, 12 Aug 2026 21:08:42 +0400 (+04) DKIM-Filter: OpenDKIM Filter v2.11.0 agw.arknetworks.am D76ACE0AD0 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arknetworks.am; s=default; t=1786554523; bh=vvxTrt/TzJFjwWAn82NwZTfcEThOthDawNvF0Zz39hs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dtrX25o3YhE1CSshHLstZht7v6+Rif+PEwxQtqdS7pXcx0qSus7NmovDopnIJQ+qZ UdM521RrOypwnV8hmH8eHSuDugWx9xnhWLe6WPESaQafvL/vD8W9oKWOIlXzW/KMXl kTxDltl/IcIYVMNfn+ScEwjC8PXC58iJItYRL1/0QwpMW90xKQMjOh4gg1ti1kyKcf +yKcY2ksAFYT2ZLxL+miK2OTOmNvOaqbwRWHYZFbP6aIrDl1DcFLs2sl9XlPeObK4/ +bVNloK6FBBF+EGfGSFGCiGNU6arSz/mkoJKZZC0fT3LUkOqTiM7T+6H6Urltylzn9 MTiR15YqZxDpg== From: Ivan Malov To: dev@dpdk.org Cc: Andy Moreton , Viacheslav Galaktionov , Roman Zhukov , Pieter Jansen van Vuuren , Stephen Hemminger , Andrew Rybchenko Subject: [PATCH v2 00/14] common/sfc_efx/base: fix code analysis issues Date: Wed, 12 Aug 2026 21:08:20 +0400 Message-ID: <20260812170834.8443-1-ivan.malov@arknetworks.am> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260811174821.8930-1-ivan.malov@arknetworks.am> References: <20260811174821.8930-1-ivan.malov@arknetworks.am> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series addresses code analysis defects in the common/sfc_efx/base library. The first four patches fix excessive stack consumption in MCDI helper functions, each exceeding 1 KB on-stack, by switching to heap-allocated payload buffers. The remaining ten patches correct SAL annotations, add NULL checks across netport and filter helpers, resolving uninitialised memory, buffer overrun, and potential dereference issues. The final patch widens loop variable types to address a CodeQL warning. v2: - note for the future AI reviews: apply this on top of the 'next-net-main' branch - addressed https://mails.dpdk.org/archives/dev/2026-August/343072.html -- fixed the MAC_STATISTICS_DESCRIPTOR_OUT_MORE_ENTRIES accessor -- fixed the FEC hardware enum selection from the software mask -- remaining notes do not seem to point at factual defects Andy Moreton (14): common/sfc_efx/base: reduce stack in RSS context table write common/sfc_efx/base: reduce stack in get addr regions MCDI common/sfc_efx/base: reduce stack in set addr regions MCDI common/sfc_efx/base: reduce stack in netport stat describe common/sfc_efx/base: fix filter saved spec handling common/sfc_efx/base: fix annotations in client MAC addr get common/sfc_efx/base: fix annotations in HW-SW mask converter common/sfc_efx/base: fix annotations in get fixed port props common/sfc_efx/base: fix annotations in SW-HW enum converter common/sfc_efx/base: fix annotation in netport stat describe common/sfc_efx/base: fix flex array in netport stat describe common/sfc_efx/base: fix filter in SW-HW mask converter common/sfc_efx/base: rework SW mask to HW enum converter common/sfc_efx/base: cleanup wider type comparisons in loops drivers/common/sfc_efx/base/ef10_filter.c | 11 +- drivers/common/sfc_efx/base/ef10_mcdi.c | 2 +- drivers/common/sfc_efx/base/ef10_nvram.c | 4 +- drivers/common/sfc_efx/base/ef10_rx.c | 22 ++- drivers/common/sfc_efx/base/efx.h | 3 +- drivers/common/sfc_efx/base/efx_bootcfg.c | 2 +- drivers/common/sfc_efx/base/efx_mcdi.c | 50 +++++-- drivers/common/sfc_efx/base/efx_np.c | 156 +++++++++++++--------- drivers/common/sfc_efx/base/mcdi_mon.c | 2 +- 9 files changed, 159 insertions(+), 93 deletions(-) -- 2.47.3