From mboxrd@z Thu Jan 1 00:00:00 1970 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 65F78C88E6E for ; Mon, 14 Sep 2026 16:22:52 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91B9440EE7; Mon, 14 Sep 2026 18:22:50 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by mails.dpdk.org (Postfix) with ESMTP id 1015040ED6; Mon, 14 Sep 2026 18:22:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1789402968; x=1820938968; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wxll7AXPT2vgsKk/tFsvNBiCP5XjV8oOStIPWWV13sc=; b=Sb/a878eG58/BSkZuk/hKjhUN9MJ0tQabVlnbCFkxAb/x+AMFPeCK+XU sHA5pDuEcQwIqd3iDXxyCG6/6ykjlmCUGSvhlCnFKctvjYUjt1uyAkeys mGgfWy4TdVdOdvpB9ZNarYR0tw9LnFh2NpAL9pg0if7vK8aDaSWFa4ToO U4bcITd0M6yjza59uvWrEh2sMlXZQP+xDAHu7VC+X92MPSmiP2/8e4Dh7 u1V0OUbJtSnyVylUH0wzgDkFbqupWCxQH0cOMmbt+b4dxxx4gU2gQXSHY AqjSsj3APiDjlALJdpcjd/B396kYup7BQXj9OK/vuBv5eeePdwOiezYzP w==; X-CSE-ConnectionGUID: fzTWU72FQM2PMVVZ9OGrRA== X-CSE-MsgGUID: GzFQxKV4TfaJqa6Q+ctTsg== X-IronPort-AV: E=McAfee;i="6800,10657,11905"; a="100352858" X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="100352858" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2026 09:22:47 -0700 X-CSE-ConnectionGUID: e2IA4eGbSh2JMEr9QOODvw== X-CSE-MsgGUID: dgFbKg5HRZyhVh8cVHuXPg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,103,1787036400"; d="scan'208";a="277953018" Received: from silpixa00401385.ir.intel.com (HELO localhost.ger.corp.intel.com) ([10.20.227.210]) by fmviesa005.fm.intel.com with ESMTP; 14 Sep 2026 09:22:47 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson , stable@dpdk.org Subject: [PATCH 2/2] net/cpfl: fix overflow on store of single-queue settings Date: Mon, 14 Sep 2026 17:22:34 +0100 Message-ID: <20260914162234.4058977-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260914162234.4058977-1-bruce.richardson@intel.com> References: <20260914162234.4058977-1-bruce.richardson@intel.com> 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 The Rx and Tx single queue settings in cpfl driver are both boolean values, but the parse_bool function writes to them as int. This causes an extra 3 bytes to be written beyond the variable itself. Fix by changing store type to bool. Bugzilla ID: 2042 Fixes: 2d823ecd671c ("net/cpfl: support device initialization") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson === Note: this fix is superceded by the kvargs numeric args patchset [1]. However, that patchset relies on new kvargs features unlikely to be backported, so this standalone fix is useful for backporting or if the whole other set doesn't make the 26.11 release. [1] https://patches.dpdk.org/project/dpdk/list/?series=39247 --- drivers/net/intel/cpfl/cpfl_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/intel/cpfl/cpfl_ethdev.c b/drivers/net/intel/cpfl/cpfl_ethdev.c index 4315adb68c..b1b7637f48 100644 --- a/drivers/net/intel/cpfl/cpfl_ethdev.c +++ b/drivers/net/intel/cpfl/cpfl_ethdev.c @@ -1448,7 +1448,7 @@ parse_vport(const char *key, const char *value, void *args) static int parse_bool(const char *key, const char *value, void *args) { - int *i = args; + bool *i = args; char *end; int num; @@ -1462,7 +1462,7 @@ parse_bool(const char *key, const char *value, void *args) return -EINVAL; } - *i = num; + *i = (num == 1); return 0; } -- 2.53.0