Re: [PATCH] drm/msm/gpu: Fix potential double-free

2023-01-11 Thread Rob Clark
On Tue, Jan 10, 2023 at 1:29 PM Rob Clark wrote: > > From: Rob Clark > > 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 gp

[PATCH] drm/msm/gpu: Fix potential double-free

2023-01-10 Thread Rob Clark
From: Rob Clark 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 --- drivers/gpu/drm/msm/adr