Skip to content
Commit 6ce9efd1 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Thomas Zimmermann
Browse files

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: default avatarTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: bae7cb5d ("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: default avatarIago Toral Quiroga <itoral@igalia.com>
Reviewed-by: default avatarMaíra Canal <mcanal@igalia.com>
Signed-off-by: default avatarMaí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: default avatarThomas Zimmermann <tzimmermann@suse.de>
parent eeb1f825
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment