aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq/cppc_cpufreq.c
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2023-01-10 13:28:59 -0800
committerRob Clark <robdclark@chromium.org>2023-01-11 09:00:14 -0800
commita66f1efcf748febea7758c4c3c8b5bc5294949ef (patch)
tree8cfa9a3f9d163b01f92cc2cc398f14e1d957e5ce /drivers/cpufreq/cppc_cpufreq.c
parente752e5454e6417da3f40ec1306a041ea96c56423 (diff)
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 'drivers/cpufreq/cppc_cpufreq.c')
0 files changed, 0 insertions, 0 deletions