kasan-mark-kasan_arg_stacktrace-as-__initdata.patch removed from -mm tree
The patch titled
Subject: kasan: mark kasan_arg_stacktrace as __initdata
has been removed from the -mm tree. Its filename was
kasan-mark-kasan_arg_stacktrace-as-__initdata.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Andrey Konovalov <[email protected]>
Subject: kasan: mark kasan_arg_stacktrace as __initdata
As kasan_arg_stacktrace is only used in __init functions, mark it as __initdata instead of __ro_after_init to allow it be freed after boot.
The other enums for KASAN args are used in kasan_init_hw_tags_cpu(), which is not marked as __init as a CPU can be hot-plugged after boot. Clarify this in a comment.
---
mm/kasan/hw_tags.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
mm/kasan/hw_tags.c renamed from mm/kasan/hw_tags.c~kasan-mark-kasan_arg_stacktrace-as-__initdata +5 -2
@@ -40,7 +40,7 @@ enum kasan_arg_stacktrace {static enum kasan_arg kasan_arg__ro_after_init ;static enum kasan_arg_mode kasan_arg_mode__ro_after_init ; -static enum kasan_arg_stacktrace kasan_arg_stacktrace__ro_after_init ; +static enum kasan_arg_stacktrace kasan_arg_stacktrace__initdata ;/* Whether KASAN is enabled at all. */ DEFINE_STATIC_KEY_FALSE (kasan_flag_enabled);
@@ -116,7 +116,10 @@ static inline const char *kasan_mode_infreturn "sync" ; } -/* kasan_init_hw_tags_cpu() is called for each CPU. */ +/* +* kasan_init_hw_tags_cpu() is called for each CPU. +* Not marked as __init as a CPU can be hot-plugged after boot. +*/ void kasan_init_hw_tags_cpu (void ) {/*
_
Patches currently in -mm which might be from [email protected] are
stacktrace-add-interface-based-on-shadow-call-stack.patch arm64-scs-save-scs_sp-values-per-cpu-when-switching-stacks.patch arm64-implement-stack_trace_save_shadow.patch kasan-use-stack_trace_save_shadow.patch