diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2024-03-14 04:10:41 +0300 |
---|---|---|
committer | Abhinav Kumar <quic_abhinavk@quicinc.com> | 2024-03-29 23:28:48 +0300 |
commit | 4f3b77ae5ff5b5ba9d99c5d5450db388dbee5107 (patch) | |
tree | 4bf1fd0c36fa9f17cb0a7a955b61bff8b665665a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | c588f7d67044d6d59ef92d75a970b64929984d89 (diff) | |
download | linux-4f3b77ae5ff5b5ba9d99c5d5450db388dbee5107.tar.xz |
drm/msm/dpu: don't allow overriding data from catalog
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: abda0d925f9c ("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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions