hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I905SE CVE: NA
--------------------------------
Add kabi slots in fsnotify_* struct for future expansion.
struct size(byte) reserve(8*byte) now(byte) fsnotify_ops 48 2 64 fsnotify_event 16 2 32 fsnotify_group 320 8 384
Signed-off-by: Long Li leo.lilong@huawei.com --- include/linux/fsnotify_backend.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index c0892d75ce33..1e9a590591b1 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h @@ -10,6 +10,7 @@
#ifdef __KERNEL__
+#include <linux/kabi.h> #include <linux/idr.h> /* inotify uses this */ #include <linux/fs.h> /* struct inode */ #include <linux/list.h> @@ -165,6 +166,9 @@ struct fsnotify_ops { void (*free_event)(struct fsnotify_group *group, struct fsnotify_event *event); /* called on final put+free to free memory */ void (*free_mark)(struct fsnotify_mark *mark); + + KABI_RESERVE(1) + KABI_RESERVE(2) };
/* @@ -174,6 +178,8 @@ struct fsnotify_ops { */ struct fsnotify_event { struct list_head list; + KABI_RESERVE(1) + KABI_RESERVE(2) };
/* @@ -255,6 +261,15 @@ struct fsnotify_group { } fanotify_data; #endif /* CONFIG_FANOTIFY */ }; + + KABI_RESERVE(1) + KABI_RESERVE(2) + KABI_RESERVE(3) + KABI_RESERVE(4) + KABI_RESERVE(5) + KABI_RESERVE(6) + KABI_RESERVE(7) + KABI_RESERVE(8) };
/*