Re: [PATCH net] l2tp: initialise session's refcount before making it reachable

2017-08-28 Thread David Miller
From: Guillaume Nault Date: Fri, 25 Aug 2017 16:22:17 +0200 > 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: dbdbc73b4478 ("l2tp: fix dupl

[PATCH net] l2tp: initialise session's refcount before making it reachable

2017-08-25 Thread Guillaume Nault
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: dbdbc73b4478 ("l2tp: fix duplicate session creation") Signed-off-by: Guillaume Nault --- net/l2tp/l