✓ CI.checkpatch: success for drm/i915: Fix possible int overflow in skl_ddi_calculate_wrpll()
Patchwork
patchwork at emeril.freedesktop.org
Thu Jul 25 16:56:20 UTC 2024
== Series Details ==
Series: drm/i915: Fix possible int overflow in skl_ddi_calculate_wrpll()
URL : https://patchwork.freedesktop.org/series/136513/
State : success
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
5ce3e132caaa5b45e5e50201b574a097d130967c
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 9054eb2134f4ed62141f453543c89e73b51d4a2a
Author: Nikita Zhandarovich <n.zhandarovich at fintech.ru>
Date: Wed Jul 24 11:49:11 2024 -0700
drm/i915: Fix possible int overflow in skl_ddi_calculate_wrpll()
On the off chance that clock value ends up being too high (by means
of skl_ddi_calculate_wrpll() having benn called with big enough
value of crtc_state->port_clock * 1000), one possible consequence
may be that the result will not be able to fit into signed int.
Fix this, albeit unlikely, issue by first casting one of the operands
to u32, then to u64, and thus avoid causing an integer overflow.
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: fe70b262e781 ("drm/i915: Move a bunch of stuff into rodata from the stack")
Cc: stable at vger.kernel.org
Signed-off-by: Nikita Zhandarovich <n.zhandarovich at fintech.ru>
+ /mt/dim checkpatch 9f8e597a1c39d7e316f9479e6f627c15dbc58e1d drm-intel
9054eb2134f4 drm/i915: Fix possible int overflow in skl_ddi_calculate_wrpll()
More information about the Intel-xe
mailing list