Re: [PATCH v2] video: fbdev: cirrusfb: check pixclock to avoid divide by zero

2021-12-07 Thread George Kennedy
Can the DRM maintainers accept this Reviewed by patch? Links to the Reviewed by patch: https://lkml.org/lkml/2021/10/27/982 https://lore.kernel.org/all/1635366613-22507-1-git-send-email-george.kenn...@oracle.com/ Thank you, George On 10/28/2021 4:05 AM, Geert Uytterhoeven wrote: On Wed, O

Re: [PATCH v2] video: fbdev: cirrusfb: check pixclock to avoid divide by zero

2021-10-28 Thread Geert Uytterhoeven
On Wed, Oct 27, 2021 at 10:32 PM George Kennedy wrote: > Do a sanity check on pixclock value to avoid divide by zero. > > If the pixclock value is zero, the cirrusfb driver will round up > pixclock to get the derived frequency as close to maxclock as > possible. > > Syzkaller reported a divide err

[PATCH v2] video: fbdev: cirrusfb: check pixclock to avoid divide by zero

2021-10-27 Thread George Kennedy
Do a sanity check on pixclock value to avoid divide by zero. If the pixclock value is zero, the cirrusfb driver will round up pixclock to get the derived frequency as close to maxclock as possible. Syzkaller reported a divide error in cirrusfb_check_pixclock. divide error: [#1] SMP KASAN PT