diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2017-03-31 13:02:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-02 05:16:41 +0200 |
commit | 57377d63547861919ee634b845c7caa38de4a452 (patch) | |
tree | 5e00b7be9f0d3abc3b0901662867aba202835c0a /net/key | |
parent | l2tp: fix race in l2tp_recv_common() (diff) | |
download | linux-57377d63547861919ee634b845c7caa38de4a452.tar.xz linux-57377d63547861919ee634b845c7caa38de4a452.zip |
l2tp: ensure session can't get removed during pppol2tp_session_ioctl()
Holding a reference on session is required before calling
pppol2tp_session_ioctl(). The session could get freed while processing the
ioctl otherwise. Since pppol2tp_session_ioctl() uses the session's socket,
we also need to take a reference on it in l2tp_session_get().
Fixes: fd558d186df2 ("l2tp: Split pppol2tp patch into separate l2tp and ppp parts")
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions