]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panic: Fix 24bit pixel crossing page boundaries
authorJocelyn Falempe <jfalempe@redhat.com>
Thu, 9 Oct 2025 12:24:53 +0000 (14:24 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Tue, 21 Oct 2025 09:28:03 +0000 (11:28 +0200)
commit23437509a69476d4f896891032d62ac868731668
tree4e5d03673856a218ac1ff0fa7fe99ffefc3424d8
parent2e337dd278c6c38982b520c309f36e0f88696e6e
drm/panic: Fix 24bit pixel crossing page boundaries

When using page list framebuffer, and using RGB888 format, some
pixels can cross the page boundaries, and this case was not handled,
leading to writing 1 or 2 bytes on the next virtual address.

Add a check and a specific function to handle this case.

Fixes: c9ff2808790f0 ("drm/panic: Add support to scanout buffer as array of pages")
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20251009122955.562888-7-jfalempe@redhat.com
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
drivers/gpu/drm/drm_panic.c