[dpdk-dev] [PATCH 2/2] malloc: avoid padding elements on page deallocation
Thomas Monjalon
thomas at monjalon.net
Wed May 2 18:28:03 CEST 2018
02/05/2018 17:38, Anatoly Burakov:
> 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: 1403f87d4fb8 ("malloc: enable memory hotplug support")
> Cc: anatoly.burakov at intel.com
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
Series applied, thanks.
(typo fixed and added uppercase at beginning of sentences)
More information about the dev
mailing list