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 825D3A00C5 for ; Wed, 20 Jul 2022 10:25:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7DDD641101; Wed, 20 Jul 2022 10:25:12 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2053.outbound.protection.outlook.com [40.107.244.53]) by mails.dpdk.org (Postfix) with ESMTP id ED27940697 for ; Wed, 20 Jul 2022 10:25:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TOVPM2xzI9wsb+ozE7Ef6c5wrA5us3Ei8U8XxVEKkhsd9+2Ml2dcz6W8cPXglPxWY2/2M8TbDSGN98knzBhRxQF1Wo2T3Q1dy7j/hXOx/UpkApRyxlO86sNs6IQ6J3V7FRlrVyR+QrWw8JHEkw0caVqWSy/VzWoRKX62XCf3pA57MEs2FBWvrJ7icoGb68vXUvQl1tG48aWNRUCBh6FX2tDjVllQhzchYzS4oUdzVz9RWOvhGMrpJL99rxtkXLHhp1Pv80pKxPuIJzqzq5TxCctFrjKw+oiR9GuitGmiVlob/tUfLvopfqF1OLnHAvzNgrCOPiWcaT8QKnJe3S88Qw== 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=BilyBdGWcC1Z5OfMqSCv095FWYMCj2NQjYwwfTXicqk=; b=lN57FsHeKcJ27CwYqerWnTR4i7OF4+WLRl+dZxx+btGyIGeubt6lPUTMYKs/gDkZEflEtXm3AUHsLxLIsZrqbvJDFJ6PxGaWVVEdwIl1p3Gf5Uxk8SlyYM0R0wqTXryeECbWPW5Vj3WLUNTn2I76I019J5fJtCvEQ8uqpUt6UN8/cx1lM+9gqalBMyfLKyGhs8c6DXXkXHpB+mcPMizEHZJ29wVU0Vi2J6JcIOOSof6tpyc1RUbFy39NaJ+6RWCSaLTwkRj2dbFMgK/phAcp+lKZHiuNj4xCX6nl3v9hl9kysYOqWEDJLdh+NfskDIKjNV9QzT3COSj5TaCxFJDm9g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.235) 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=BilyBdGWcC1Z5OfMqSCv095FWYMCj2NQjYwwfTXicqk=; b=KOSb/YPpGj5YKrEJG2HA0ki54w1pOuco8wNykaxlgeIs9D8yk9t44ENzzeJ7lecNqz1OQSgUcqrCkdg0C8Pk1kkWjOn5uD978pmY/sghuv6jvCIiwUHRI6NTuaJ+hq0Q2gcONqCsAwJH9qEG2QtZkpg46d7f2VapxPPaDKwF/1YB7UEmbqPWvcmyD14uwtDiKwqXhcQcgtBWniOB4S41Rr+najl4W3yRK1OS7hrErLWmI/kO5f4o/vUIO1HGR5ABCshwUG3Cpw33ozeTIEJeepfkwWNT+c/LUxDuZI9daphTzL5r96bvkt3QNNllA+kb3BtWty8BUBdHRwbJvX67ow== Received: from MW4PR03CA0162.namprd03.prod.outlook.com (2603:10b6:303:8d::17) by BN9PR12MB5033.namprd12.prod.outlook.com (2603:10b6:408:132::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.17; Wed, 20 Jul 2022 08:25:09 +0000 Received: from CO1NAM11FT042.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8d:cafe::e) by MW4PR03CA0162.outlook.office365.com (2603:10b6:303:8d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5438.24 via Frontend Transport; Wed, 20 Jul 2022 08:25:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.235) 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.235 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.235; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.235) by CO1NAM11FT042.mail.protection.outlook.com (10.13.174.250) 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:25:08 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL107.nvidia.com (10.27.9.16) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 20 Jul 2022 08:25:08 +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:25:06 -0700 From: Xueming Li To: Hongbo Zheng CC: , Min Hu , dpdk stable Subject: patch 'test: check memory allocation for CRC' has been queued to stable release 20.11.6 Date: Wed, 20 Jul 2022 11:21:08 +0300 Message-ID: <20220720082132.3954126-39-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: d1aef060-5ce5-488b-6650-08da6a295b99 X-MS-TrafficTypeDiagnostic: BN9PR12MB5033: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?XLCt4D9/SK72meVemgAmsSchg7c62NMd/A7Q/veZUdaJKp69CXa9eJQ3fy2p?= =?us-ascii?Q?xI6du3eE5X4kU7EWAeeQcsWqSLCpp7UUVNKmbDT91minEYZfM8bj969gWILm?= =?us-ascii?Q?wCy/VmoSJgSvfaLdexJmIQz5gDodyOVqFcgwy4mK7+sWxavYlfl/VoGs+eho?= =?us-ascii?Q?BXPe97mvMNoQK3FT7ht0Uw1+Tz4aLcZfshbKJ02GyLvehmpcqJn9M+SvK8X+?= =?us-ascii?Q?ZZs9C4IQCsSxF9qBk63PrRSSBU+qyRLSC1sRtKZE2mVl0SAP1M0rvXlC7XUz?= =?us-ascii?Q?7YFh6WhLjMDm5OG5d7VHHL6Lvdbz+Ca9QmV3x8KiziiRksdETW9ejSb5Fo5l?= =?us-ascii?Q?FNQ6LEd4oI7Tp6vrz+J7k9DjTwgHnEuXvf2f5qKQbxk5lLQu36zyukbTnKQv?= =?us-ascii?Q?u6+UmxyG3PJTWVrhw2t28f+TJR5/uuIfIpi9EVxGuzrk6IEVNGF78wDjr/ox?= =?us-ascii?Q?QtnvwKPoLpcKZr2vmfAtrSFyUTnHslB6qC2+yr79slDc5Nqluy2YeAcJgLJU?= =?us-ascii?Q?v8DV73DUJBRsvg6AkXom7xtyXp2YNFuqkKIYyeCiyCbZi4asTvrYpXd88do7?= =?us-ascii?Q?0F65NMIccz4dkJRaWFioXdlX6Mj5IUhwKf5BDbWdTfjRmINOMWWFgGjCij7Y?= =?us-ascii?Q?bKktzAB3Hfdhahk+DJCr7MBR54qrP72nM6J5GliztiNa0cUPNMzftrsAYuSs?= =?us-ascii?Q?NoEMcmK6TYooz05HRAMTvx/EUbHhOulPI8ZkLW0DYz/I9fZ1isWcbzyhyKaP?= =?us-ascii?Q?sfkoNjDzKp9MkJ1/CbpPvk0YQvGXUHgU58Fr9F7dMfCPoIhrGJLpaH+ait3C?= =?us-ascii?Q?9qCVNl8qDDNFSNA+occxv8O1h+V0e8IKLLhtPIytrEvnELdOKkZ2O0x4uX9Q?= =?us-ascii?Q?CYrK1jkc9YAHvhaoFAT+y1dwVZZ4eqjDXuwx8L9kho+gefAiMw8TbxdebdPJ?= =?us-ascii?Q?w56SHCf3WCcylQhC2OB4Gw=3D=3D?= X-Forefront-Antispam-Report: CIP:12.22.5.235; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(376002)(396003)(136003)(346002)(39860400002)(40470700004)(36840700001)(46966006)(86362001)(26005)(41300700001)(40460700003)(2906002)(53546011)(8936002)(5660300002)(6286002)(478600001)(7696005)(966005)(1076003)(2616005)(82310400005)(186003)(316002)(336012)(8676002)(55016003)(426003)(82740400003)(40480700001)(81166007)(356005)(16526019)(54906003)(36756003)(70586007)(6916009)(70206006)(47076005)(4326008)(36860700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2022 08:25:08.8236 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d1aef060-5ce5-488b-6650-08da6a295b99 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.235]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT042.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN9PR12MB5033 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/4fef76f744c320917a16e667e211e0f6f6723281 Thanks. Xueming Li --- >From 4fef76f744c320917a16e667e211e0f6f6723281 Mon Sep 17 00:00:00 2001 From: Hongbo Zheng Date: Mon, 19 Apr 2021 21:34:44 +0800 Subject: [PATCH] test: check memory allocation for CRC Cc: Xueming Li [ upstream commit 52aab95476d69abb522b4a588b664281e8464a7b ] The rte_zmalloc is called in test_crc_calc without null pointer check. This patch adds null pointer checks on return value of rte_zmalloc. Fixes: 9c77b848b1c1 ("test: add CRC computation") Signed-off-by: Hongbo Zheng Signed-off-by: Min Hu (Connor) --- app/test/test_crc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_crc.c b/app/test/test_crc.c index bf1d344359..8231f81e4a 100644 --- a/app/test/test_crc.c +++ b/app/test/test_crc.c @@ -80,6 +80,8 @@ test_crc_calc(void) /* 32-bit ethernet CRC: Test 2 */ test_data = rte_zmalloc(NULL, CRC32_VEC_LEN1, 0); + if (test_data == NULL) + return -7; for (i = 0; i < CRC32_VEC_LEN1; i += 12) rte_memcpy(&test_data[i], crc32_vec1, 12); -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-07-20 15:01:00.592662309 +0800 +++ 0039-test-check-memory-allocation-for-CRC.patch 2022-07-20 15:00:58.747667104 +0800 @@ -1 +1 @@ -From 52aab95476d69abb522b4a588b664281e8464a7b Mon Sep 17 00:00:00 2001 +From 4fef76f744c320917a16e667e211e0f6f6723281 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 52aab95476d69abb522b4a588b664281e8464a7b ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index 0ed080e482..5edc8fb13b 100644 +index bf1d344359..8231f81e4a 100644 @@ -23 +25 @@ -@@ -79,6 +79,8 @@ test_crc_calc(void) +@@ -80,6 +80,8 @@ test_crc_calc(void)