summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts
diff options
context:
space:
mode:
authorXiang Liu <xiang.liu@amd.com>2026-05-07 20:56:15 +0800
committerAlex Deucher <alexander.deucher@amd.com>2026-05-11 17:54:28 -0400
commit6bbede02dc62a1021aeeae87ab243bd7a93c61d2 (patch)
tree8745a2cfaa92bbe317aae20db1852fbe24c9fa5f /tools/perf/scripts
parent183182235f6d53bac62c6c39014738a54a68dfa6 (diff)
downloadlinux-6bbede02dc62a1021aeeae87ab243bd7a93c61d2.tar.gz
linux-6bbede02dc62a1021aeeae87ab243bd7a93c61d2.zip
drm/amd/ras: Fix CPER ring debugfs read overflow
The legacy CPER debugfs reader can reach the payload path without a valid pointer snapshot. The remaining user byte count is also treated as the ring occupancy in dwords, so reads past the header can copy more than requested. Take the CPER lock before sampling pointers. Resample rptr/wptr for payload reads, bound the payload copy by available dwords and the remaining user size, and advance the file position for each dword copied. Signed-off-by: Xiang Liu <xiang.liu@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 1e40ef87ffdc291e05ccdade8b9170cc9c1c4249)
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions