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 5053F489EF for ; Mon, 27 Oct 2025 17:20:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B52740609; Mon, 27 Oct 2025 17:20:15 +0100 (CET) Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by mails.dpdk.org (Postfix) with ESMTP id 7E56140648 for ; Mon, 27 Oct 2025 17:20:14 +0100 (CET) Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-4298a028de6so2980575f8f.0 for ; Mon, 27 Oct 2025 09:20:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761582014; x=1762186814; 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=gRPmyMl1IgtG3ZHh8noRPVACksTt+hgpWpH8xKdLYvU=; b=BemUX+iObQEBbz5y8z02/EWPQYwneQuMcqg+//wQPCnUNG4m4go5Rb2Pt28UhnoAbs nUkWxptMzcZe001sJhJ4+0KoheGQk11QDsCw/FDbeSINeheGL1jWxZNu9AZft4dWrGac WQ39cj8RpzmtD13aS6Sy1EsfYveIPnwGSRTP8/uhsHe5Jv2hdxIzzEtQ7Fj+PsUwxm7N VJr99wm3jmbHUVRkW+UydW+HrAKDp7AYSXquCptu137u/oyu4bcapIpenZzTqJcMHbOH QWbw6yDSwVaDt+kJpE+hK3fSut/3gyGCGfTHmWGJtqT6orOznh8+uFtMlnYzFltxT8nq X62w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761582014; x=1762186814; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc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Y6kaJ9rFZZD/o2Nh3uEQzp WiqES1E4kN6KwbrLYQ X-Google-Smtp-Source: AGHT+IE6/GtTbtssVY7/6NxdUAZy+Mch5PEGYIJqF87kLz06noqnwiewHJLuyyzfy8/cmDUivjNOfQ== X-Received: by 2002:a05:6000:200e:b0:427:548:6e3b with SMTP id ffacd0b85a97d-429a81be9a6mr38878f8f.13.1761582013790; Mon, 27 Oct 2025 09:20:13 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:6fc5:c3bc:147e:832c]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-429952df3c7sm14884661f8f.40.2025.10.27.09.20.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 09:20:13 -0700 (PDT) From: luca.boccassi@gmail.com To: David Marchand Cc: Bruce Richardson , Marat Khalili , Chengwen Feng , dpdk stable Subject: patch 'cmdline: fix highest bit port list parsing' has been queued to stable release 22.11.11 Date: Mon, 27 Oct 2025 16:18:42 +0000 Message-ID: <20251027162001.3710450-4-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/60da73d65687b69136d2da18072777f5de6a6c9f Thanks. Luca Boccassi --- >From 60da73d65687b69136d2da18072777f5de6a6c9f Mon Sep 17 00:00:00 2001 From: David Marchand Date: Mon, 3 Feb 2025 13:50:48 +0100 Subject: [PATCH] cmdline: fix highest bit port list parsing [ upstream commit f3a07a33d7b3a0b153f7f5b60c13bebede9a9104 ] pl->map is a uint32_t. Caught by UBSan: ../lib/cmdline/cmdline_parse_portlist.c:27:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../lib/cmdline/cmdline_parse_portlist.c:27:17 in Fixes: af75078fece3 ("first public release") Signed-off-by: David Marchand Acked-by: Bruce Richardson Reviewed-by: Marat Khalili Acked-by: Chengwen Feng --- lib/cmdline/cmdline_parse_portlist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cmdline/cmdline_parse_portlist.c b/lib/cmdline/cmdline_parse_portlist.c index 290e61f211..6b7096579e 100644 --- a/lib/cmdline/cmdline_parse_portlist.c +++ b/lib/cmdline/cmdline_parse_portlist.c @@ -9,7 +9,9 @@ #include #include +#include #include + #include "cmdline_parse.h" #include "cmdline_parse_portlist.h" @@ -24,7 +26,8 @@ static void parse_set_list(cmdline_portlist_t *pl, size_t low, size_t high) { do { - pl->map |= (1 << low++); + pl->map |= RTE_BIT32(low); + low++; } while (low <= high); } -- 2.47.3 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2025-10-27 15:54:35.010248872 +0000 +++ 0004-cmdline-fix-highest-bit-port-list-parsing.patch 2025-10-27 15:54:34.719947643 +0000 @@ -1 +1 @@ -From f3a07a33d7b3a0b153f7f5b60c13bebede9a9104 Mon Sep 17 00:00:00 2001 +From 60da73d65687b69136d2da18072777f5de6a6c9f Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit f3a07a33d7b3a0b153f7f5b60c13bebede9a9104 ] + @@ -16 +17,0 @@ -Cc: stable@dpdk.org @@ -27 +28 @@ -index 549f6d9671..3efe4143e3 100644 +index 290e61f211..6b7096579e 100644 @@ -30 +31,2 @@ -@@ -10,7 +10,9 @@ +@@ -9,7 +9,9 @@ + #include @@ -33 +34,0 @@ - #include @@ -40 +41 @@ -@@ -26,7 +28,8 @@ static void +@@ -24,7 +26,8 @@ static void