diff options
author | Stanley.Yang <Stanley.Yang@amd.com> | 2022-11-16 17:08:22 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-11-23 09:01:53 -0500 |
commit | 3cb93f390453cde4d6afda1587aaa00e75e09617 (patch) | |
tree | ea553c0756d7d84162b7a19931cc3f37a051bbeb /drivers/gpu/drm/amd/amdgpu/dce_v10_0.c | |
parent | f2e1aa267f12b82e03927d1e918d2844ddd3eea5 (diff) | |
download | linux-3cb93f390453cde4d6afda1587aaa00e75e09617.tar.bz2 |
drm/amdgpu: fix use-after-free during gpu recovery
[Why]
[ 754.862560] refcount_t: underflow; use-after-free.
[ 754.862898] Call Trace:
[ 754.862903] <TASK>
[ 754.862913] amdgpu_job_free_cb+0xc2/0xe1 [amdgpu]
[ 754.863543] drm_sched_main.cold+0x34/0x39 [amd_sched]
[How]
The fw_fence may be not init, check whether dma_fence_init
is performed before job free
Signed-off-by: Stanley.Yang <Stanley.Yang@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_v10_0.c')
0 files changed, 0 insertions, 0 deletions