android_kernel_motorola_sm6375/arch/arm64
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dev Jain a7ae98c219 arm64: Restrict pagetable teardown to avoid false warning
commit 650768c512faba8070bf4cfbb28c95eb5cd203f3 upstream.

Commit 9c006972c3 ("arm64: mmu: drop pXd_present() checks from
pXd_free_pYd_table()") removes the pxd_present() checks because the
caller checks pxd_present(). But, in case of vmap_try_huge_pud(), the
caller only checks pud_present(); pud_free_pmd_page() recurses on each
pmd through pmd_free_pte_page(), wherein the pmd may be none. Thus it is
possible to hit a warning in the latter, since pmd_none => !pmd_table().
Thus, add a pmd_present() check in pud_free_pmd_page().

This problem was found by code inspection.

Fixes: 9c006972c3 ("arm64: mmu: drop pXd_present() checks from pXd_free_pYd_table()")
Cc: [email protected]
Reported-by: Ryan Roberts <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Signed-off-by: Dev Jain <[email protected]>
Reviewed-by: Catalin Marinas <[email protected]>
Reviewed-by: Anshuman Khandual <[email protected]>
Reviewed-by: Ryan Roberts <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2025-07-17 18:24:55 +02:00
..
boot arm64: dts: rockchip: disable unrouted USB controllers and PHY on RK3399 Puma with Haikou 2025-06-27 11:02:47 +01:00
configs
crypto
include arm64: cputype: Add MIDR_CORTEX_A76AE 2025-05-02 07:39:14 +02:00
kernel arm64/ptrace: Fix stack-out-of-bounds read in regs_get_kernel_stack_nth() 2025-06-27 11:02:58 +01:00
kvm KVM: arm64: Allow AArch32 PSTATE.M to be restored as System mode 2024-06-16 13:28:50 +02:00
lib
mm arm64: Restrict pagetable teardown to avoid false warning 2025-07-17 18:24:55 +02:00
net
xen xen/arm: call uaccess_ttbr0_enable for dm_op hypercall 2025-06-27 11:02:50 +01:00
Kbuild
Kconfig arm64: errata: Expand speculative SSBS workaround once more 2024-11-08 16:20:42 +01:00
Kconfig.debug
Kconfig.platforms
Makefile