summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorEnze Li <lienze@kylinos.cn>2023-09-06 17:54:16 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-09-06 17:54:16 +0300
commit6ad3df56bb199134800933df2afcd7df3b03ef33 (patch)
tree28d3247260414f73d95d16110d4725c62eec38a0 /mm
parent95bb5b617beec0275bcc47b68796b34852fe4ecb (diff)
downloadlinux-6ad3df56bb199134800933df2afcd7df3b03ef33.tar.xz
LoongArch: Add KFENCE (Kernel Electric-Fence) support
The LoongArch architecture is quite different from other architectures. When the allocating of KFENCE itself is done, it is mapped to the direct mapping configuration window [1] by default on LoongArch. It means that it is not possible to use the page table mapped mode which required by the KFENCE system and therefore it should be remapped to the appropriate region. This patch adds architecture specific implementation details for KFENCE. In particular, this implements the required interface in <asm/kfence.h>. Tested this patch by running the testcases and all passed. [1] https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html#virtual-address-space-and-address-translation-mode Signed-off-by: Enze Li <lienze@kylinos.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions