Re: [PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-03 Thread Dongliang Mu
On Fri, Sep 3, 2021 at 9:55 PM Greg KH wrote: > > On Thu, Sep 02, 2021 at 02:10:48PM +0800, Dongliang Mu wrote: > > [ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] > > > > A fb_ioctl() FBIOPUT_VSCREENINFO call with invalid xres setting > > or yres setting in struct fb_var_screeninfo w

Re: [PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-03 Thread Greg KH
On Thu, Sep 02, 2021 at 02:10:48PM +0800, Dongliang Mu wrote: > [ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] > > A fb_ioctl() FBIOPUT_VSCREENINFO call with invalid xres setting > or yres setting in struct fb_var_screeninfo will result in a > KASAN: vmalloc-out-of-bounds failure in

Re: [PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-02 Thread Dongliang Mu
On Thu, Sep 2, 2021 at 9:15 PM Geert Uytterhoeven wrote: > > Hi Dongliang, > > On Thu, Sep 2, 2021 at 8:04 AM Dongliang Mu wrote: > > [ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] > > Oops, looks like I missed when that one was submitted for review... This patch cannot directly ap

Re: [PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-02 Thread Geert Uytterhoeven
Hi Dongliang, On Thu, Sep 2, 2021 at 8:04 AM Dongliang Mu wrote: > [ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] Oops, looks like I missed when that one was submitted for review... > A fb_ioctl() FBIOPUT_VSCREENINFO call with invalid xres setting > or yres setting in struct fb_va

[PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-01 Thread Dongliang Mu
[ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] A fb_ioctl() FBIOPUT_VSCREENINFO call with invalid xres setting or yres setting in struct fb_var_screeninfo will result in a KASAN: vmalloc-out-of-bounds failure in bitfill_aligned() as the margins are being cleared. The margins are clea

[PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-01 Thread Dongliang Mu
[ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] A fb_ioctl() FBIOPUT_VSCREENINFO call with invalid xres setting or yres setting in struct fb_var_screeninfo will result in a KASAN: vmalloc-out-of-bounds failure in bitfill_aligned() as the margins are being cleared. The margins are clea

Re: [PATCH 4.19] fbmem: add margin check to fb_check_caps()

2021-09-01 Thread Dongliang Mu
On Thu, Sep 2, 2021 at 2:02 PM Dongliang Mu wrote: > > [ Upstream commit a49145acfb975d921464b84fe00279f99827d816 ] > > A fb_ioctl() FBIOPUT_VSCREENINFO call with invalid xres setting > or yres setting in struct fb_var_screeninfo will result in a > KASAN: vmalloc-out-of-bounds failure in bitfill_a