]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'l2tp-tunnel-creation-fixes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 11 Apr 2018 21:41:28 +0000 (17:41 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Apr 2018 21:41:28 +0000 (17:41 -0400)
commit8606812fe764a84ead7b1caae6a55e0d31b1e7e1
treef616d85bc1fa0339fc227d4672cea1f4b4042a30
parent228db3911498f239a16c5c06a302ddca3246bea2
parent150630e3cf5d954741340bb6850a7c8f4c09ce0d
Merge branch 'l2tp-tunnel-creation-fixes'

Guillaume Nault says:

====================
l2tp: tunnel creation fixes

L2TP tunnel creation is racy. We need to make sure that the tunnel
returned by l2tp_tunnel_create() isn't going to be freed while the
caller is using it. This is done in patch #1, by separating tunnel
creation from tunnel registration.

With the tunnel registration code in place, we can now check for
duplicate tunnels in a race-free way. This is done in patch #2, which
incidentally removes the last use of l2tp_tunnel_find().
====================

Signed-off-by: David S. Miller <davem@davemloft.net>