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 2FB62A0553; Sat, 11 Jun 2022 17:37:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 207D84161A; Sat, 11 Jun 2022 17:37:01 +0200 (CEST) Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mails.dpdk.org (Postfix) with ESMTP id E888A4161A for ; Sat, 11 Jun 2022 17:36:59 +0200 (CEST) Received: by mail-pj1-f54.google.com with SMTP id k5-20020a17090a404500b001e8875e6242so1984341pjg.5 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=IAMwARrGz/OFlqRRtGTI5NFpkGGN60orN9Opk2kiqheiiJoKFNthuyUdwB2mgAwVuW Z2l0TSsGDogD4RkBFZJ1X1yn4wJCX7raU6I5lUVaopT+arWAdHtNMTeHJLEa2Y8MlSp3 qj6fks/TfzdGNQIWolj39bmwesNklo8bsgDE15BNBLUIkXfDMl8/AjlNiXAyFrrxYPEt P5fqskDT+Y17mZ3eG493ww3XinBWUMa5fi7Ozo+U3ev9VGJWulv5UK7czE7VmBQvRFqI IoNGIcRkqtOa9lK0AE7P3qG5iTG3eHPFtc2nFCdTUyXQ9DMRv1x2AmSXJWqWWiG17Kr+ vw+Q== X-Gm-Message-State: AOAM5327DPv/xoS8cwV/GAVjvygP/81XM+a67T17PXzA8b6LKWVlnuxk 91b2eIckqG1OZcriRQrrpq77Ug== 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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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