numam-dpdk/drivers
Michael Baum c6b552e4c0 vdpa/mlx5: fix overflow in queue attribute
The mlx5_vdpa_event_qp_create function makes shifting to the numeric
constant 1, then multiplies it by another constant and finally assigns
it into a uint64_t variable.

The numeric constant type is an int with a 32-bit sign. if after
shifting , its MSB (bit of sign) will change, the uint64 variable will
get into it a different value than what the function intended it to get.

Set the numeric constant 1 to be uint64_t in the first place.

Fixes: 8395927cdf ("vdpa/mlx5: prepare HW queues")
Cc: stable@dpdk.org

Signed-off-by: Michael Baum <michaelba@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
2021-07-22 14:48:07 +02:00
..
baseband log: register with standardized names 2021-05-11 15:17:55 +02:00
bus bus/pci: fix leak for unbound devices 2021-07-06 11:27:55 +02:00
common net/mlx5: support meter for trTCM profiles 2021-07-22 13:29:01 +02:00
compress compress/mlx5: fix overflow in queue size 2021-07-22 14:47:32 +02:00
crypto crypto/mlx5: migrate to bus-agnostic common interface 2021-07-22 00:11:14 +02:00
event event/cnxk: support vectorized Tx event fast path 2021-07-16 14:16:50 +02:00
mempool mempool/octeontx2: fix shift calculation 2021-06-30 18:42:54 +02:00
net net/mlx5: support meter for trTCM profiles 2021-07-22 13:29:01 +02:00
raw raw/ioat: fix termination descriptor for batch 2021-07-20 15:28:43 +02:00
regex regex/mlx5: fix size of setup constants 2021-07-22 14:47:10 +02:00
vdpa vdpa/mlx5: fix overflow in queue attribute 2021-07-22 14:48:07 +02:00
meson.build log: register with standardized names 2021-05-11 15:17:55 +02:00