Re: [PATCH v1] mm/memory_hotplug: Don't free usage map when removing a re-added early section

From: Pingfan Liu
Date: Wed Jan 08 2020 - 04:11:43 EST


On Wed, Jan 8, 2020 at 4:24 PM David Hildenbrand <david@xxxxxxxxxx> wrote:
>
>
> We have another reproducer that is used more frequently than memtrace :)
>
> Using Dynamic Memory under a Power DLAPR can trigger it easily.
> Triggering removal (I assume after previously removed+re-added) of
> memory from the HMC GUI can crash the kernel with the same call trace
> and is fixed by this patch.
>
> CCing Pingfan who verified that this patch fixes the issue - maybe he
> wants to provide a Tested-by:
Yes, this patch fixes the hot remove+add+remove bug on POWERVM, which
can be reproduced by dlpar.

Tested-by: Pingfan Liu <piliu@xxxxxxxxxx>
>
> @Andrew, any chance we can get this upstream soon-ish? Thanks!
>
> --
> Thanks,
>
> David / dhildenb
>