237dc6
From: Denis Kirjanov <denis.kirjanov@suse.com>
237dc6
Subject: kABI compatibility for struct l2tp_tunnel
237dc6
Patch-mainline: Never, kABI compatibility
237dc6
References: bsc#1192032 CVE-2021-0935
237dc6
237dc6
patches.suse/l2tp-fix-races-with-ipv4-mapped-ipv6-addresses.patch
237dc6
removes the element from struct l2tp_tunnel.
237dc6
The patch preserves the field to avoid KABI breakage
237dc6
237dc6
Signed-off-by: Denis Kirjanov <denis.kirjanov@suse.com>
237dc6
237dc6
---
237dc6
237dc6
--- a/net/l2tp/l2tp_core.h
237dc6
+++ b/net/l2tp/l2tp_core.h
237dc6
@@ -192,6 +192,13 @@ struct l2tp_tunnel {
237dc6
 	struct sock		*sock;		/* Parent socket */
237dc6
 	int			fd;		/* Parent fd, if tunnel socket
237dc6
 						 * was created by userspace */
237dc6
+#ifdef __GENKSYMS__
237dc6
+#if IS_ENABLED(CONFIG_IPV6)
237dc6
+	bool                    v4mapped;
237dc6
+#endif
237dc6
+#else
237dc6
+	bool                    padding;
237dc6
+#endif
237dc6
 
237dc6
 	struct work_struct	del_work;
237dc6