mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
pppol2tp_session_get_sock() is using RCU, it must be ready for sk_refcnt being zero. Commitee40fb2e1e("l2tp: protect sock pointer of struct pppol2tp_session with RCU") was correct because it had a call_rcu(..., pppol2tp_put_sk) which was later removed in blamed commit. pppol2tp_recv() can use pppol2tp_session_get_sock() as well. Fixes:c5cbaef992("l2tp: refactor ppp socket/session relationship") Signed-off-by: Eric Dumazet <[email protected]> Cc: James Chapman <[email protected]> Reviewed-by: Guillaume Nault <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>