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: [email protected]

Reported-by: Andrew Rybchenko <[email protected]>

Signed-off-by: Anatoly Burakov <[email protected]>

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

Tested-by: Andrew Rybchenko <[email protected]>

Reply via email to