]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix potential fence use-after-free v2
authorshanzhulig <shanzhulig@gmail.com>
Wed, 28 Jun 2023 01:10:47 +0000 (18:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Aug 2023 15:52:25 +0000 (17:52 +0200)
commitdd0b3b367c3839e439f36af908b39c98929a5e54
treecae385d81b483e005e897eca0105c1dd7b1a4d78
parent3a89f3bfbf533b89f74dea34e174081eca3381d4
drm/amdgpu: Fix potential fence use-after-free v2

[ Upstream commit 2e54154b9f27262efd0cb4f903cc7d5ad1fe9628 ]

fence Decrements the reference count before exiting.
Avoid Race Vulnerabilities for fence use-after-free.

v2 (chk): actually fix the use after free and not just move it.

Signed-off-by: shanzhulig <shanzhulig@gmail.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c