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 B3C9D428F8 for ; Sun, 9 Apr 2023 17:34:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB48F41149; Sun, 9 Apr 2023 17:34:11 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2047.outbound.protection.outlook.com [40.107.237.47]) by mails.dpdk.org (Postfix) with ESMTP id 19C2140EDE for ; Sun, 9 Apr 2023 17:34:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NmBeLFTx2lEX4JOPwWUxwIWvV0oqQ0n+IpmfnO8qUNtCprmxnth3rs2fm4SD4fRAI29C0+u+PETKmeXqNd295Z2w18NUEcFLM1eBCqOLCHYRcGS5Dv+AAmaycz9306xD0Fu+NwwhUDM8BPM2uQOj3c+47MUzdLeLvf2ZOWophKfhdTOgZadtaMmhtBr5ZGkyh5iyJvQOLDMJO9Vj9HxDevY2kBYhfj0UySxambiyHIvRRRZxh8KDMUVIipg8BmZIYmIsI0B5wOtDi3a02pGW7zk9WnPrcFmaJFvhazi8KXk0J7Hre50fB0P9+ry/nNUu6+w0WOyNeVSFSuv7ktcuKg== 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=xigSbBr3J52LJDF/9/fBZ6WwCOV2EekXYQi0Caul0O4=; b=OiCkFCQup/J/jHaxFigE9GJRrvRLicBB/yuY+UrESKbhgiiW2Ttg7f0QCRw+/Hop++yShSXzXqHbzcVmIn1tkwV+SmeMfZrnV/2FYrf9NUahH/vnOG4EVcSZtN0knGJ5bxbNddzpMj3r7NrUDhJGzZb1B7Vr6PYdfI+1B6tWYsIM6Z/mYEF+suim7boSUH+zqkwpfPAYAT8dnI2l2LHPrn6LS7asCfRc2MXQ+8Fy6/1bjNn/46RbuG6PR8cPLEOZUcQDvTO/kAEZO7keA88DdHnPwyVo55NcEl4va7U9aZ3X9uJkmPVufjWD9ZKrIGf9QT3zqzUfqgHLZ6+DxO427A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=redhat.com 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=xigSbBr3J52LJDF/9/fBZ6WwCOV2EekXYQi0Caul0O4=; b=GrePosfxq6iKk/Kh5Z8/k7kXx/mv5911ROJOa8yc9WRXVYW6f88WgMbOTzBbgmg+XtunbxG1Pa55+6+GvRRUhRaBULd6qUVhbsDYroFlM3eW/nX4jSpqOwwL5shiklJq73MvajFVpCPTc8Z57Fz0rNr0DSUAMOcqOmyEQoY8bzrUPQ573tASPtiKO/QQvit+VrULkEqrNa1ermDPq4SZeds3ANHvD6b7O/O0kJTnT61+w0hdo91aaNn0ty8l7fLxaZzmtIC6DVeVRv+/wSPaqkWegl7dSBpfHGP3bHIi1MZpl46V5BG8eJaFDy4dt5XSHrFZx3lyDiiuuJwMoMqTHg== Received: from BN8PR04CA0031.namprd04.prod.outlook.com (2603:10b6:408:70::44) by SJ0PR12MB8139.namprd12.prod.outlook.com (2603:10b6:a03:4e8::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.34; Sun, 9 Apr 2023 15:34:05 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:408:70:cafe::df) by BN8PR04CA0031.outlook.office365.com (2603:10b6:408:70::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.39 via Frontend Transport; Sun, 9 Apr 2023 15:34:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.25 via Frontend Transport; Sun, 9 Apr 2023 15:34:04 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Sun, 9 Apr 2023 08:33:52 -0700 Received: from nvidia.com (10.126.230.37) 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.37; Sun, 9 Apr 2023 08:33:51 -0700 From: Xueming Li To: Kevin Traynor CC: David Marchand , dpdk stable Subject: patch 'ring: silence GCC 12 warnings' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:24:44 +0800 Message-ID: <20230409152529.5308-97-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT014:EE_|SJ0PR12MB8139:EE_ X-MS-Office365-Filtering-Correlation-Id: 5420e3f5-e9a4-419b-7a62-08db390fda2a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZOfmT/sWsV0y/Gk5nI9TLQOZpUdk6W05Ts+u07X8FvrX7gw/TvcIEKrTKPwdkGlCfFj4ZP3gi42y0HDbDJSJGENxl760WDUfMxRuF5s//XURma41czgoGbz5BodbLNvB4uH2AWx9Nl93q+7RSm7yWrKoYKqxrmH6Lb8IUxKYvtYPnIDO2IIo5yWVmuf14NFJvA2/RTP54zR68ktxPZ3lvrjUfs1zwZyq2Dk7/ZRlxlTg9iQfR1HaL+8eZ3RG79eCYQEvqTlWTK+XskMJzgHhJBSmuGurMjs8tIqCTLBuhWBVCnZWqLKEUNzsXoFVHGkm+Yz7UI9RRt8c7F7P4rDSWShFKdYN35mpY8xQ4BdC3trJ3Tiv684W4/bdZlHvvjsdMzsEeSWbGN7vqmhkgW13ckvooPkf2UvR7+LaidEkIqsj8JT5NW84hk4nKqPcitSyjpddDoT9pASvVg4hSJvvM9Cx3zpmrhIq0Vjlwdp1G//EINDa2/F1WuWh2PuW7qUEsjWa9U3RIcNZupqWi/U8IUWjuP6Zr5AMGD54pnuo14v6PP9wy4oW7pnEirEDZVPDPdhGCWYc2SyRDayCbqjWeZV7eWSJv7rkkcYqDnNS6DW9uJ2UNGa17jbk3cBn+t4xD03yV9wmlqjPF7yrrW/H2rCVMW7ww4izIvaztWyYUnOXRMyl9cmI5BdYvbJtq6O0zIS7N8oK0BCEo2jfhcReyerARcnZ7TNZ2LVqfJrw14uBlJ9RhnzdBxIxTZk7HcvksK5z5h0y+R7pdKsXya4XfIFeVVh8Cvw504VRrJlDkNyfHDI8/8xPibUjaurnOF7p3fRfHh0zpfRSLHDSR/khXw== X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(346002)(136003)(39860400002)(376002)(396003)(451199021)(40470700004)(46966006)(36840700001)(5660300002)(40460700003)(2906002)(47076005)(36860700001)(55016003)(40480700001)(82740400003)(7636003)(86362001)(36756003)(82310400005)(356005)(54906003)(6286002)(186003)(16526019)(316002)(4326008)(70206006)(6916009)(70586007)(7696005)(6666004)(966005)(478600001)(53546011)(1076003)(26005)(8676002)(8936002)(83380400001)(2616005)(426003)(336012)(41300700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:34:04.8379 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5420e3f5-e9a4-419b-7a62-08db390fda2a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB8139 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.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 04/11/23. 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://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging/commit/38369a1974fb07cc59811c1a1cce494eedac24ff Thanks. Xueming Li --- >From 38369a1974fb07cc59811c1a1cce494eedac24ff Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Tue, 20 Dec 2022 10:52:17 +0000 Subject: [PATCH] ring: silence GCC 12 warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Xueming Li [ upstream commit dea4c5415506b3c1996cc56dcf15ffb5f6f1d49c ] gcc 12.2.1 on Fedora 37 is giving stringop-overread and stringop-overflow warnings when compiled with --buildtype=debug e.g. [1]. They look similar to the overflow issues previously squashed in rte_memcpy commit b5b3ea803e47 ("eal/x86: ignore gcc 10 stringop-overflow warnings"). Squash these warnings, waiting for a cleaner fix. [1] lib/ring/rte_ring_elem_pvt.h:100:25: error: ‘memcpy’ reading 32 bytes from a region of size 4 [-Werror=stringop-overread] 100 | memcpy((void *)(ring + idx), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101 | (const void *)(obj + i), 32); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lib/ring/rte_ring_elem_pvt.h:234:25: error: ‘memcpy’ writing 32 bytes into a region of size 4 overflows the destination [-Werror=stringop-overflow=] 234 | memcpy((void *)(obj + i), (void *)(ring + idx), 32); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Kevin Traynor Signed-off-by: David Marchand --- lib/ring/rte_ring_elem_pvt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ring/rte_ring_elem_pvt.h b/lib/ring/rte_ring_elem_pvt.h index 83788c56e6..e24e4492ff 100644 --- a/lib/ring/rte_ring_elem_pvt.h +++ b/lib/ring/rte_ring_elem_pvt.h @@ -10,6 +10,12 @@ #ifndef _RTE_RING_ELEM_PVT_H_ #define _RTE_RING_ELEM_PVT_H_ +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 120000) +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-overflow" +#pragma GCC diagnostic ignored "-Wstringop-overread" +#endif + static __rte_always_inline void __rte_ring_enqueue_elems_32(struct rte_ring *r, const uint32_t size, uint32_t idx, const void *obj_table, uint32_t n) @@ -382,4 +388,8 @@ end: return n; } +#if defined(RTE_TOOLCHAIN_GCC) && (GCC_VERSION >= 120000) +#pragma GCC diagnostic pop +#endif + #endif /* _RTE_RING_ELEM_PVT_H_ */ -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:41.223734000 +0800 +++ 0096-ring-silence-GCC-12-warnings.patch 2023-04-09 21:45:38.719042200 +0800 @@ -1 +1 @@ -From dea4c5415506b3c1996cc56dcf15ffb5f6f1d49c Mon Sep 17 00:00:00 2001 +From 38369a1974fb07cc59811c1a1cce494eedac24ff Mon Sep 17 00:00:00 2001 @@ -7,0 +8,3 @@ +Cc: Xueming Li + +[ upstream commit dea4c5415506b3c1996cc56dcf15ffb5f6f1d49c ] @@ -31,2 +33,0 @@ - -Cc: stable@dpdk.org