summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2023-01-11 00:28:59 +0300
committerRob Clark <robdclark@chromium.org>2023-01-11 20:00:14 +0300
commita66f1efcf748febea7758c4c3c8b5bc5294949ef (patch)
tree8cfa9a3f9d163b01f92cc2cc398f14e1d957e5ce /tools/perf/scripts/python/task-analyzer.py
parente752e5454e6417da3f40ec1306a041ea96c56423 (diff)
downloadlinux-a66f1efcf748febea7758c4c3c8b5bc5294949ef.tar.xz
drm/msm/gpu: Fix potential double-free
If userspace was calling the MSM_SET_PARAM ioctl on multiple threads to set the COMM or CMDLINE param, it could trigger a race causing the previous value to be kfree'd multiple times. Fix this by serializing on the gpu lock. Signed-off-by: Rob Clark <robdclark@chromium.org> Fixes: d4726d770068 ("drm/msm: Add a way to override processes comm/cmdline") Patchwork: https://patchwork.freedesktop.org/patch/517778/ Link: https://lore.kernel.org/r/20230110212903.1925878-1-robdclark@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions