lkml.org 
[lkml]   [2022]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [syzbot] KASAN: stack-out-of-bounds Write in check_move_unevictable_pages
On Tue, Jun 07, 2022 at 09:24:21AM -0700, syzbot wrote:
> BUG: KASAN: vmalloc-out-of-bounds in folio_batch_add include/linux/pagevec.h:130 [inline]
> BUG: KASAN: vmalloc-out-of-bounds in check_move_unevictable_pages+0x3f6/0x440 mm/vmscan.c:4857

Oh, I forgot to call folio_batch_init(), so ->nr contains some stack
garbage and we index into hyperspace. I'll fix it up, thanks.

\
 
 \ /
  Last update: 2022-06-08 04:55    [W:0.069 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site