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 022C0A0554 for ; Sat, 11 Jun 2022 17:37:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F13444280E; Sat, 11 Jun 2022 17:37:01 +0200 (CEST) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id EA4BA42686 for ; Sat, 11 Jun 2022 17:36:59 +0200 (CEST) Received: by mail-pj1-f52.google.com with SMTP id o33-20020a17090a0a2400b001ea806e48c6so2014189pjo.1 for ; Sat, 11 Jun 2022 08:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HRy7ZVMZ9WLJpb2jQ1Vy3F41Pev0/FkW7iENjv3aHe8=; b=bTgXEhAKqAYyOqaYJVyjBAJi6armeR/8/g0k4xFIWSEGTnZ9SP8sabQUoDj8r1yEep CxY6l/xgOQJWKBXT6bnmE7+LRENUt/L5TKybofIzvgy4PNzLnqUQ47SO66s1jExkyNwB Yrp/z4aPhx+4pG7GSE9kPn/ENH3DcwFDIoJf2Ajhu0bgKNLzyi39vraNJLj2vbg2iJBT AjJDf4Cvc3kbENF1wvLmgA8MUQYnoBXFbdTc8qlANSiaDlJImjPumCfvnEBYyMzXNQoK 7u0j64xaW1N/oCy4of4MRJaKVflZsRvO+bsNmF7eyEk4Fzoc5WuC5uuMs9pRhXXNL7U6 MFog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HRy7ZVMZ9WLJpb2jQ1Vy3F41Pev0/FkW7iENjv3aHe8=; b=1U66mnzl9UIjAwXEvg4oSVLIt//OiylkHfk3fKQy49W79AuNEQNec2tB2iNZmQoQc8 yAvxBkT6uoGm6jkPYfmupOWsCEFZ/6AujG2tmK6S+/vxVz+mXsToNjT4Qh4BomELxea8 NeTelaeYqhs4zmzeJzeF1/LA/I5MAz2UzVBMBuxhAYnD2XZjkGR6hy/1O7XQpQd3UW2u QmsVA8eYEshvMLVbuBpIqhHx8q3FtCGX+yDfc/nz4fcdFl5ZI6CmemQJ3nEZlaPCOxXz qQ5nvYTtm6YAsLypPpcAkLBs6GPLjBYFQzPYtXf5mAYSRnezs3wE9e1ULRcRE/QpV9e+ 7SAQ== X-Gm-Message-State: AOAM530Zbmvo4hYRj3D0chjlwjYdTaTCKB13qrsbaKMVqhj7wqiTPh/B sTbeOxKq/KVszzzDDzRezxqOAw== X-Google-Smtp-Source: ABdhPJyTRulul9ESZsF0+LBZPpLfzHZCALy6/Lv2FJH0FQYw+7sXLfrEYJYotOM0IQtI5CyfL3cKQA== X-Received: by 2002:a17:90a:7846:b0:1e3:3025:6717 with SMTP id y6-20020a17090a784600b001e330256717mr5636212pjl.29.1654961819159; Sat, 11 Jun 2022 08:36:59 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id m133-20020a633f8b000000b003fc4cc19414sm1815605pga.45.2022.06.11.08.36.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 08:36:58 -0700 (PDT) Date: Sat, 11 Jun 2022 08:36:56 -0700 From: Stephen Hemminger To: David Marchand Cc: dev@dpdk.org, thomas@monjalon.net, ferruh.yigit@xilinx.com, stable@dpdk.org, Maxime Coquelin , Chenbo Xia , Fan Zhang Subject: Re: [PATCH 10/12] vhost/crypto: fix build with GCC 12 Message-ID: <20220611083656.750c105c@hermes.local> In-Reply-To: <20220518101657.1230416-11-david.marchand@redhat.com> References: <20220518101657.1230416-1-david.marchand@redhat.com> <20220518101657.1230416-11-david.marchand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Wed, 18 May 2022 12:16:55 +0200 David Marchand wrote: > GCC 12 raises the following warning: >=20 > In file included from ../lib/mempool/rte_mempool.h:46, > from ../lib/mbuf/rte_mbuf.h:38, > from ../lib/vhost/vhost_crypto.c:7: > ../lib/vhost/vhost_crypto.c: In function =E2=80=98rte_vhost_crypto_fetch_= requests=E2=80=99: > ../lib/eal/x86/include/rte_memcpy.h:371:9: warning: array subscript 1 is > outside array bounds of =E2=80=98struct virtio_crypto_op_data_req[1]= =E2=80=99 > [-Warray-bounds] > 371 | rte_mov32((uint8_t *)dst + 3 * 32, (const uint8_t *)src + 3 * 32); > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../lib/vhost/vhost_crypto.c:1178:42: note: while referencing =E2=80=98req= =E2=80=99 > 1178 | struct virtio_crypto_op_data_req req; > | ^~~ >=20 > Check that copied length is within req boundaries. >=20 > Fixes: 3c79609fda7c ("vhost/crypto: handle virtually non-contiguous buffe= rs") > Cc: stable@dpdk.org >=20 > Signed-off-by: David Marchand Acked-by: Stephen Hemminger