]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atomic: verify that gamma/degamma LUTs are not too big
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Tue, 6 Jan 2026 03:09:57 +0000 (05:09 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Wed, 14 Jan 2026 00:18:31 +0000 (02:18 +0200)
commitcea6e6e8717e81de266aa496f44088b2b960aa32
treeec5460686daf63b079de47d2c31dfcbd7c678646
parentca59e33f5a1f642d13ae0e558fdbdd9aaa9fe203
drm/atomic: verify that gamma/degamma LUTs are not too big

The kernel specifies LUT table sizes in a separate property, however it
doesn't enforce it as a maximum. Some drivers implement max size check
on their own in the atomic_check path. Other drivers simply ignore the
issue. Perform LUT size validation in the generic place.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260106-drm-fix-lut-checks-v3-3-f7f979eb73c8@oss.qualcomm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
drivers/gpu/drm/drm_atomic_uapi.c