numam-dpdk/lib/eal
Fidaullah Noonari f92b9ebed0 malloc: fix storage size for some allocations
The amount of memory to allocate from the system for heap expansion
was calculated in a way that may yield one page more than needed.
This could hit the allocation limit from the system or EAL.
The allocation would fail despite enough memory being available.

In response to mail:
https://inbox.dpdk.org/dev/CAEYuUWCnRZNwxiOHEeTHw0Gy9aFJRLZtvAG9g=smuUvUEMcFXg@mail.gmail.com/

A reproducer has been provided by Dmitry, see:
https://inbox.dpdk.org/dev/20220922015212.03bfde66@sovereign/

Fixes: 07dcbfe010 ("malloc: support multiprocess memory hotplug")
Cc: stable@dpdk.org

Signed-off-by: Fidaullah Noonari <fidaullah.noonari@emumba.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
2022-09-26 11:40:20 +02:00
..
arm eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
common malloc: fix storage size for some allocations 2022-09-26 11:40:20 +02:00
freebsd eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
include dev: hide device object 2022-09-23 16:14:34 +02:00
linux bus: hide bus object 2022-09-23 16:14:34 +02:00
ppc eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
riscv eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
unix eal: remove unneeded includes from a public header 2022-09-21 15:31:03 +02:00
windows bus: move IOVA definition from header 2022-09-23 16:14:34 +02:00
x86 eal/x86: drop export of internal alignment macro 2022-06-22 11:32:35 +02:00
meson.build eal: add OS defines for C conditional checks 2022-01-17 19:26:42 +01:00
version.map dev: hide device object 2022-09-23 16:14:34 +02:00