Messages in this thread | | | Date | Mon, 1 Aug 2022 20:06:58 +0600 | Subject | Re: [syzbot] KASAN: vmalloc-out-of-bounds Write in imageblit (2) | From | Khalid Masum <> |
| |
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
| |