Re: [PATCH net 0/5] l2tp: fix some l2tp_tunnel_find() issues in l2tp_netlink

2017-08-28 Thread David Miller
From: Guillaume Nault Date: Fri, 25 Aug 2017 16:51:39 +0200 > 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_t

[PATCH net 0/5] l2tp: fix some l2tp_tunnel_find() issues in l2tp_netlink

2017-08-25 Thread Guillaume Nault
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 combin