summaryrefslogtreecommitdiff
path: root/include/asm-i386/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2026-06-18 10:41:58 +0200
committerThomas Zimmermann <tzimmermann@suse.de>2026-06-22 11:03:21 +0200
commitb771974988ec7ce077a7246fa0fa588c246fe581 (patch)
tree019a0216890f2e5a49b0023858de401376d7c4d2 /include/asm-i386/git@git.tavy.me:linux.git
parent134844856c399bfa9462a159dcf860bfdb748055 (diff)
drm/sysfb: Avoid possible truncation with calculating visible size
Calculating the visible size of the system framebuffer can result in truncation of the result. The calculation uses 32-bit arithmetics, which can overflow if the values for height and stride are large. Fix the issue by multiplying with mul_u32_u32(). Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Fixes: 32ae90c66fb6 ("drm/sysfb: Add efidrm for EFI displays") Fixes: a84eb6abe2b6 ("drm/sysfb: Add vesadrm for VESA displays") Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/dri-devel/20260617114027.1F2A71F000E9@smtp.kernel.org/ Cc: Thomas Zimmermann <tzimmermann@suse.de> Cc: Javier Martinez Canillas <javierm@redhat.com> Cc: dri-devel@lists.freedesktop.org Cc: <stable@vger.kernel.org> # v6.16+ Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patch.msgid.link/20260618084327.46567-3-tzimmermann@suse.de
Diffstat (limited to 'include/asm-i386/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions