summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorStylon Wang <stylon.wang@amd.com>2022-10-26 16:00:40 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-11-15 21:10:38 +0300
commit8d8494c3467d366eb0f7c8198dab80be8bdc47d2 (patch)
tree8848738fd98d351602cee305163e53625b7c7b44 /tools/perf/scripts/python/export-to-sqlite.py
parent2c2911e09f19eac85df83b3201b38e69b8117059 (diff)
downloadlinux-8d8494c3467d366eb0f7c8198dab80be8bdc47d2.tar.xz
drm/amd/display: Fix invalid DPIA AUX reply causing system hang
[Why] Some DPIA AUX replies have incorrect data length from original request. This could lead to overwriting of destination buffer if reply length is larger, which could cause invalid access to stack since many destination buffers are declared as local variables. [How] Check for invalid length from DPIA AUX replies and trigger a retry if reply length is not the same as original request. A DRM_WARN() dmesg log is also produced. Reviewed-by: Roman Li <Roman.Li@amd.com> Acked-by: Tom Chung <chiahsuan.chung@amd.com> Signed-off-by: Stylon Wang <stylon.wang@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.0.x
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions