aboutsummaryrefslogtreecommitdiff
path: root/arch/mips
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2017-04-03 12:03:13 +0200
committerMoyster <oysterized@gmail.com>2017-06-17 16:05:11 +0200
commitb7fb352282135d7af2250d20463236a4e5f4e14e (patch)
treed9545cfa369e9a6c8915a413b960f826c9bf932b /arch/mips
parent04a3a1f624bd982f5f02820211c00d47c8932993 (diff)
l2tp: take reference on sessions being dumped
commit e08293a4ccbcc993ded0fdc46f1e57926b833d63 upstream. Take a reference on the sessions returned by l2tp_session_find_nth() (and rename it l2tp_session_get_nth() to reflect this change), so that caller is assured that the session isn't going to disappear while processing it. For procfs and debugfs handlers, the session is held in the .start() callback and dropped in .show(). Given that pppol2tp_seq_session_show() dereferences the associated PPPoL2TP socket and that l2tp_dfs_seq_session_show() might call pppol2tp_show(), we also need to call the session's .ref() callback to prevent the socket from going away from under us. Fixes: fd558d186df2 ("l2tp: Split pppol2tp patch into separate l2tp and ppp parts") Fixes: 0ad6614048cf ("l2tp: Add debugfs files for dumping l2tp debug info") Fixes: 309795f4bec2 ("l2tp: Add netlink control API for L2TP") Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'arch/mips')
0 files changed, 0 insertions, 0 deletions