Skip to content
Unverified Commit 47513f24 authored by Liu Shixin's avatar Liu Shixin Committed by Palmer Dabbelt
Browse files

riscv: Enable KFENCE for riscv64



Add architecture specific implementation details for KFENCE and enable
KFENCE for the riscv64 architecture. In particular, this implements the
required interface in <asm/kfence.h>.

KFENCE requires that attributes for pages from its memory pool can
individually be set. Therefore, force the kfence pool to be mapped at
page granularity.

Testing this patch using the testcases in kfence_test.c and all passed.

Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Acked-by: default avatarMarco Elver <elver@google.com>
Reviewed-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
parent f627476e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment