From: Li Hua hucool.lihua@huawei.com
hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I3UKOW CVE: NA
-------------------------------------------------
commit c9dfd37f715a ("tasks: Add a count of task RCU users") add new member into struct task_struct which will break KABI. This patch try to fix it.
Signed-off-by: Li Hua hucool.lihua@huawei.com Reviewed-by: Xie XiuQi xiexiuqi@huawei.com Reviewed-by: Jian Cheng cj.chengjian@huawei.com Reviewed-by: Zhang Qiao zhangqiao22@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- include/linux/sched.h | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0ce6cd87e7509..ef03ea1450215 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1087,10 +1087,14 @@ struct task_struct {
struct tlbflush_unmap_batch tlb_ubc;
+#ifndef __GENKSYMS__ union { refcount_t rcu_users; struct rcu_head rcu; }; +#else + struct rcu_head rcu; +#endif
/* Cache last used pipe for splice(): */ struct pipe_inode_info *splice_pipe;