Files
linux/drivers/video/fbdev/core
Tetsuo Handa 8c28051cdc fbmem: don't allow too huge resolutions
syzbot is reporting page fault at vga16fb_fillrect() [1], for
vga16fb_check_var() is failing to detect multiplication overflow.

  if (vxres * vyres > maxmem) {
    vyres = maxmem / vxres;
    if (vyres < yres)
      return -ENOMEM;
  }

Since no module would accept too huge resolutions where multiplication
overflow happens, let's reject in the common path.

Link: https://syzkaller.appspot.com/bug?extid=04168c8063cfdde1db5e [1]
Reported-by: syzbot <[email protected]>
Debugged-by: Randy Dunlap <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Cc: [email protected]
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2021-09-08 18:52:04 +02:00
..
2020-11-17 11:00:43 +01:00
…
…
2021-04-10 11:12:08 +02:00
2020-11-17 11:00:43 +01:00
2020-11-17 11:00:43 +01:00
2020-11-17 11:00:43 +01:00
2020-11-17 11:00:43 +01:00
…
…
2020-11-17 11:00:43 +01:00
…
2020-11-17 11:00:43 +01:00