]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2025 13:10:28 +0000 (14:10 +0100)
commit91296c47dd76e82c15afb34def9d2ddd17df36a4
tree74e0aefd1db22c9689b7c37ac48f74f650aa14c0
parent53e5c5ef2f0c04b237f011b18841dc0249fadcac
drm/panic: Fix 24bit pixel crossing page boundaries

[ Upstream commit 23437509a69476d4f896891032d62ac868731668 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/drm_panic.c