Commit 2ab7bb57 authored by Long Li's avatar Long Li
Browse files

profs: kabi: Reserve KABI slots for proc_ops struct

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: default avatarLong Li <leo.lilong@huawei.com>
parent 63101913
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -42,6 +42,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 */