diff options
author | Tvrtko Ursulin <tvrtko.ursulin@igalia.com> | 2024-07-11 16:53:30 +0300 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2024-07-18 16:48:37 +0300 |
commit | 6ce9efd12ae81cf46bf44eb0348594558dfbb9d2 (patch) | |
tree | b4163c7f4be2d59311b21481f201bc241277f062 /drivers/gpu/drm/v3d/v3d_sched.c | |
parent | eeb1f825b5dc68047a0556e5ae86d1467920db41 (diff) | |
download | linux-6ce9efd12ae81cf46bf44eb0348594558dfbb9d2.tar.xz |
drm/v3d: Prevent out of bounds access in performance query extensions
Check that the number of perfmons userspace is passing in the copy and
reset extensions is not greater than the internal kernel storage where
the ids will be copied into.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: bae7cb5d6800 ("drm/v3d: Create a CPU job extension for the reset performance query job")
Cc: Maíra Canal <mcanal@igalia.com>
Cc: Iago Toral Quiroga <itoral@igalia.com>
Cc: stable@vger.kernel.org # v6.8+
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240711135340.84617-2-tursulin@igalia.com
(cherry picked from commit f32b5128d2c440368b5bf3a7a356823e235caabb)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'drivers/gpu/drm/v3d/v3d_sched.c')
0 files changed, 0 insertions, 0 deletions