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 AD3DDA00C5 for ; Wed, 20 Jul 2022 10:26:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A642640697; Wed, 20 Jul 2022 10:26:08 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2077.outbound.protection.outlook.com [40.107.237.77]) by mails.dpdk.org (Postfix) with ESMTP id 446D740FAE for ; Wed, 20 Jul 2022 10:26:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L3tvHXQZNWYT6GTNLOQlPYGmb0xsPTgb/tP8+KqKpZ3xQ31rqODX12J0y1iT1yHNsl6wyIYZSb3dHCNz4z7lOX73nvCHE3Lcs4TTtzO94kPB6Pyp0WthI2WMK6oifZO2taZlBLfzLORiiVdiXXpKs1HfAuSrniJdYOz8p8m+A4owewGfWjyNJkC52rhA0yzNwT9X5JkX2wYxsF0/me/QvkkvlU3GUk2MzBBWH/56yGujT+WZlhNSpDW49fTpv0CV2Z1oUE3IlesEX6SWL/UBqQib7pBS2yMwRGH/qW149QN76gNF012vemTQJFMLMxMnG1HItE+x70bUIMn9qGYeug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/wZfY9hh6qx+fCH0h8Vgo1d+xKneRTYVnUO72yAuKK8=; b=fdbro5KoIF2lTZcXm2zMTdgL/QQ9Vryqc1JkAQTjoHRKEc+mpvqXp8TCMMHh42u0HSfnD0FEcNyru1V6R8yN28vjavwb5SpeqK2UdCSwcPMylCBt7s9NNkCpoC879oKb9t5uw3TMKbK0ox7juTuI+/YO0JEbRbO34qcrxMKY6eNU9yWbQsAQlHkH2JDGVCyCaAx78YnhN1SV9ahzUl6lWoJZP6g2QDZg1Dw+ihERUW+PHtdk8YmnGYIG8ka+awNn4laqwISlSkKGU/Zvec3ixEUNL4HEf0QnireDOPiNY42z0lhDLS5Tn1sHZvywQps1+XczmSD1b76FSci5hkxU8A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/wZfY9hh6qx+fCH0h8Vgo1d+xKneRTYVnUO72yAuKK8=; b=MuuQVzqo3ecalZ1Ny+vSPHyVodA97kFWiMDA/jsmmBi/KIe4tH3SSm9hOw5pAG/rRmDQ1YcD7Qg8vto2+HI88JCJ5JiJtav0i5SBwgoxJFk+8vRYdyZLNsKb7fmtsA67iXFxBehGx8EdI4o1doKabVzuB6yHvAA7MzjlOdNVxgMMlcM/Rl742npQiioFTk6+Xsdj1wrqo0FTIrZLpthu3yzz8c/MPGwlyCvr5gv68vrAiEdxV5yxgepQs9UFvCn7U2NQW5DtQOXVClJE5rbdXjrBFVxLwmmPdEVcEprofOvH1Sb1PESLyXszc1j+pNUuDzNk01Q2fyMMMdLWwlnbog== Received: from MW4P223CA0023.NAMP223.PROD.OUTLOOK.COM (2603:10b6:303:80::28) by CH2PR12MB4086.namprd12.prod.outlook.com (2603:10b6:610:7c::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.15; Wed, 20 Jul 2022 08:26:05 +0000 Received: from CO1NAM11FT040.eop-nam11.prod.protection.outlook.com (2603:10b6:303:80:cafe::28) by MW4P223CA0023.outlook.office365.com (2603:10b6:303:80::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.18 via Frontend Transport; Wed, 20 Jul 2022 08:26:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.238) by CO1NAM11FT040.mail.protection.outlook.com (10.13.174.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5458.17 via Frontend Transport; Wed, 20 Jul 2022 08:26:05 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:26:04 +0000 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.26; Wed, 20 Jul 2022 01:26:02 -0700 From: Xueming Li To: Gowrishankar Muthukrishnan CC: , Fan Zhang , dpdk stable Subject: patch 'examples/fips_validation: handle empty payload' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:21:19 +0300 Message-ID: <20220720082132.3954126-50-xuemingl@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220720082132.3954126-1-xuemingl@nvidia.com> References: <20220621080301.2315720-1-xuemingl@nvidia.com> <20220720082132.3954126-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7eb771a3-d22f-4a10-c220-08da6a297d27 X-MS-TrafficTypeDiagnostic: CH2PR12MB4086:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?ekhzXvHQMHpvP7K6/3UQVeaRcVw9yIHT60DCL1dB3mntsQbkFVIMB3bJGYL9?= =?us-ascii?Q?glET5qUE9roXstJ+lnPptwkdayKzPDPPlB0osvzErV8kjkksw3o0YXhFBxS2?= =?us-ascii?Q?F9g/agDqO8RdibwAnp7/MzOq/65WJjvo73YrgGGwC5fwLF21k3gr/GPRxN+/?= =?us-ascii?Q?PYdpAULpO0h5cwkNQtuEPYDOSSoRVAw8Eu/3BbTxc29Nf6YjDYMT0syc1zx8?= =?us-ascii?Q?TvE4wAnPFg9YR8e2p1VGSk2fNHYaCUvRXyoi5x0VcNTW/XfG+YY7BLTVBM0i?= =?us-ascii?Q?wuNQliSr9T1YNBV2HundZZI34A7fg4kDqkE97rUnq8vnbnV0x2aFKLCDp8mz?= =?us-ascii?Q?6g71NWcxsZ7T0+wx8Eck5rMhbeDXu6RiWk4Q2EkUMppNprnvqg8kQhTkLmk4?= =?us-ascii?Q?Z8ScgRwJngtnNU4Ttn5/NJmLkqgbdeaea/7aBHoHN7i2PqhvB5FIrLbCeGVz?= =?us-ascii?Q?LRRSZH9QRLDVXXxEuf6pHZuQQ4RjWml/Z/7J4HHAGd2AO4+yNjC3fZAOkd/B?= =?us-ascii?Q?MpjeWu2ojZ1i2HD6EO6kfMPpwojeBwPl1Q48jFJ6aewL2MH74/s8++a//l59?= =?us-ascii?Q?BunD5hkjH3J7+DcZ6aEtIJrogDblxzyeCkJuuz7y9V0eUYd/ErD3IoP3OOqu?= =?us-ascii?Q?5bF7AxZ7c1yymbCtsF/YsyfKl9W78+HF9Lev5TA7djJLJmcu6R+crZfBuaZ6?= =?us-ascii?Q?9fpUcdNkld7hWPAidtBZLi3FIr3olgYyXddQtImaF/EkpV43w8RIHJnlD3qI?= =?us-ascii?Q?L31a+O+gobouK9Bq9AlRhFf0ZbLySIOYQx4r+6/9JyqxWuLkVZn2gkVFVY50?= =?us-ascii?Q?ZhBsg/ntD2cqTeQ6lgVUnT4QAce6gTM2qkhav+TPtASGQk52Aw4guTao+EVZ?= =?us-ascii?Q?ycNLYBuTBUATgrWbgCdfJGL0ymbhSChN8rbxfRDjx2t+q68ez56RDmlNRold?= =?us-ascii?Q?ImdSspCx+JGb0qXrRuq7UQ=3D=3D?= X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(376002)(346002)(136003)(39860400002)(396003)(36840700001)(40470700004)(46966006)(4326008)(82310400005)(8936002)(8676002)(36860700001)(2906002)(70206006)(86362001)(81166007)(70586007)(5660300002)(40460700003)(83380400001)(41300700001)(53546011)(47076005)(7696005)(2616005)(186003)(6916009)(16526019)(54906003)(966005)(356005)(336012)(6666004)(55016003)(36756003)(316002)(478600001)(40480700001)(6286002)(26005)(82740400003)(426003)(1076003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:26:05.1213 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7eb771a3-d22f-4a10-c220-08da6a297d27 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT040.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4086 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 20.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 07/22/22. 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/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/ff40c914b09e4bce5bb1c3d879df6931e31ba27d Thanks. Xueming Li --- >From ff40c914b09e4bce5bb1c3d879df6931e31ba27d Mon Sep 17 00:00:00 2001 From: Gowrishankar Muthukrishnan Date: Tue, 28 Jun 2022 18:41:09 +0530 Subject: [PATCH] examples/fips_validation: handle empty payload Cc: Xueming Li [ upstream commit 0fab1428332bdfb213b51e068625d38419488646 ] Allocate at least onebyte to handle empty payload in a test vector when defined. Fixes: 3d0fad56b74 ("examples/fips_validation: add crypto FIPS application") Signed-off-by: Gowrishankar Muthukrishnan Acked-by: Fan Zhang --- examples/fips_validation/fips_validation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fips_validation/fips_validation.c b/examples/fips_validation/fips_validation.c index 4c3ed80c82..39dfe8e8e6 100644 --- a/examples/fips_validation/fips_validation.c +++ b/examples/fips_validation/fips_validation.c @@ -522,7 +522,7 @@ parse_uint8_hex_str(const char *key, char *src, struct fips_val *val) val->val = NULL; } - val->val = rte_zmalloc(NULL, len, 0); + val->val = rte_zmalloc(NULL, len + 1, 0); if (!val->val) return -ENOMEM; -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:01:01.141374531 +0800 +++ 0050-examples-fips_validation-handle-empty-payload.patch 2022-07-20 15:00:58.787667039 +0800 @@ -1 +1 @@ -From 0fab1428332bdfb213b51e068625d38419488646 Mon Sep 17 00:00:00 2001 +From ff40c914b09e4bce5bb1c3d879df6931e31ba27d Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 0fab1428332bdfb213b51e068625d38419488646 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 94e31abf83..324abccb14 100644 +index 4c3ed80c82..39dfe8e8e6 100644 @@ -22 +24 @@ -@@ -630,7 +630,7 @@ parse_uint8_hex_str(const char *key, char *src, struct fips_val *val) +@@ -522,7 +522,7 @@ parse_uint8_hex_str(const char *key, char *src, struct fips_val *val)