summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2020-04-02 18:32:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-13 10:31:27 +0200
commit128db36faef7b3061225de94713ae8e3c5b4082e (patch)
tree0bcbb44e41b037ab9b6fbe1827cc3c9fd1a8483a /scripts/objdiff
parentd7021e80e2321e7befa3e60dc24f48767eedd56c (diff)
l2tp: fix race in l2tp_recv_common()
commit 61b9a047729bb230978178bca6729689d0c50ca2 upstream. Taking a reference on sessions in l2tp_recv_common() is racy; this has to be done by the callers. To this end, a new function is required (l2tp_session_get()) to atomically lookup a session and take a reference on it. Callers then have to manually drop this reference. Fixes: fd558d186df2 ("l2tp: Split pppol2tp patch into separate l2tp and ppp parts") Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions