]> www.infradead.org Git - users/willy/pagecache.git/commit
drm/amd/display: Fix slab-use-after-free on hdcp_work
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 28 Feb 2025 19:18:14 +0000 (13:18 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:30:51 +0000 (13:30 -0400)
commit725a04ba5a95e89c89633d4322430cfbca7ce128
tree5870e2d012378d00981160dcbf06bbdc74ab353a
parent29c1c20496a7a9bafe2bc2f833d69aa52e0f2c2d
drm/amd/display: Fix slab-use-after-free on hdcp_work

[Why]
A slab-use-after-free is reported when HDCP is destroyed but the
property_validate_dwork queue is still running.

[How]
Cancel the delayed work when destroying workqueue.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4006
Fixes: da3fd7ac0bcf ("drm/amd/display: Update CP property based on HW query")
Cc: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c