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 BCAC0454E8 for ; Tue, 25 Jun 2024 01:59:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B4D0040EE3; Tue, 25 Jun 2024 01:59:56 +0200 (CEST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by mails.dpdk.org (Postfix) with ESMTP id 0AF84400EF for ; Tue, 25 Jun 2024 01:59:56 +0200 (CEST) Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-3650f2e540dso3275240f8f.0 for ; Mon, 24 Jun 2024 16:59:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719273596; x=1719878396; 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=TGyY53IU7QZw8duS+01pxcgfqW14GqutGlDNzHQM428=; b=kbaaDZijq7qAYhPBgoPduPRp3FTPgkxO67oK4xibNNmylb1I+sPkMkHlbuZRquYf0v RPICWm9QiZdjl+vvseRS0Mt16o2uLRdux4QMWDBPujogchCPd0vxR8zo7w2J8J1CWTGN 5kLw0SHSNbP/PDuSuoQnLCgKq8QalEmPifwsJNpk6pptKu7NPFC6F7zXyi57THApikFH DOlY+K8b4r4NXsM0iaN4rcwffwQZgRIKV3rDnEUTzjOwkVewIi4O3yF7Gdi5/ATjb2JC UjPSJW6MGceBofDAPv6Va2MfhV46EtuRNY6a1CAJJSBE+MWUu+vcYO2Gv7iy/KTClOfJ cP7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719273596; x=1719878396; 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=TGyY53IU7QZw8duS+01pxcgfqW14GqutGlDNzHQM428=; b=ZPVUzow6Llq8wn2+MJPsJAPPLktJPW62joGtd7DywMHWnkBfHC7f2GVzC82/DKqbvS BCDOhlxxmoy4IYU0G39CfNmd0TyifXRPvsK0V2+Jma42Z60jyFl8uiA0WheAv7ny6oX5 EN0eMW8lvNOg8/fhvReDRaCUPZXbkYO+f9X7EQ26jXWdINaYJbyIFCMZ9J5stIeAwfFq gFqx5WRl5pFRWgkKeVIytR62A9RnDRPdWWKzjntXcSHUP+lQJiAuqsr9uqX8cMe5F9fk ulffg8pks0H1qfuQV3kDEL3g1wf8IgLIWG5+Y7jiznp6eh8YrYKvb100gVsY3JDouokU fdAw== X-Forwarded-Encrypted: i=1; AJvYcCUlUcBX4GqjFN6VGyfhOP09efws06xVHYZkfvApfDblLuiU5IPhRIPLuwCcbgA6wXcRzu70G0PVKqsKyi1CSBA= X-Gm-Message-State: AOJu0YzMg0kNrm7R9FoRR/deALCrjRvo9DiUpdoYWjX0VTeS3iJnvuXn uNaAfEFEeUMwcqp9+zqC9pmkOhtqepZrFZHoXO/Mj95kZO+ZifLWpUAtbQ== X-Google-Smtp-Source: AGHT+IE79YAfkR0Le0muteDpDaPS2ROXt9emnlv5qr6qs+1q6ue4SUf8PWr1OQXmXhMpaOPPziVOMQ== X-Received: by 2002:adf:facf:0:b0:356:48f5:4383 with SMTP id ffacd0b85a97d-366e96bf035mr3412706f8f.61.1719273595660; Mon, 24 Jun 2024 16:59:55 -0700 (PDT) Received: from localhost ([2a01:4b00:d036:ae00:7aef:1aaa:3dff:d546]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36638f858fbsm11312369f8f.65.2024.06.24.16.59.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jun 2024 16:59:55 -0700 (PDT) From: luca.boccassi@gmail.com To: Dengdui Huang Cc: Jie Hai , dpdk stable Subject: patch 'net/hns3: fix variable overflow' has been queued to stable release 22.11.6 Date: Tue, 25 Jun 2024 00:57:59 +0100 Message-Id: <20240624235907.885628-13-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240624235907.885628-1-luca.boccassi@gmail.com> References: <20240624235907.885628-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.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 06/27/24. 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/f8aabaa13ad5f0ebd8aca476d5500153aeb9faa0 Thanks. Luca Boccassi --- >From f8aabaa13ad5f0ebd8aca476d5500153aeb9faa0 Mon Sep 17 00:00:00 2001 From: Dengdui Huang Date: Wed, 3 Apr 2024 18:16:22 +0800 Subject: [PATCH] net/hns3: fix variable overflow [ upstream commit d7a0698ce704852cfb3b3b541107477d9b4bd2fd ] The function strtoul() returns an unsigned long, which should be received using the variable uint64_t. Fixes: 2fc3e696a7f1 ("net/hns3: add runtime config for mailbox limit time") Signed-off-by: Dengdui Huang Signed-off-by: Jie Hai --- drivers/net/hns3/hns3_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/hns3/hns3_common.c b/drivers/net/hns3/hns3_common.c index 119c930b1a..c51af055d3 100644 --- a/drivers/net/hns3/hns3_common.c +++ b/drivers/net/hns3/hns3_common.c @@ -219,7 +219,7 @@ hns3_parse_dev_caps_mask(const char *key, const char *value, void *extra_args) static int hns3_parse_mbx_time_limit(const char *key, const char *value, void *extra_args) { - uint32_t val; + uint64_t val; RTE_SET_USED(key); -- 2.39.2 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-06-25 00:22:14.349150622 +0100 +++ 0013-net-hns3-fix-variable-overflow.patch 2024-06-25 00:22:13.089183692 +0100 @@ -1 +1 @@ -From d7a0698ce704852cfb3b3b541107477d9b4bd2fd Mon Sep 17 00:00:00 2001 +From f8aabaa13ad5f0ebd8aca476d5500153aeb9faa0 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit d7a0698ce704852cfb3b3b541107477d9b4bd2fd ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 28c26b049c..5e6cdfdaa0 100644 +index 119c930b1a..c51af055d3 100644 @@ -22 +23 @@ -@@ -224,7 +224,7 @@ hns3_parse_dev_caps_mask(const char *key, const char *value, void *extra_args) +@@ -219,7 +219,7 @@ hns3_parse_dev_caps_mask(const char *key, const char *value, void *extra_args)