aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorImre Deak <[email protected]>2024-12-03 19:46:32 +0200
committerImre Deak <[email protected]>2024-12-05 16:19:09 +0200
commit3f611855031f94385c2eeb32b1f99dd7a9fa566b (patch)
treeb8d8e88a9f600e10e2f3007c85ed907f5f3be18f /tools/testing/selftests/bpf/prog_tests/autoload.c
parentb559b68d2761739b7c2e44d6fa59092b0d03e9ed (diff)
drm/dp_mst: Fix down request message timeout handling
If receiving a reply for an MST down request message times out, the thread receiving the reply in drm_dp_mst_handle_down_rep() could try to dereference the drm_dp_sideband_msg_tx txmsg request message after the thread waiting for the reply - calling drm_dp_mst_wait_tx_reply() - has timed out and freed txmsg, hence leading to a use-after-free in drm_dp_mst_handle_down_rep(). Prevent the above by holding the drm_dp_mst_topology_mgr::qlock in drm_dp_mst_handle_down_rep() for the whole duration txmsg is looked up from the request list and dereferenced. v2: Fix unlocking mgr->qlock after verify_rx_request_type() fails. Cc: Lyude Paul <[email protected]> Reviewed-by: Lyude Paul <[email protected]> Signed-off-by: Imre Deak <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions