]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
kasan: Add (pmd|pud)_init for LoongArch zero_(pud|p4d)_populate process
authorQing Zhang <zhangqing@loongson.cn>
Wed, 6 Sep 2023 14:54:16 +0000 (22:54 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Wed, 6 Sep 2023 14:54:16 +0000 (22:54 +0800)
commitfb6d5c1d99ab6958c5e284f7aa5f0cc553f0268c
tree8d200e80afe91eaa166af013a27b5bbe6168092f
parent9b04c764af18a1dab6d48ca0671f70cdcccf90a2
kasan: Add (pmd|pud)_init for LoongArch zero_(pud|p4d)_populate process

LoongArch populates pmd/pud with invalid_pmd_table/invalid_pud_table in
pagetable_init, So pmd_init/pud_init(p) is required, define them as __weak
in mm/kasan/init.c, like mm/sparse-vmemmap.c.

Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Signed-off-by: Qing Zhang <zhangqing@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
mm/kasan/init.c