Re: powerpc/mm/32: Fix pgtable_page_dtor call
From: Michael Ellerman <hidden>
Date: 2018-06-27 21:41:25
From: Michael Ellerman <hidden>
Date: 2018-06-27 21:41:25
On Mon, 2018-06-25 at 08:15:09 UTC, "Aneesh Kumar K.V" wrote:
Commit 667416f38554 ("powerpc/mm: Fix kernel crash on page table free")
added a call for pgtable_page_dtor in the rcu page table free routine. We missed
the fact that for 32 bit platforms we did call the 'dtor' early. Drop the extra
call for pgtable_page_dtor. We remove the call from __pte_free_tlb so that we
do the page table free and 'dtor' call together. This should help when we
switch these platforms to pte fragments.
Fixes: 667416f38554 ("powerpc/mm: Fix kernel crash on page table free")
Reported-by: Christophe Leroy <redacted>
Signed-off-by: Aneesh Kumar K.V <redacted>Applied to powerpc fixes, thanks. https://git.kernel.org/powerpc/c/941c06d58503b9f2718b20bc45ee7f cheers