numam-dpdk/drivers/crypto
David Marchand 468f31eb71 crypto/ipsec_mb: fix build with GCC 12
GCC 12 raises the following warning:

In function ‘__rte_ring_enqueue_elems_64’,
    inlined from ‘__rte_ring_enqueue_elems’ at
        ../lib/ring/rte_ring_elem_pvt.h:130:3,
    inlined from ‘__rte_ring_do_hts_enqueue_elem’ at
        ../lib/ring/rte_ring_hts_elem_pvt.h:196:3,
    inlined from ‘rte_ring_mp_hts_enqueue_burst_elem’ at
        ../lib/ring/rte_ring_hts.h:110:9,
    inlined from ‘rte_ring_enqueue_burst_elem’ at
        ../lib/ring/rte_ring_elem.h:577:10,
    inlined from ‘rte_ring_enqueue_burst’ at
        ../lib/ring/rte_ring.h:738:9,
    inlined from ‘process_op_bit’ at
        ../drivers/crypto/ipsec_mb/pmd_snow3g.c:425:16,
    inlined from ‘snow3g_pmd_dequeue_burst’ at
        ../drivers/crypto/ipsec_mb/pmd_snow3g.c:484:20:
../lib/ring/rte_ring_elem_pvt.h:68:44: error: array subscript 1 is
        outside array bounds of ‘struct rte_crypto_op[0]’
        [-Werror=array-bounds]
   68 |                         ring[idx + 1] = obj[i + 1];
      |                                         ~~~^~~~~~~
../drivers/crypto/ipsec_mb/pmd_snow3g.c: In function
        ‘snow3g_pmd_dequeue_burst’:
../drivers/crypto/ipsec_mb/pmd_snow3g.c:434:1: note:
        at offset 8 into object ‘op’ of size 8
  434 | snow3g_pmd_dequeue_burst(void *queue_pair,
      | ^~~~~~~~~~~~~~~~~~~~~~~~

Validate that one (exactly) op has been processed or return early.

Fixes: b537abdbee ("crypto/snow3g: support bit-level operations")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2022-06-15 09:37:35 +02:00
..
armv8 remove unnecessary null checks 2022-02-12 12:07:48 +01:00
bcmfs fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
caam_jr fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
ccp drivers/crypto: fix warnings for OpenSSL version 2022-06-01 16:26:35 +02:00
cnxk cryptodev: move RSA padding into separate struct 2022-06-02 12:04:11 +02:00
dpaa2_sec crypto/dpaa2_sec: fix operation status for simple FD 2022-04-29 11:27:35 +02:00
dpaa_sec crypto/dpaa_sec: move cdb preparation to session create 2022-04-29 11:27:35 +02:00
ipsec_mb crypto/ipsec_mb: fix build with GCC 12 2022-06-15 09:37:35 +02:00
mlx5 crypto/mlx5: support plain text keys 2022-06-01 16:26:34 +02:00
mvsam remove unnecessary null checks 2022-02-12 12:07:48 +01:00
nitrox cryptodev: move device-specific structures 2021-10-20 15:33:16 +02:00
null remove unnecessary null checks 2022-02-12 12:07:48 +01:00
octeontx cryptodev: move RSA padding into separate struct 2022-06-02 12:04:11 +02:00
openssl cryptodev: move RSA padding into separate struct 2022-06-02 12:04:11 +02:00
qat cryptodev: move RSA padding into separate struct 2022-06-02 12:04:11 +02:00
scheduler remove unnecessary null checks 2022-02-12 12:07:48 +01:00
virtio replace zero-length arrays with flexible ones 2022-06-07 16:44:21 +02:00
meson.build drivers: remove octeontx2 drivers 2022-01-12 15:36:32 +01:00