linux/common-config: Use LIST_HARDENED instead on >= 6.6

According to the message in the patch that introduced LIST_HARDENED [1],
DEBUG_LIST was not optimized for performance in production and presents
a significant performance hit in hot paths in some workloads. Use the
new LIST_HARDENED option instead on >= 6.6 for better performance.

[1]: https://git.kernel.org/torvalds/c/aebc7b0d8d91bbc69e976909963046bc48bca4fd
This commit is contained in:
dramforever
2026-06-07 13:36:43 +08:00
parent e9cc7968ed
commit 4df979114f
@@ -798,7 +798,9 @@ let
FORTIFY_SOURCE = option yes;
# https://googleprojectzero.blogspot.com/2019/11/bad-binder-android-in-wild-exploit.html
DEBUG_LIST = yes;
DEBUG_LIST = whenOlder "6.6" yes;
# https://git.kernel.org/torvalds/c/aebc7b0d8d91bbc69e976909963046bc48bca4fd
LIST_HARDENED = whenAtLeast "6.6" yes;
HARDENED_USERCOPY = yes;
RANDOMIZE_BASE = option yes;