]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'l2tp-tunnel-refs'
authorDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 18:34:59 +0000 (11:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Aug 2017 18:34:59 +0000 (11:34 -0700)
commit22f66323094fe3b7f6a51a5ef67098a38830c8a2
treeef7cfae25bf1b386f03c5dfb8c44266083d0c53b
parent3bcdc1a66f7fd73f35316371125b893b16354e64
parentf207ecf60ba2d5c0f9688473a9dae330ed5c180b
Merge branch 'l2tp-tunnel-refs'

Guillaume Nault says:

====================
l2tp: fix some l2tp_tunnel_find() issues in l2tp_netlink

Since l2tp_tunnel_find() doesn't take a reference on the tunnel it
returns, its users are almost guaranteed to be racy.

This series defines l2tp_tunnel_get() which can be used as a safe
replacement, and converts some of l2tp_tunnel_find() users in the
l2tp_netlink module.

Other users often combine this issue with other more or less subtle
races. They will be fixed incrementally in followup series.
====================

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