numam-dpdk/lib/eal
Ivan Ilchenko 1ffd3bc125 bitmap: fix buffer overrun in bitmap init
Bitmap initialization function is allowed to memset()
caller-provided buffer with number of bytes exceeded
this buffer size. This happens due to wrong comparison
sign between buffer size and number of bytes required
to initialize bitmap.

Fixes: 602c9ca33a ("sched: bitmap is now dynamically allocated")
Cc: stable@dpdk.org

Reported-by: Andy Moreton <amoreton@xilinx.com>
Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2021-06-11 11:03:25 +02:00
..
arm eal/arm64: fix platform register bit 2021-05-04 18:55:09 +02:00
common ipc: use monotonic clock 2021-05-12 16:49:08 +02:00
freebsd eal: add timespec_get shim 2021-04-21 23:32:13 +02:00
include bitmap: fix buffer overrun in bitmap init 2021-06-11 11:03:25 +02:00
linux lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
ppc lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
unix eal: fix memory mapping on 32-bit target 2021-05-11 23:01:06 +02:00
windows net/ice: fix leak on thread termination 2021-05-11 23:40:22 +02:00
x86 lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
meson.build lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00
version.map lib: remove librte_ prefix from directory names 2021-04-21 14:04:09 +02:00