hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I905SE CVE: NA
--------------------------------
Add kabi slots in xattr_handler struct for future expansion.
struct size(byte) reserve(8*byte) now(byte) xattr_handler 48 2 64
Signed-off-by: Long Li leo.lilong@huawei.com --- include/linux/xattr.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/include/linux/xattr.h b/include/linux/xattr.h index d20051865800..b570d38bf1ec 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h @@ -11,7 +11,7 @@ #ifndef _LINUX_XATTR_H #define _LINUX_XATTR_H
- +#include <linux/kabi.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/spinlock.h> @@ -45,6 +45,9 @@ struct xattr_handler { struct mnt_idmap *idmap, struct dentry *dentry, struct inode *inode, const char *name, const void *buffer, size_t size, int flags); + + KABI_RESERVE(1) + KABI_RESERVE(2) };
/**