numam-dpdk/lib/librte_eal
Anatoly Burakov 0db6d2782c malloc: avoid padding elements on page deallocation
Currently, when deallocating pages, malloc will fixup other
elements' headers if there is not enough space to store a full
element in leftover space. This leads to race conditions because
there are some functions that check for pad size with an unlocked
heap, expecting pad size to be constant.

Fix it by being more conservative and only freeing pages when
there is enough space before and after the page to store a free
element.

Fixes: 1403f87d4f ("malloc: enable memory hotplug support")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
2018-05-02 18:35:19 +02:00
..
bsdapp mem: add memalloc init stage 2018-04-27 23:52:51 +02:00
common malloc: avoid padding elements on page deallocation 2018-05-02 18:35:19 +02:00
linuxapp mem/linux: fix hugedir write deadlock 2018-04-30 15:23:17 +02:00
Makefile lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
meson.build eal: provide API for querying valid socket ids 2018-04-05 00:27:13 +02:00
rte_eal_version.map vfio: add multi container support 2018-04-27 15:54:55 +01:00