hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I90MTG
-------------------------------
Reserve space for arm64 and x86 thread_info structure
Signed-off-by: Jialin Zhang zhangjialin11@huawei.com --- arch/arm64/include/asm/thread_info.h | 4 ++++ arch/x86/include/asm/thread_info.h | 4 ++++ 2 files changed, 8 insertions(+)
diff --git a/arch/arm64/include/asm/thread_info.h b/arch/arm64/include/asm/thread_info.h index a2596f942500..2dd890c8e4f8 100644 --- a/arch/arm64/include/asm/thread_info.h +++ b/arch/arm64/include/asm/thread_info.h @@ -17,6 +17,7 @@ struct task_struct; #include <asm/memory.h> #include <asm/stack_pointer.h> #include <asm/types.h> +#include <linux/kabi.h>
/* * low level task data that entry.S needs immediate access to. @@ -46,6 +47,9 @@ struct thread_info { u64 mpam_partid_pmg; #endif u32 cpu; + + KABI_RESERVE(1) + KABI_RESERVE(2) };
#define thread_saved_pc(tsk) \ diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h index d63b02940747..971a053265e3 100644 --- a/arch/x86/include/asm/thread_info.h +++ b/arch/x86/include/asm/thread_info.h @@ -12,6 +12,7 @@ #include <asm/page.h> #include <asm/percpu.h> #include <asm/types.h> +#include <linux/kabi.h>
/* * TOP_OF_KERNEL_STACK_PADDING is a number of unused bytes that we @@ -60,6 +61,9 @@ struct thread_info { #ifdef CONFIG_SMP u32 cpu; /* current CPU */ #endif + + KABI_RESERVE(1) + KABI_RESERVE(2) };
#define INIT_THREAD_INFO(tsk) \