]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'l2tp-remove-unsafe-calls-to-l2tp_tunnel_find_nth'
authorDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2018 16:17:27 +0000 (12:17 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2018 16:17:27 +0000 (12:17 -0400)
commitbb1db21d7a4fcbcefdb40dfa5ac047d0eb9b9fbe
tree7143db7e1e7c2286a02f5f03a19bb0935e24456f
parent901a22f1583338a3c808d9c08c05553981344521
parent18d0358d4e77a747573a2f2ccfa405dedf0900ea
Merge branch 'l2tp-remove-unsafe-calls-to-l2tp_tunnel_find_nth'

Guillaume Nault says:

====================
l2tp: remove unsafe calls to l2tp_tunnel_find_nth()

Using l2tp_tunnel_find_nth() is racy, because the returned tunnel can
go away as soon as this function returns. This series introduce
l2tp_tunnel_get_nth() as a safe replacement to fixes these races.

With this series, all unsafe tunnel/session lookups are finally gone.
====================

Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>