aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/security.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2025-07-24 05:50:27 +0000
committerKees Cook <[email protected]>2025-07-26 21:28:35 +0000
commit381a38ea53d25ed6f93ba007b021db86c2a36bc6 (patch)
treeabddc6227f73280f9e48f78045b3dc3b65299ad9 /rust/helpers/security.c
parentkstack_erase: Disable kstack_erase for all of arm compressed boot code (diff)
downloadkernel-381a38ea53d25ed6f93ba007b021db86c2a36bc6.tar.gz
kernel-381a38ea53d25ed6f93ba007b021db86c2a36bc6.zip
init.h: Disable sanitizer coverage for __init and __head
While __noinstr already contained __no_sanitize_coverage, it needs to be added to __init and __head section markings to support the Clang implementation of CONFIG_KSTACK_ERASE. This is to make sure the stack depth tracking callback is not executed in unsupported contexts. The other sanitizer coverage options (trace-pc and trace-cmp) aren't needed in __head nor __init either ("We are interested in code coverage as a function of a syscall inputs"[1]), so this is fine to disable for them as well. Link: https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/kernel/kcov.c?h=v6.14#n179 [1] Acked-by: Marco Elver <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'rust/helpers/security.c')
0 files changed, 0 insertions, 0 deletions