hardening: Enable KFENCE in the hardening config
authorMarco Elver <elver@google.com>
Mon, 12 Feb 2024 13:01:09 +0000 (14:01 +0100)
committerKees Cook <keescook@chromium.org>
Wed, 21 Feb 2024 04:47:32 +0000 (20:47 -0800)
commitde2683e7fdac0c33c4c2c115e69dbbbe904a2224
treebb7afb4bdee8d5759f6052664f5766a33f9505b6
parent7b3133aa4b9eba9cdf3905e3f7c8b6687ff4615b
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.

Link: https://lkml.kernel.org/r/79B9A832-B3DE-4229-9D87-748B2CFB7D12@kernel.org
Cc: Matthieu Baerts <matttbe@kernel.org>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Marco Elver <elver@google.com>
Link: https://lore.kernel.org/r/20240212130116.997627-1-elver@google.com
Signed-off-by: Kees Cook <keescook@chromium.org>
kernel/configs/hardening.config