hulk inclusion category: other bugzilla: https://atomgit.com/openeuler/kernel/issues/9218 CVE: NA -------------------------------- The newly added overmount field at the end of struct mount breaks the KABI check. Struct mount is a VFS-internal structure, not exposed to out-of-tree modules, and the field is appended at the tail without shifting any existing member, so there is no real KABI impact. Wrap the field with KABI_EXTEND to pass the KABI check. No functional change. Signed-off-by: Zizhi Wo <wozizhi@huawei.com> --- fs/mount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/mount.h b/fs/mount.h index 7533e7d3b26a..9ee889c62d85 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -75,11 +75,11 @@ struct mount { int mnt_id; /* mount identifier */ int mnt_group_id; /* peer group identifier */ int mnt_expiry_mark; /* true if marked for expiry */ struct hlist_head mnt_pins; struct hlist_head mnt_stuck_children; - struct mount *overmount; /* mounted on ->mnt_root */ + KABI_EXTEND(struct mount *overmount) /* mounted on ->mnt_root */ } __randomize_layout; #define MNT_NS_INTERNAL ERR_PTR(-EINVAL) /* distinct from any mnt_namespace */ static inline struct mount *real_mount(struct vfsmount *mnt) -- 2.52.0