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: stable@vger.kernel.org
Reported-by: Ryan Roberts <ryan.roberts@arm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Dev Jain <dev.jain@arm.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Reviewed-by: Ryan Roberts <ryan.roberts@arm.com>
Link: https://lore.kernel.org/r/20250527082633.61073-1-dev.jain@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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