numam-dpdk/lib
Vladimir Medvedkin b16ac53657 lpm6: fix buffer overflow
This patch fixes buffer overflow reported by ASAN,
please reference https://bugs.dpdk.org/show_bug.cgi?id=819

The rte_lpm6 keeps routing information for control plane purpose
inside the rte_hash table which uses rte_jhash() as a hash function.
From the rte_jhash() documentation: If input key is not aligned to
four byte boundaries or a multiple of four bytes in length,
the memory region just after may be read (but not used in the
computation).
rte_lpm6 uses 17 bytes keys consisting of IPv6 address (16 bytes) +
depth (1 byte).

This patch increases the size of the depth field up to uint32_t
and sets the alignment to 4 bytes.

Bugzilla ID: 819
Fixes: 86b3b21952 ("lpm6: store rules in hash table")
Cc: stable@dpdk.org

Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2021-10-25 19:08:16 +02:00
..
acl build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
bbdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
bitratestats
bpf build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
cfgfile
cmdline cmdline: free on exit 2021-10-22 23:32:00 +02:00
compressdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
cryptodev cryptodev: move device-specific structures 2021-10-20 15:33:16 +02:00
distributor build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
dmadev dmadev: remove symbol versioning for inline helpers 2021-10-22 22:40:59 +02:00
eal eal: fix memory ordering around lcore task accesses 2021-10-25 18:20:59 +02:00
efd build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
ethdev mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
eventdev mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
fib build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
flow_classify build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
graph build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
gro
gso mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
hash hash: fix Doxygen comment of Toeplitz file 2021-10-25 19:06:07 +02:00
ip_frag build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
ipsec mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
jobstats build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
kni build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
kvargs
latencystats
lpm lpm6: fix buffer overflow 2021-10-25 19:08:16 +02:00
mbuf mbuf: avoid cast-align warning in data offset macro 2021-10-25 17:27:48 +02:00
member build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
mempool mempool: fix non-IO flag inference 2021-10-25 16:52:56 +02:00
meter
metrics
net net: avoid cast-align warning in VLAN insert function 2021-10-25 17:27:17 +02:00
node build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
pcapng mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
pci
pdump build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
pipeline pipeline: support action annotations 2021-10-25 14:53:28 +02:00
port port: configure loop count for source port 2021-10-25 14:30:32 +02:00
power build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rawdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rcu
regexdev build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
reorder build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
rib build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
ring
sched sched: promote a function as stable 2021-10-25 15:14:22 +02:00
security mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
stack
table build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00
telemetry
timer
vhost mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
meson.build build/windows: remove separate list of libs 2021-10-22 22:40:59 +02:00