Re: [PATCH v2] vt: Reject zero-sized screen buffer size.

2020-07-20 Thread Tetsuo Handa
On 2020/07/21 0:40, Brooke Basile wrote: > Looks like this patch also fixes this bug reported by syzbot: > > https://syzkaller.appspot.com/bug?id=dc5c6b1ae4952a5d72d0e82de0eeeb9e5f767efc > > There's a lot of other bugs that were reported by syzbot that also touch this > code, so I just wante

Re: [PATCH v2] vt: Reject zero-sized screen buffer size.

2020-07-20 Thread Brooke Basile
On 7/10/20 10:34 AM, Tetsuo Handa wrote: syzbot is reporting general protection fault in do_con_write() [1] caused by vc->vc_screenbuf == ZERO_SIZE_PTR caused by vc->vc_screenbuf_size == 0 caused by vc->vc_cols == vc->vc_rows == vc->vc_size_row == 0 being passed to ioctl(FBIOPUT_VSCREENINFO) requ