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 77210A0C3F for ; Sat, 12 Jun 2021 01:19:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6900E4003F; Sat, 12 Jun 2021 01:19:48 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2052.outbound.protection.outlook.com [40.107.244.52]) by mails.dpdk.org (Postfix) with ESMTP id 511A54003F for ; Sat, 12 Jun 2021 01:19:47 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zg60zwwrhO+zc0umHtfK4mXyaCjFXc8dq3Rwmp4SwkxI0HlZV4rPvFuPjmasXcdVTPiywlx5FdUIgzBVR/6CnfnkrCpd0dyXkWv3X6d0O+JJrPdL7xTG454/PTGz4uRsYXYYT5KRkQqIRZKmvZIrO+Xp0Ad4yv0Tk7I7QVdPFtjSGAf7oac5k0ywM44hUwMUcBovl6IPVExJOOKAvLYz9Dos7iLVGVjju+ak00T9pf2EcEiFoW9tw4YBVGUi4Rnxh+4q5OGr4z2vrDSxjx3hXRXuNgmOq7HwjcYvllRVeO868exrCDjKDoLlsrgb2n4kPydO/G6mNnyquSZ72na6Rw== 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-SenderADCheck; bh=cj1ETvJ0QFfjxKyzx5PAbl42sEmjc/9AOU2LAtvoye0=; b=MjBCntjagQlbrlrWr8Ia/FnpKfiCZP9LroGbDWf2RUGoKFIsvfTQIL63Ww64gYjiW/PFdFwWkvbLm93T4+MqT6I52tHmRlprvPPz4iOxLPBZlwpf2ppfvmR7LY3zIRvaiGf6WUmZ8SW4rwNG1aCXrsQY+aGTA2E3HvauypGCTeo3FXbeDqDXcf2O3M2j7z+rSc2abHVYs80PvojWAnjK3apjbXZlp075TsLxPgMLZYBJ6Ia1ZfiL0bcnfRCFvTOWMJSmCBqjXvPdBJMvKkgYTi2+tzV+S67haXnLv3oMibhcLZ5xeDK9uOBKFwDdfkVmdQv2sxzuzWjvSvyxPR7P/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=cj1ETvJ0QFfjxKyzx5PAbl42sEmjc/9AOU2LAtvoye0=; b=OtC4PHspK11E+OwaCjV4/t/zee7wD8Rl6EUhEjVjWVmdCFf4CD6+4cFhYmVQ69bSKZL2Qh2zyRD3usAr/xZaOEphEbKQ66NEPvzmajfFDzZpOsnzILL0yAFOKvUFjZ2TQvlWfjveWgUbOVotO+ztcQ/P8FzkUM9jrvSNis/ZWVCswztkBXutP5RiLc6HELecn5t32UiLcXORpudUv9KYzqo8Y9syEQPkJVNAC1GxZtT2csp2O0fq0PCfKt/JELIinTGc3Bc9gXuH5BUSEom1cniwbyqFybzxuVFKNRyDKbabhDKF9Ly0+a4+cJTIKXEHDzILM5duJJLHM+sbZdfQpw== Received: from DM5PR13CA0004.namprd13.prod.outlook.com (2603:10b6:3:23::14) by BN8PR12MB3138.namprd12.prod.outlook.com (2603:10b6:408:64::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.22; Fri, 11 Jun 2021 23:19:45 +0000 Received: from DM6NAM11FT030.eop-nam11.prod.protection.outlook.com (2603:10b6:3:23:cafe::9c) by DM5PR13CA0004.outlook.office365.com (2603:10b6:3:23::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.9 via Frontend Transport; Fri, 11 Jun 2021 23:19:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT030.mail.protection.outlook.com (10.13.172.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Fri, 11 Jun 2021 23:19:45 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 11 Jun 2021 23:19:43 +0000 From: Xueming Li To: Ferruh Yigit CC: Luca Boccassi , dpdk stable Date: Sat, 12 Jun 2021 07:04:10 +0800 Message-ID: <20210611230433.8208-156-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210611230433.8208-1-xuemingl@nvidia.com> References: <20210510160258.30982-229-xuemingl@nvidia.com> <20210611230433.8208-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fcf38cd4-ae34-4c35-9eba-08d92d2f665d X-MS-TrafficTypeDiagnostic: BN8PR12MB3138: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: trfWL2fV3/2hkAi4KuBoYJatfRpx/1MBt3ouEEKHGwmXx3+r3YKM7Oia/ZNRUz9GpB7b0yoT8yZ5CEFCr0/GlnYAqcqaSfvy0nBmlQTrzVm+VndPo6xKK/Q5tPuilQm/gmkxrrhakzXvYy478AiY8SlKxD8SAaF6/TTMHXHCq3yBhesuPqSs81knhNmi999n8gbSN/jJ6ya7ZKwe+lNBBY2K7XF3YY77kPCo5mpnuGkbTGJcJlTBLkppYN2KgDcR1jJAougSvZMHKeqAAK0s0sGKxBZxsy9YD9DFiL/02pZirTraJDN2XwgVjPZXA/cKtNowwOcPbq6emQgxZhWmn3QE3tR7wV6aQFFTLfaEYtoivkp7OIMa6Ma+pYbb3YmyweleOgWAI+hdlSMrqhzXgnH+QNzMz+FZkARGfBoUWNxsDEMSTc84K+e/IT//0iNbX5WQNOQsh6VZyF7t4UCZR6Yk7duJiHlURfmq75/Uq+0ynsIBBNybrefHrZyiN46rj9kKX7N6yg+bqFDXzepc9CYSUtYe4iQnQua3yRi4Hpi33TDv5lZwY1YxyQSzzLWafBEj1Ofo2fIyR/l1enNpeZxAqiRf/nFUhmPkbu7EiRqPdc/9W6mHVvS0t95TMSnif3kwnOJEFDbPetPuncLrjgzfsdSTIrg/0KPdRTI13GWUuaaMZeTJLlU2bL3rl4E+Z6rk60WqMgMBQUUGQHl/sB6+WWS3JpU6wYTtbt/u70DdHQZFPzb28VrRLRmKT+23oBD++jkoE13m9foGSJG4kAw3dDm4l32TFehqxvzY0XPz1BaKpcyt+WlE3f2gtkTd X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(136003)(346002)(376002)(39860400002)(396003)(46966006)(36840700001)(16526019)(8936002)(356005)(54906003)(8676002)(4326008)(316002)(86362001)(6286002)(82310400003)(53546011)(426003)(36906005)(186003)(336012)(55016002)(7636003)(36860700001)(70206006)(1076003)(47076005)(6916009)(70586007)(82740400003)(36756003)(6666004)(2906002)(7696005)(966005)(5660300002)(478600001)(2616005)(26005)(83380400001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jun 2021 23:19:45.2620 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fcf38cd4-ae34-4c35-9eba-08d92d2f665d X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT030.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3138 Subject: [dpdk-stable] patch 'test/table: fix build with GCC 11' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.11.2 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/14/21. 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/64ac670fa007b2e0005cb16416324745ccc5a1ad Thanks. Xueming Li --- >From 64ac670fa007b2e0005cb16416324745ccc5a1ad Mon Sep 17 00:00:00 2001 From: Ferruh Yigit Date: Mon, 17 May 2021 16:57:39 +0100 Subject: [PATCH] test/table: fix build with GCC 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Luca Boccassi [ upstream commit 33c12ac5ba5f09727c6de807e71403dd260a7bbc ] Build error: ../app/test/test_table_tables.c: In function ‘test_table_stub’: ../app/test/test_table_tables.c:31:9: warning: ‘memset’ offset [0, 31] is out of the bounds [0, 0] [-Warray-bounds] memset((uint8_t *)mbuf + sizeof(struct rte_mbuf) + 32, 0, 32); \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../app/test/test_table_tables.c:151:25: note: in expansion of macro ‘PREPARE_PACKET’ 151 | PREPARE_PACKET(mbufs[i], 0xadadadad); | ^~~~~~~~~~~~~~ 'key' points to mbuf header + 32 bytes, and memset clears next 32 bytes of 'key', so overall there needs to be 64 bytes after mbuf header. Adding a mbuf size check before memset. The original code has an assumption that mbuf data buffer follows mbuf header, this patch accepts same assumption. Bugzilla ID: 677 Fixes: 5205954791cb ("app/test: packet framework unit tests") Signed-off-by: Ferruh Yigit --- app/test/test_table_tables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/test/test_table_tables.c b/app/test/test_table_tables.c index 1aa269f95d..4ff6ab16aa 100644 --- a/app/test/test_table_tables.c +++ b/app/test/test_table_tables.c @@ -28,7 +28,8 @@ table_test table_tests[] = { APP_METADATA_OFFSET(0)); \ key = RTE_MBUF_METADATA_UINT8_PTR(mbuf, \ APP_METADATA_OFFSET(32)); \ - memset(key, 0, 32); \ + if (mbuf->priv_size + mbuf->buf_len >= 64) \ + memset(key, 0, 32); \ k32 = (uint32_t *) key; \ k32[0] = (value); \ *signature = pipeline_test_hash(key, NULL, 0, 0); \ -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-06-12 06:54:00.513757200 +0800 +++ 0156-test-table-fix-build-with-GCC-11.patch 2021-06-12 06:53:56.620000000 +0800 @@ -1 +1 @@ -From 33c12ac5ba5f09727c6de807e71403dd260a7bbc Mon Sep 17 00:00:00 2001 +From 64ac670fa007b2e0005cb16416324745ccc5a1ad Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Luca Boccassi + +[ upstream commit 33c12ac5ba5f09727c6de807e71403dd260a7bbc ] @@ -30 +32,0 @@ -Cc: stable@dpdk.org