summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorDavid Francis <David.Francis@amd.com>2026-01-16 10:21:15 -0500
committerAlex Deucher <alexander.deucher@amd.com>2026-03-06 16:33:59 -0500
commit421c0f19043337a553e802b2dfe4b56d538ef4d6 (patch)
treea252e5d2ae1a1927401b0ae6097673478c1dd857 /tools/perf/scripts/python/bin/stackcollapse-record
parent8c78845bf9b18d336e5b5d00c966176a3c3f9581 (diff)
drm/amdgpu: Check for multiplication overflow in checkpoint stack size
get_checkpoint_info() in kfd_mqd_manager_v9.c finds 32-bit value ctl_stack_size by multiplying two 32-bit values. This can overflow to a lower value, which could result in copying outside the bounds of a buffer in checkpoint_mqd() in the same file. Put in a check for the overflow, and fail with -EINVAL if detected. v2: use check_mul_overflow() Signed-off-by: David Francis <David.Francis@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions