Re: WARNING in try_grab_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 04, 2023 at 04:42:27AM +0100, Matthew Wilcox wrote:
> On Fri, Aug 04, 2023 at 11:14:45AM +0800, Yikebaer Aizezi wrote:
> > Just patched it, then I rerun the reproduce program, and I got this
> > output from console:
> > 
> > BUG: Bad page state in process POC  pfn:0eb8d
> > page:ffffea00003ae340 refcount:0 mapcount:0 mapping:0000000000000000
> > index:0x0 pfn:0xeb8d
> > flags: 0xfff00000001000(reserved|node=0|zone=1|lastcpupid=0x7ff)
> > page_type: 0xffffffff()
> > raw: 00fff00000001000 ffffea00003ae348 ffffea00003ae348 0000000000000000
> > raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
> > page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
> > page_owner info is not present (never set?)
> > Modules linked in:
> > CPU: 0 PID: 7959 Comm: POC Not tainted 6.5.0-rc2 #2
> > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS
> > rel-1.12.0-59-gc9ba5276e321-prebuilt.qemu.org 04/01/2014
> > Call Trace:
> >  <TASK>
> >  __dump_stack lib/dump_stack.c:88 [inline]
> >  dump_stack_lvl+0xd4/0xf0 lib/dump_stack.c:106
> >  bad_page+0x71/0x1a0 mm/page_alloc.c:533
> >  free_page_is_bad_report mm/page_alloc.c:974 [inline]
> >  free_page_is_bad mm/page_alloc.c:984 [inline]
> >  free_pages_prepare mm/page_alloc.c:1153 [inline]
> >  free_unref_page_prepare+0x5f3/0xb50 mm/page_alloc.c:2348
> >  free_unref_page+0x2f/0x3c0 mm/page_alloc.c:2443
> >  __folio_put_small mm/swap.c:106 [inline]
> >  __folio_put+0xa2/0x110 mm/swap.c:129
> >  folio_put include/linux/mm.h:1423 [inline]
> >  put_page include/linux/mm.h:1492 [inline]
> >  extract_user_to_sg lib/scatterlist.c:1151 [inline]
> 
> Ohh.  I think this is something Dave Howells has a patch for.

Can you try
https://lore.kernel.org/mm-commits/20230726204730.B89D8C433C7@xxxxxxxxxxxxxxx/
?




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux