]> 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)
commit7027313ca4262435b622a11f466f446ec019f17a
treeef7cfae25bf1b386f03c5dfb8c44266083d0c53b
parentbf4ca336b3fb1224921dd370dba91c1bf0b30e1d
parent4596761bf4da489ed9479eded65cd13d3322101f
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>