diff options
author | Johan Hovold <[email protected]> | 2022-09-13 10:53:11 +0200 |
---|---|---|
committer | Abhinav Kumar <[email protected]> | 2022-09-30 16:57:53 +0000 |
commit | 6808abdb33bf90330e70a687d29f038507e06ebb (patch) | |
tree | 162519a0b94148b3af5d4f08e94c089441b0bea7 /scripts/gdb | |
parent | 0b33a33bd15d5bab73b87152b220a8d0153a4587 (diff) |
drm/msm: fix use-after-free on probe deferral
The bridge counter was never reset when tearing down the DRM device so
that stale pointers to deallocated structures would be accessed on the
next tear down (e.g. after a second late bind deferral).
Given enough bridges and a few probe deferrals this could currently also
lead to data beyond the bridge array being corrupted.
Fixes: d28ea556267c ("drm/msm: properly add and remove internal bridges")
Fixes: a3376e3ec81c ("drm/msm: convert to drm_bridge")
Cc: [email protected] # 3.12
Reviewed-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Tested-by: Kuogee Hsieh <[email protected]>
Reviewed-by: Kuogee Hsieh <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/502665/
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Abhinav Kumar <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions