]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/ras: copy ras log data instead of referencing pointers
authorYiPeng Chai <YiPeng.Chai@amd.com>
Tue, 19 May 2026 05:47:34 +0000 (13:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 May 2026 15:54:17 +0000 (11:54 -0400)
commit90b0cbcba1bd6852f0af11246ff4e59fe3a4a244
tree5362f3277e58d826747468ac51b426cc7c392120
parentd1f9f5839bd785a3a06335a01d53282e80f8e5fa
drm/amd/ras: copy ras log data instead of referencing pointers

When generating ras cper file, the original data nodes in the ras
log ring buffer may be deleted, leading to invalid pointer
access. Copy the data from the ras log ring instead of directly
referencing the pointers to avoid this issue.

Signed-off-by: YiPeng Chai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_virt_ras_cmd.c
drivers/gpu/drm/amd/ras/rascore/ras_cmd.c
drivers/gpu/drm/amd/ras/rascore/ras_cper.c
drivers/gpu/drm/amd/ras/rascore/ras_cper.h
drivers/gpu/drm/amd/ras/rascore/ras_log_ring.c
drivers/gpu/drm/amd/ras/rascore/ras_log_ring.h