]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit77146b5d79cfa51aebb8c0e8c19af32b579890f7
treeef7cfae25bf1b386f03c5dfb8c44266083d0c53b
parent9ee369a405c57613d7c83a3967780c3e30c52ecc
parente702c1204eb57788ef189c839c8c779368267d70
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>