]> www.infradead.org Git - users/jedix/linux-maple.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 18:16:42 +0000 (14:16 -0400)
commite65e7bea220c3ce8c4c793b4ba35557f4994ab2b
treed1d65424e1eb9a9a9d975b3755f0b5081c78f632
parent79e31396fdd7037c503e6add15af7cb00633ea92
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>
(cherry picked from commit 725a04ba5a95e89c89633d4322430cfbca7ce128)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c