
hulk inclusion category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IA72F3 CVE: CVE-2022-48757 -------------------------------- Fix kabi breakage in struct packet_type Fixes: b67ad6170c0e("net: fix information leakage in /proc/net/ptype") Signed-off-by: Dong Chenchen <dongchenchen2@huawei.com> --- include/linux/netdevice.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index eedf0db8e048..be765a9915f3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2503,11 +2503,14 @@ struct packet_type { struct net_device *); bool (*id_match)(struct packet_type *ptype, struct sock *sk); - struct net *af_packet_net; void *af_packet_priv; struct list_head list; +#ifndef __GENKSYMS__ + struct net *af_packet_net; +#else KABI_RESERVE(1) +#endif KABI_RESERVE(2) KABI_RESERVE(3) KABI_RESERVE(4) -- 2.25.1