diff options
| author | Maíra Canal <mcanal@igalia.com> | 2026-11-18 18:47:29 -0300 |
|---|---|---|
| committer | Maíra Canal <mcanal@igalia.com> | 2026-11-19 10:40:54 -0300 |
| commit | 15da41dff1f66a389d238db60a1c19fa83582d07 (patch) | |
| tree | 8fa11a1621fc74c5808d4580b4cd8d6ce70a59c1 /include | |
| parent | 1fbbd14add401c70c178f0fa13016a3a53ef0de5 (diff) | |
drm/vc4: Check for a validated shader before reading its thread mode
validate_gl_shader_rec() reads the thread mode from the validated_shader
of the FS, VS and CS BOs before checking it for NULL. A shader record
pointing at a BO not created by DRM_IOCTL_VC4_CREATE_SHADER_BO has no
validated_shader, so userspace can trigger a NULL pointer dereference.
Check that every shader BO has a validated shader before using it.
Cc: stable@vger.kernel.org
Fixes: c778cc5df944 ("drm/vc4: Add fragment shader threading support")
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patch.msgid.link/20261118-vc4-icache-workaround-v1-2-5b8adc2c84fe@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
