hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I905SE CVE: NA
--------------------------------
Add kabi slots in proc_ops struct for future expansion.
struct size(byte) reserve(8*byte) now(byte) proc_ops 96 4 128
Signed-off-by: Long Li leo.lilong@huawei.com --- include/linux/proc_fs.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/include/linux/proc_fs.h b/include/linux/proc_fs.h index de407e7c3b55..31b601773465 100644 --- a/include/linux/proc_fs.h +++ b/include/linux/proc_fs.h @@ -5,6 +5,7 @@ #ifndef _LINUX_PROC_FS_H #define _LINUX_PROC_FS_H
+#include <linux/kabi.h> #include <linux/compiler.h> #include <linux/types.h> #include <linux/fs.h> @@ -42,6 +43,11 @@ struct proc_ops { #endif int (*proc_mmap)(struct file *, struct vm_area_struct *); unsigned long (*proc_get_unmapped_area)(struct file *, unsigned long, unsigned long, unsigned long, unsigned long); + + KABI_RESERVE(1) + KABI_RESERVE(2) + KABI_RESERVE(3) + KABI_RESERVE(4) } __randomize_layout;
/* definitions for hide_pid field */