[dpdk-stable] [PATCH] malloc: don't skip pad on free

Andrew Rybchenko arybchenko at solarflare.com
Thu Jul 19 18:37:59 CEST 2018


On 19.07.2018 12:42, Anatoly Burakov wrote:
> Previously, we were skipping erasing pad because we were
> expecting it to be freed when we were merging adjacent
> segments. However, if there were no adjacent segments to
> merge, we would've skipped erasing the pad, leaving non-zero
> memory in our free space.
>
> Fix this by including pad in the erasing unconditionally.
>
> Fixes: e43a9f52b7ff ("malloc: fix pad erasing")
> Cc: stable at dpdk.org
>
> Reported-by: Andrew Rybchenko <arybchenko at solarflare.com>
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>

Many thanks, the patch fixes the problem I've observed.

Tested-by: Andrew Rybchenko <arybchenko at solarflare.com>


More information about the stable mailing list