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 *);