hardening: Enable KFENCE in the hardening config
PATCH 1/1 hardening: Enable KFENCE in the hardening config
KFENCE is not a security mitigation mechanism (due to sampling), but has the performance characteristics of unintrusive hardening techniques. When used at scale, however, it improves overall security by allowing kernel developers to detect heap memory-safety bugs cheaply.
--- kernel/configs/hardening.config | 3 +++ 1 file changed, 3 insertions(+)
kernel/configs/hardening.config +3 -0
@@ -46,6 +46,9 @@ CONFIG_UBSAN_BOUNDS=y # CONFIG_UBSAN_ALIGNMENT CONFIG_UBSAN_SANITIZE_ALL=y +# Sampling-based heap out-of-bounds and use-after-free detection. +CONFIG_KFENCE=y + # Linked list integrity checking. CONFIG_LIST_HARDENED=y
Signature · 1 line
2.43.0.687.g38aa6559b0-goog
Hi Marco,
Quoted 4 lines · Marco Elver
KFENCE is not a security mitigation mechanism (due to sampling), but has the performance characteristics of unintrusive hardening techniques. When used at scale, however, it improves overall security by allowing kernel developers to detect heap memory-safety bugs cheaply.
Thank you for having sent this patch!
Cheers,
Matt
Signature · 1 line
Sponsored by the NGI0 Core fund.
Kees Cook
AppliedQuoted 9 lines · Marco Elver
KFENCE is not a security mitigation mechanism (due to sampling), but has the performance characteristics of unintrusive hardening techniques. When used at scale, however, it improves overall security by allowing kernel developers to detect heap memory-safety bugs cheaply.
Cc Matthieu Baerts <[email protected]>Cc Jakub Kicinski <[email protected]>Signed-off-by Marco Elver <[email protected]>
Thanks! Applied to my for-next/hardening tree.
-Kees
Signature · 1 line
Kees Cook