Re: [PATCH] drm/modes: Fix division by zero error

2023-08-01 Thread Astra Joan
Hi Jani, Thank you so much for the suggestions! I've submitted a V2 patch with the updated code, and also a patch test request which should come back soon. Please let me know if the new version looks good. Best regards, Ziqi

Re: [PATCH] drm/modes: Fix division by zero error

2023-08-01 Thread Jani Nikula
On Fri, 21 Jul 2023, Ziqi Zhao wrote: > In the bug reported by Syzbot, the variable `den == (1 << 22)` and > `mode->vscan == (1 << 10)`, causing the multiplication to overflow and > accidentally make `den == 0`. To prevent any chance of overflow, we > replace `num` and `den` with 64-bit unsigned i