lkml.org 
[lkml]   [2022]   [Aug]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [syzbot] KASAN: vmalloc-out-of-bounds Write in imageblit (2)
From
On 8/1/22 16:43, Dan Carpenter wrote:

>
> These are precendence bugs. The ! will be done before the >=. Write it
> as:
>
> if (pos < vc->vc_origin || pos >= vc->vc_scr_end ||
> ret >= vc->vc_scr_end) {
>
>
>> /* Should not happen */
>> x = y = 0;
>> ret = vc->vc_origin;
>
> regards,
> dan carpenter
>

Thanks for the catch. I shall send another syz-test patch with these fixed.

thanks,
-- Khalid Masum

\
 
 \ /
  Last update: 2022-08-01 16:08    [W:0.079 / U:0.592 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site