android_kernel_sony_sdm845/net/l2tp
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ridge Kennedy cb6f92ed83 l2tp: Allow duplicate session creation with UDP
commit 0d0d9a388a858e271bb70e71e99e7fe2a6fd6f64 upstream.

In the past it was possible to create multiple L2TPv3 sessions with the
same session id as long as the sessions belonged to different tunnels.
The resulting sessions had issues when used with IP encapsulated tunnels,
but worked fine with UDP encapsulated ones. Some applications began to
rely on this behaviour to avoid having to negotiate unique session ids.

Some time ago a change was made to require session ids to be unique across
all tunnels, breaking the applications making use of this "feature".

This change relaxes the duplicate session id check to allow duplicates
if both of the colliding sessions belong to UDP encapsulated tunnels.

Fixes: dbdbc73b4478 ("l2tp: fix duplicate session creation")
Signed-off-by: Ridge Kennedy <ridge.kennedy@alliedtelesis.co.nz>
Acked-by: James Chapman <jchapman@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-06-30 15:38:37 -04:00
..
Kconfig l2tp: Call udp_sock_create 2014-07-14 16:12:15 -07:00
l2tp_core.c l2tp: Allow duplicate session creation with UDP 2020-06-30 15:38:37 -04:00
l2tp_core.h l2tp: don't register sessions in l2tp_session_create() 2020-05-27 16:41:58 +02:00
l2tp_debugfs.c l2tp: remove configurable payload offset 2018-11-10 07:42:54 -08:00
l2tp_eth.c l2tp: device MTU setup, tunnel socket needs a lock 2020-05-27 16:42:00 +02:00
l2tp_ip.c l2tp: do not use inet_hash()/inet_unhash() 2020-06-11 09:22:21 +02:00
l2tp_ip6.c l2tp: do not use inet_hash()/inet_unhash() 2020-06-11 09:22:21 +02:00
l2tp_netlink.c l2tp: pass tunnel pointer to ->session_create() 2020-05-27 16:41:58 +02:00
l2tp_ppp.c l2tp: initialise PPP sessions before registering them 2020-05-27 16:41:59 +02:00
Makefile l2tp: introduce L2TPv3 IP encapsulation support for IPv6 2012-05-01 09:30:55 -04:00