From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8067F489EF for ; Mon, 27 Oct 2025 17:22:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79C484028B; Mon, 27 Oct 2025 17:22:30 +0100 (CET) Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) by mails.dpdk.org (Postfix) with ESMTP id 5A19940671 for ; Mon, 27 Oct 2025 17:22:27 +0100 (CET) Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-4298bada5bdso4473750f8f.2 for ; Mon, 27 Oct 2025 09:22:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761582147; x=1762186947; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=akEJrUrkn8lBUkT81ebg5LFay7GN6v9vJ2BE2Cy/GuE=; b=R1z8wFKm/M8wAfcms+SOWyGg3MB4sh7ERrLvKxTKQPmYCAiwxZX8JS4/Bkx22cJ/Cu BRnLuU9PbrYloO6jXiYJLODWrnBrm2gTA94bkSGYLJk06/iQa4mlDLi6SYGEOfw+v3Xa mmCV00vmxTYC5VmtAKFZvmdI3gWyH5YkBzQ4crJoZg+X/bAZ5uLPvov8T5BytZ15yUuL BQd0e8kjvXRRSjHR2FzwpJJe16Jm3LQfN62ePbxNJqC6fzvR7/v01IHlW145h6/tuKzz E8pejpUIkS2BiUjSRMg3deittaZ+IS3EIl50DfBMQp2Wr7vqeAeSOSUX+HSAyRNlZ0kP Q+SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761582147; x=1762186947; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=akEJrUrkn8lBUkT81ebg5LFay7GN6v9vJ2BE2Cy/GuE=; b=QI4uRpAqCX6MznHsPDIT9LUx5sIjI6UYTwiMo8yei+u5UB44rnXOXtt2M/G4/Hc1rz 7Q52eBseXeXXSQb0ss3YsygejiWL7FD+HRkFRbmsyEPJDSCUA25AlEkP19CkBCSxEzX7 whijbgu0vjuswJKWbncgKBif30GSh1RJt+fJT/0ZZFzp9+dt2i/w5RW3Dv6Y1qucMd93 So01QMla0tHBF7rlmjjShOmO/+1+vU3HoAK7UWo3fpyWS2RwGqCOhJFmCCKpzCvQ5s8e HJ2NRaPrV+QVcCpW+xwoLzmX5i03YmgCDB5f2YgPl3QIzHiLKqNy45cqJNjch440EC6T 02aA== X-Forwarded-Encrypted: i=1; AJvYcCWMZeuO1QpM0WIqAarWdmgqgyw6jMqkI9VVpgmcPr3N0XHSONIcuFcC6LTe7UmQrSi2kFV7CrA=@dpdk.org X-Gm-Message-State: AOJu0YyF15qjoEuOOg2O1kwyVibwZcCTlpWWDPQH2BJKL/CE66t+5XLy 0AruSCpdzzvY7JSLztTPXA3/tPdPAOb0pzWH8BJ35sbrDqHIhreaWmon X-Gm-Gg: ASbGnculLBfvh/09uQ/zvdTZpvyf2aKuN1ZDEgGGnhLyeltjV51Gec9rcOmcli6Mauu UdO9m0q1omISRvcGY3BG1prpdTD428qXpp0YboHzmW99mpTpKFNydNiIjhPuYX/wpGaU2/sC5uj J0sCaBp6WDHDVJ++zNgX2WciwsXcxoyONxdctifOs0Kaar7AGNHDWw/vu//eWfc/J9HhL6DxYvw T9VjbjhGgK0vDKACD/0nwcai+QtWpOGqo31OO+evNAftGPyZ43agLOJ3MtmxxD9u/BR4E3fmVQw 6REnVr1Ups0zSrITZU48GcbIac0uGVFFEL6IkK/ef6OJ9YT+turf7RwEaTRy+pC1L9zf3ulkD+r 4wPUoTmiHHNHmf9cwlLxzKFP97GGQ3kbBF+SlxlwCvfwwfPysMde1DLKgjtLcJ9fpEBhuEo4/br qAclGAiA== X-Google-Smtp-Source: AGHT+IH2fqvdeFUh4MqJQkfYzSxsnoCnGYHf89hZiC/invtUT0bEprgNL2qX7SrYzq1UT3PoJOy6Eg== X-Received: by 2002:a05:6000:1789:b0:428:55c3:ceda with SMTP id ffacd0b85a97d-429a7e59bc3mr285405f8f.20.1761582146791; Mon, 27 Oct 2025 09:22:26 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:6fc5:c3bc:147e:832c]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-429952d514asm15256512f8f.23.2025.10.27.09.22.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 09:22:26 -0700 (PDT) From: luca.boccassi@gmail.com To: Chinh Cao Cc: Anatoly Burakov , Bruce Richardson , dpdk stable Subject: patch 'net/ice/base: fix integer overflow on NVM init' has been queued to stable release 22.11.11 Date: Mon, 27 Oct 2025 16:19:23 +0000 Message-ID: <20251027162001.3710450-45-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251027162001.3710450-1-luca.boccassi@gmail.com> References: <20251027162001.3710450-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.11 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/29/25. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/09b50e601ae8b254661b42887f9243e728c97d0c Thanks. Luca Boccassi --- >From 09b50e601ae8b254661b42887f9243e728c97d0c Mon Sep 17 00:00:00 2001 From: Chinh Cao Date: Wed, 1 Oct 2025 13:29:04 +0100 Subject: [PATCH] net/ice/base: fix integer overflow on NVM init [ upstream commit 96b1a23f3ea5614e5795307295234c15e0e99a1e ] The shadow RAM size is defined as 16-bit unsigned, which may result in overflows under certain scenarios. Fix the value to be 32-bit. Fixes: a240ff50505b ("net/ice/base: add basic structures") Signed-off-by: Chinh Cao Signed-off-by: Anatoly Burakov Acked-by: Bruce Richardson --- drivers/net/ice/base/ice_type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h index 0b4fe7a5bc..c568813589 100644 --- a/drivers/net/ice/base/ice_type.h +++ b/drivers/net/ice/base/ice_type.h @@ -832,7 +832,7 @@ struct ice_flash_info { struct ice_orom_info orom; /* Option ROM version info */ struct ice_nvm_info nvm; /* NVM version information */ struct ice_bank_info banks; /* Flash Bank information */ - u16 sr_words; /* Shadow RAM size in words */ + u32 sr_words; /* Shadow RAM size in words */ u32 flash_size; /* Size of available flash in bytes */ u8 blank_nvm_mode; /* is NVM empty (no FW present) */ }; -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-10-27 15:54:36.479260314 +0000 +++ 0045-net-ice-base-fix-integer-overflow-on-NVM-init.patch 2025-10-27 15:54:34.815950051 +0000 @@ -1 +1 @@ -From 96b1a23f3ea5614e5795307295234c15e0e99a1e Mon Sep 17 00:00:00 2001 +From 09b50e601ae8b254661b42887f9243e728c97d0c Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 96b1a23f3ea5614e5795307295234c15e0e99a1e ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -16 +17 @@ - drivers/net/intel/ice/base/ice_type.h | 2 +- + drivers/net/ice/base/ice_type.h | 2 +- @@ -19,5 +20,5 @@ -diff --git a/drivers/net/intel/ice/base/ice_type.h b/drivers/net/intel/ice/base/ice_type.h -index ae3b944d6e..5f1f1a2f13 100644 ---- a/drivers/net/intel/ice/base/ice_type.h -+++ b/drivers/net/intel/ice/base/ice_type.h -@@ -982,7 +982,7 @@ struct ice_flash_info { +diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h +index 0b4fe7a5bc..c568813589 100644 +--- a/drivers/net/ice/base/ice_type.h ++++ b/drivers/net/ice/base/ice_type.h +@@ -832,7 +832,7 @@ struct ice_flash_info {