Re: A divide error bug in framebuffer_check

2022-09-13 Thread Ville Syrjälä
On Tue, Sep 13, 2022 at 01:49:40AM +0800, butt3rflyh4ck wrote: > Hi, there is a divide error bug in framebuffer_check in > drivers/gpu/drm/drm_framebuffer.c in the latest kernel. > we can trigger it via drm_mode_addfb2 IOCTL. > The call trace is drm_mode_addfb2 -> drm_internal_fra

A divide error bug in framebuffer_check

2022-09-12 Thread butt3rflyh4ck
Hi, there is a divide error bug in framebuffer_check in drivers/gpu/drm/drm_framebuffer.c in the latest kernel. we can trigger it via drm_mode_addfb2 IOCTL. The call trace is drm_mode_addfb2 -> drm_internal_framebuffer_create -> framebuffer_check. let us see code below: ``` stat