Re: [PATCH v5 09/17] arm64: pgtable: move pagetable_dtor() to __tlb_remove_table()

2025-01-13 Thread Will Deacon
On Wed, Jan 08, 2025 at 02:57:25PM +0800, Qi Zheng wrote: > Move pagetable_dtor() to __tlb_remove_table(), so that ptlock and page > table pages can be freed together (regardless of whether RCU is used). > This prevents the use-after-free problem where the ptlock is freed > immediately but the page

[PATCH v5 09/17] arm64: pgtable: move pagetable_dtor() to __tlb_remove_table()

2025-01-07 Thread Qi Zheng
Move pagetable_dtor() to __tlb_remove_table(), so that ptlock and page table pages can be freed together (regardless of whether RCU is used). This prevents the use-after-free problem where the ptlock is freed immediately but the page table pages is freed later via RCU. Page tables shouldn't have s