aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorGuillaume Nault <[email protected]>2018-06-13 13:09:19 +0000
committerDavid S. Miller <[email protected]>2018-06-15 00:10:19 +0000
commit7ac6ab1f8a38ba7f8d97f95475bb6a2575db4658 (patch)
tree1f554212a69107c536ef0cb58180deed08be415d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentl2tp: fix pseudo-wire type for sessions created by pppol2tp_connect() (diff)
downloadkernel-7ac6ab1f8a38ba7f8d97f95475bb6a2575db4658.tar.gz
kernel-7ac6ab1f8a38ba7f8d97f95475bb6a2575db4658.zip
l2tp: only accept PPP sessions in pppol2tp_connect()
l2tp_session_priv() returns a struct pppol2tp_session pointer only for PPPoL2TP sessions. In particular, if the session is an L2TP_PWTYPE_ETH pseudo-wire, l2tp_session_priv() returns a pointer to an l2tp_eth_sess structure, which is much smaller than struct pppol2tp_session. This leads to invalid memory dereference when trying to lock ps->sk_lock. Fixes: d9e31d17ceba ("l2tp: Add L2TP ethernet pseudowire support") Signed-off-by: Guillaume Nault <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions