BUG: Bad page state in process syz.3.2733 pfn:4c2b8
page:ffffea000130ae00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x5002c pfn:0x4c2b8
flags: 0xfff00000002046(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002046 ffffea00019a2b08 ffffea000156c4c8 0000000000000000
raw: 000000000005002c ffff88807b66b000 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 10888, tgid 10886 (syz.3.2733), ts 282312029119, free_ts 281807211778
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560
prep_new_page mm/page_alloc.c:2567 [inline]
get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358
__alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658
folio_alloc+0x1c/0x60 mm/mempolicy.c:2294
filemap_alloc_folio+0xdb/0x480 mm/filemap.c:999
__filemap_get_folio+0x6ba/0xde0 mm/filemap.c:1993
pagecache_get_page+0x26/0x260 mm/folio-compat.c:110
find_or_create_page include/linux/pagemap.h:676 [inline]
grab_cache_page include/linux/pagemap.h:808 [inline]
__get_metapage+0x2a7/0xfb0 fs/jfs/jfs_metapage.c:613
diNewExt+0x9ff/0x2e20 fs/jfs/jfs_imap.c:2275
diAllocExt fs/jfs/jfs_imap.c:1952 [inline]
diAllocAG+0xe27/0x1c30 fs/jfs/jfs_imap.c:1669
diAlloc+0x1c8/0x1930 fs/jfs/jfs_imap.c:1590
ialloc+0x88/0x930 fs/jfs/jfs_inode.c:56
jfs_mkdir+0x1e1/0xb00 fs/jfs/namei.c:225
vfs_mkdir+0x386/0x570 fs/namei.c:4161
do_mkdirat+0x1d8/0x440 fs/namei.c:4186
__do_sys_mkdirat fs/namei.c:4201 [inline]
__se_sys_mkdirat fs/namei.c:4199 [inline]
__x64_sys_mkdirat+0x85/0x90 fs/namei.c:4199
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1487 [inline]
free_pcp_prepare mm/page_alloc.c:1537 [inline]
free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414
free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3555
release_pages+0x20d1/0x2340 mm/swap.c:1035
tlb_batch_pages_flush mm/mmu_gather.c:60 [inline]
tlb_flush_mmu_free mm/mmu_gather.c:255 [inline]
tlb_flush_mmu+0x105/0x220 mm/mmu_gather.c:262
tlb_finish_mmu+0xf0/0x220 mm/mmu_gather.c:394
exit_mmap+0x388/0x970 mm/mmap.c:3305
__mmput+0x118/0x3a0 kernel/fork.c:1214
exit_mm+0x24d/0x350 kernel/exit.c:572
do_exit+0x958/0x2570 kernel/exit.c:874
do_group_exit+0x229/0x2e0 kernel/exit.c:1030
__do_sys_exit_group kernel/exit.c:1041 [inline]
__se_sys_exit_group kernel/exit.c:1039 [inline]
__x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1039
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
Modules linked in:
CPU: 1 PID: 10888 Comm: syz.3.2733 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:726
free_page_is_bad mm/page_alloc.c:1318 [inline]
free_pages_prepare mm/page_alloc.c:1479 [inline]
free_pcp_prepare mm/page_alloc.c:1537 [inline]
free_unref_page_prepare+0x447/0x9e0 mm/page_alloc.c:3414
free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3555
release_pages+0x20d1/0x2340 mm/swap.c:1035
__pagevec_release+0x6d/0xe0 mm/swap.c:1055
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x35c/0x10b0 mm/truncate.c:397
jfs_remount+0x348/0x5c0 fs/jfs/super.c:451
reconfigure_super+0x224/0x8d0 fs/super.c:977
do_remount fs/namespace.c:2767 [inline]
path_mount+0xcce/0xfb0 fs/namespace.c:3454
do_mount fs/namespace.c:3475 [inline]
__do_sys_mount fs/namespace.c:3683 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3660
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2392faa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2393f00e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2393f00ee0 RCX: 00007f2392faa77a
RDX: 0000200000016080 RSI: 00002000000160c0 RDI: 0000000000000000
RBP: 0000200000016080 R08: 00007f2393f00ee0 R09: 00000000018920f4
R10: 00000000018920f4 R11: 0000000000000246 R12: 00002000000160c0
R13: 00007f2393f00ea0 R14: 0000000000000000 R15: 0000200000016100
BUG: Bad page state in process syz.3.2733 pfn:668ac
page:ffffea00019a2b00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x668ac
flags: 0xfff00000002046(referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002046 ffffea000130aec8 ffffea000156c4c8 0000000000000000
raw: 000000000000001c ffff888054d04e88 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 10888, tgid 10886 (syz.3.2733), ts 282223749764, free_ts 281852195345
set_page_owner include/linux/page_owner.h:31 [inline]
post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2560
prep_new_page mm/page_alloc.c:2567 [inline]
get_page_from_freelist+0x206b/0x2180 mm/page_alloc.c:4358
__alloc_pages+0x1ec/0x4f0 mm/page_alloc.c:5658
folio_alloc+0x1c/0x60 mm/mempolicy.c:2294
filemap_alloc_folio+0xdb/0x480 mm/filemap.c:999
do_read_cache_folio+0x1b9/0x790 mm/filemap.c:3623
do_read_cache_page+0x32/0x230 mm/filemap.c:3701
read_mapping_page include/linux/pagemap.h:821 [inline]
__get_metapage+0x319/0xfb0 fs/jfs/jfs_metapage.c:620
diRead+0x6e6/0xbb0 fs/jfs/jfs_imap.c:367
jfs_iget+0x89/0x3f0 fs/jfs/inode.c:35
jfs_fill_super+0x707/0xaf0 fs/jfs/super.c:581
mount_bdev+0x28a/0x3c0 fs/super.c:1454
legacy_get_tree+0xe6/0x180 fs/fs_context.c:632
vfs_get_tree+0x88/0x270 fs/super.c:1584
do_new_mount+0x247/0xa50 fs/namespace.c:3104
do_mount fs/namespace.c:3475 [inline]
__do_sys_mount fs/namespace.c:3683 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3660
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1487 [inline]
free_pcp_prepare mm/page_alloc.c:1537 [inline]
free_unref_page_prepare+0x8e5/0x9e0 mm/page_alloc.c:3414
free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3509
__vunmap+0x874/0xa40 mm/vmalloc.c:2783
hid_open_report+0xa58/0xed0 drivers/hid/hid-core.c:1315
__hid_device_probe drivers/hid/hid-core.c:2706 [inline]
hid_device_probe+0x2f8/0x520 drivers/hid/hid-core.c:2743
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x24a/0xb40 drivers/base/dd.c:638
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:804
driver_probe_device+0x4f/0x420 drivers/base/dd.c:834
__device_attach_driver+0x2c6/0x510 drivers/base/dd.c:962
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2a7/0x480 drivers/base/dd.c:1034
bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
device_add+0xbcf/0x1050 drivers/base/core.c:3713
hid_add_device+0x361/0x500 drivers/hid/hid-core.c:2889
usbhid_probe+0xc3f/0x1010 drivers/hid/usbhid/hid-core.c:1443
usb_probe_interface+0x6e7/0xcf0 drivers/usb/core/driver.c:395
Modules linked in:
CPU: 1 PID: 10888 Comm: syz.3.2733 Tainted: G B syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
dump_stack_lvl+0x188/0x24e lib/dump_stack.c:106
bad_page+0x14b/0x170 mm/page_alloc.c:726
free_page_is_bad mm/page_alloc.c:1318 [inline]
free_pages_prepare mm/page_alloc.c:1479 [inline]
free_pcp_prepare mm/page_alloc.c:1537 [inline]
free_unref_page_prepare+0x447/0x9e0 mm/page_alloc.c:3414
free_unref_page_list+0xbb/0x8e0 mm/page_alloc.c:3555
release_pages+0x20d1/0x2340 mm/swap.c:1035
__pagevec_release+0x6d/0xe0 mm/swap.c:1055
pagevec_release include/linux/pagevec.h:71 [inline]
folio_batch_release include/linux/pagevec.h:135 [inline]
truncate_inode_pages_range+0x35c/0x10b0 mm/truncate.c:397
jfs_remount+0x348/0x5c0 fs/jfs/super.c:451
reconfigure_super+0x224/0x8d0 fs/super.c:977
do_remount fs/namespace.c:2767 [inline]
path_mount+0xcce/0xfb0 fs/namespace.c:3454
do_mount fs/namespace.c:3475 [inline]
__do_sys_mount fs/namespace.c:3683 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3660
do_syscall_x64 arch/x86/entry/common.c:46 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f2392faa77a
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f2393f00e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2393f00ee0 RCX: 00007f2392faa77a
RDX: 0000200000016080 RSI: 00002000000160c0 RDI: 0000000000000000
RBP: 0000200000016080 R08: 00007f2393f00ee0 R09: 00000000018920f4
R10: 00000000018920f4 R11: 0000000000000246 R12: 00002000000160c0
R13: 00007f2393f00ea0 R14: 0000000000000000 R15: 0000200000016100