[PATCH v3 1/5] drm/msm/dpu: don't allow overriding data from catalog

Abhinav Kumar quic_abhinavk at quicinc.com
Tue Mar 19 18:32:38 UTC 2024



On 3/13/2024 6:10 PM, Dmitry Baryshkov wrote:
> 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 at linaro.org>
> ---
>   drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c | 10 +++++-----
>   1 file changed, 5 insertions(+), 5 deletions(-)
> 

Thanks for the fix,

Reviewed-by: Abhinav Kumar <quic_abhinavk at quicinc.com>



More information about the Freedreno mailing list