diff options
| author | Perry Yuan <perry.yuan@amd.com> | 2026-11-06 11:11:09 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-11-11 15:56:58 -0500 |
| commit | 732239b002678d8c534503f52a16afc310095523 (patch) | |
| tree | 420b765a10b4313cad0035a225d0aefb06331331 /tools/perf/scripts/python | |
| parent | 85bea8c788852be6fd262381006dabd90946bda4 (diff) | |
drm/amdkfd: check CRIU SVM priv data bounds before allocating
kfd_criu_restore_svm() allocated the per-range metadata before checking
that the range fits in the user supplied private data buffer, so an out
of range offset cost a pointless kzalloc()/kfree() round trip. Do the
bounds check first and return -EINVAL directly.
v2:
- split the original patch into two, one change per patch (Yifan)
Signed-off-by: Perry Yuan <perry.yuan@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 0c3caec1161e458092364cb448e5bd165a26dcdb)
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
