[PATCH v3 2/2] powerpc/mm/radix: Free PUD table when freeing pagetable

Reza Arbab arbab at linux.ibm.com
Wed Jul 31 05:37:16 AEST 2019


On Fri, Jul 26, 2019 at 10:34:40AM +0530, Bharata B Rao wrote:
>remove_pagetable() isn't freeing PUD table. This causes memory
>leak during memory unplug. Fix this.

On x86, this is intentional. See

af2cf278ef4f ("x86/mm/hotplug: Don't remove PGD entries in remove_pagetable()")
98fe3633c5a4 ("x86/mm/hotplug: Fix BUG_ON() after hot-remove by not freeing PUD")

Does their reasoning apply to powerpc as well?

-- 
Reza Arbab


More information about the Linuxppc-dev mailing list