Skip to content
Snippets Groups Projects
Commit 219d01aa authored by Guillaume Nault's avatar Guillaume Nault Committed by David Lin
Browse files

BACKPORT: l2tp: initialise session's refcount before making it reachable


Sessions must be fully initialised before calling
l2tp_session_add_to_tunnel(). Otherwise, there's a short time frame
where partially initialised sessions can be accessed by external users.

Fixes: dbdbc73b ("l2tp: fix duplicate session creation")
Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

(cherry picked from commit 9ee369a4)
Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
Bug: 38159931
Change-Id: I396088939bcdb5900c50f4fcfabefa9f264f5c0f
parent 636223e6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment