aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMin Li <[email protected]>2023-03-28 09:36:27 +0000
committerJani Nikula <[email protected]>2023-04-03 08:36:55 +0000
commitdc30c011469165d57af9adac5baff7d767d20e5c (patch)
tree3215c6a8e709bc8b2582d59bdcf4478e7aaca068 /tools/perf/scripts/python
parentdrm/i915: Use compressed bpp when calculating m/n value for DP MST DSC (diff)
downloadkernel-dc30c011469165d57af9adac5baff7d767d20e5c.tar.gz
kernel-dc30c011469165d57af9adac5baff7d767d20e5c.zip
drm/i915: fix race condition UAF in i915_perf_add_config_ioctl
Userspace can guess the id value and try to race oa_config object creation with config remove, resulting in a use-after-free if we dereference the object after unlocking the metrics_lock. For that reason, unlocking the metrics_lock must be done after we are done dereferencing the object. Signed-off-by: Min Li <[email protected]> Fixes: f89823c21224 ("drm/i915/perf: Implement I915_PERF_ADD/REMOVE_CONFIG interface") Cc: <[email protected]> # v4.14+ Reviewed-by: Andi Shyti <[email protected]> Reviewed-by: Umesh Nerlige Ramappa <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] [tursulin: Manually added stable tag.] (cherry picked from commit 49f6f6483b652108bcb73accd0204a464b922395) Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions