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 DCA68A054F for ; Tue, 20 Dec 2022 18:18:55 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D96AA40698; Tue, 20 Dec 2022 18:18:55 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 2249140395 for ; Tue, 20 Dec 2022 18:18:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671556734; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZCgStOHSv1two6wDbGD7Idz3SoMF9xGKqrUgXYbczeQ=; b=hTP8gfcg6WZZyj7brFSUtxtKauBi03SKCTprTB6gstcdojVytD0Tc91m+toht6I/nXmDa1 qX6aBkg3kE8anJrcMdZh3sFscCUBmSOUKU/nn+cVnz5d/kC+a4AIQ+RwNVarQbFvTRAtnS Es4LAUO2IpTnhmQXetoon9diJXdLUtc= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-602-0nF5KyXuMrm3MGyb-y7Z-w-1; Tue, 20 Dec 2022 12:18:53 -0500 X-MC-Unique: 0nF5KyXuMrm3MGyb-y7Z-w-1 Received: by mail-wr1-f70.google.com with SMTP id i25-20020adfaad9000000b002426945fa63so2372276wrc.6 for ; Tue, 20 Dec 2022 09:18:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZCgStOHSv1two6wDbGD7Idz3SoMF9xGKqrUgXYbczeQ=; b=EVc2A9VpE5WEPY76sDmQd7NJPQbtEx1u6HO3ifmFC5emBBlVoWiy7vYt2pcWgj+2pu QwAjR0iYg22pWBtFaid4czEKSLePoEVTdq1lLaf5lOWeuYmQ39H9paxmgj03+Jv3SDUP M4wn/Snf+J8SZEj2OhtV3bboe3xccwlXEkPlvLaFFOz8F0/zEe5jcPG0NCjkevrNHUH8 Kh7HA4aUNL81Otb88y5W4Jqo3MXjCX56JRNAWu0MXSLFThOcED2GtzWxn19I+5D2dK3e Z8nz5vuBP9U+Kb9gyr1Qdpd2PtxbhPMI7v8qe1OFPvG+tLGK3W2BmcmuZPWPm7EJBCyD dfsQ== X-Gm-Message-State: AFqh2krUi9wbP+HWO1aJCNh+2ZxcsLSBVIWAZxvMkClQ7GLsZBkXKDMQ +LNxsT45WH5p6SZQbFqKt0ZdgZyrnv8bu5TrdlJ0l0B1/LQW6/dGPzfxS/oD2lF132qih9IrfEa if84nZEey6N4swHOZTyJe+YZ4LjNSHMqHV6q33l+EyYYve3efmuzFNaG7D6c= X-Received: by 2002:adf:e185:0:b0:242:73d2:20fb with SMTP id az5-20020adfe185000000b0024273d220fbmr2266575wrb.4.1671556731398; Tue, 20 Dec 2022 09:18:51 -0800 (PST) X-Google-Smtp-Source: AMrXdXuiyHw2isWqkhwjUljMp7pGIlOYMBEGWE9en611VVpW9VG+JNr1Z4b3LH5ZEOcbx12p1XFHLQ== X-Received: by 2002:adf:e185:0:b0:242:73d2:20fb with SMTP id az5-20020adfe185000000b0024273d220fbmr2266564wrb.4.1671556731239; Tue, 20 Dec 2022 09:18:51 -0800 (PST) Received: from [192.168.0.36] ([78.17.251.111]) by smtp.gmail.com with ESMTPSA id d1-20020adffbc1000000b002364c77bcacsm13177117wrs.38.2022.12.20.09.18.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Dec 2022 09:18:50 -0800 (PST) Message-ID: <5a0b7a47-d6df-03b5-cef4-d02700c5504e@redhat.com> Date: Tue, 20 Dec 2022 17:18:49 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH 21.11] ring: squash gcc 12.2.1 warnings To: stable@dpdk.org Cc: alialnu@nvidia.com, david.marchand@redhat.com, Honnappa Nagarahalli , Konstantin Ananyev References: <20221220123754.239802-1-ktraynor@redhat.com> From: Kevin Traynor In-Reply-To: <20221220123754.239802-1-ktraynor@redhat.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed 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 On 20/12/2022 12:37, Kevin Traynor wrote: > gcc 12.2.1 on Fedora 37 is giving stringop-overread and > stringop-overflow warnings when compiled with --buildtype=debug > e.g. [1]. > > These are not yet fixed on main branch. They look similar > to the overflow issues previously squashed in rte_memcpy with > commit b5b3ea803e47 ("eal/x86: ignore gcc 10 stringop-overflow warnings") > > In order to ensure DPDK 21.11.3 compiles on Fedora 37, squash these > warnings. If a subsequent cleaner fix becomes available on from main > branch it can be backported to later DPDK 21.11 LTS release. > > [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 > --- Pushed to 21.11 branch for 21.11.3. Thanks.