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:Guillaume Nault <g.nault@alphalink.fr> Signed-off-by:
David S. Miller <davem@davemloft.net> (cherry picked from commit 9ee369a4) Signed-off-by:
Daniel Rosenberg <drosen@google.com> Bug: 38159931 Change-Id: I396088939bcdb5900c50f4fcfabefa9f264f5c0f
Loading
Please register or sign in to comment