From: Felix Fu fuzhen5@huawei.com
cred: kabi: KABI reservation for cred
Felix Fu (1): cred: kabi: KABI reservation for cred
include/linux/cred.h | 7 +++++++ 1 file changed, 7 insertions(+)
From: Felix Fu fuzhen5@huawei.com
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8YQPU
--------------------------------
KABI reservation for cred.
Signed-off-by: Felix Fu fuzhen5@huawei.com --- include/linux/cred.h | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/include/linux/cred.h b/include/linux/cred.h index f923528d5cc4..899959020bdd 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h @@ -15,6 +15,7 @@ #include <linux/uidgid.h> #include <linux/sched.h> #include <linux/sched/user.h> +#include <linux/kabi.h>
struct cred; struct inode; @@ -25,6 +26,8 @@ struct inode; struct group_info { atomic_t usage; int ngroups; + KABI_RESERVE(1); + KABI_RESERVE(2); kgid_t gid[]; } __randomize_layout;
@@ -150,6 +153,10 @@ struct cred { int non_rcu; /* Can we skip RCU deletion? */ struct rcu_head rcu; /* RCU deletion hook */ }; + KABI_RESERVE(1); + KABI_RESERVE(2); + KABI_RESERVE(3); + KABI_RESERVE(4); } __randomize_layout;
extern void __put_cred(struct cred *);
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/4179 邮件列表地址:https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/5...
FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/4179 Mailing list address: https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/5...