Files
linux-stable-mirror/drivers/gpu/drm/msm
Dmitry BaryshkovandGreg Kroah-Hartman f7ef9a4379 drm/msm/dpu: don't allow overriding data from catalog
[ Upstream commit 4f3b77ae5f ]

The data from catalog is marked as const, so it is a part of the RO
segment. Allowing userspace to write to it through debugfs can cause
protection faults. Set debugfs file mode to read-only for debug entries
corresponding to perf_cfg coming from catalog.

Fixes: abda0d925f ("drm/msm/dpu: Mark various data tables as const")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/582844/
Link: https://lore.kernel.org/r/20240314-dpu-perf-rework-v3-1-79fa4e065574@linaro.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:19:27 +02:00
..
2024-01-25 15:35:35 -08:00
2024-02-05 20:14:38 +00:00
2024-02-23 09:25:07 +01:00