Commit e5a55b54 authored by Dong Chenchen's avatar Dong Chenchen
Browse files

net: fix kabi breakage in struct packet_type

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: default avatarDong Chenchen <dongchenchen2@huawei.com>
parent 48fe3459
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)