ERROR: (device loop1): remounting filesystem as read-only ERROR: (device loop1): txCommit: BUG: Bad page state in process syz.1.20 pfn:66fbd page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2d pfn:0x66fbd flags: 0xfff0000000400c(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000400c dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002d ffff88806920be88 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 5351, tgid 5350 (syz.1.20), ts 97892116520, free_ts 96241322276 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3438 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4696 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263 alloc_pages_noprof mm/mempolicy.c:2340 [inline] folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2347 filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008 __filemap_get_folio+0x44e/0xc10 mm/filemap.c:1950 pagecache_get_page+0x2c/0x200 mm/folio-compat.c:81 find_or_create_page include/linux/pagemap.h:776 [inline] grab_cache_page include/linux/pagemap.h:892 [inline] __get_metapage+0x2b4/0x1050 fs/jfs/jfs_metapage.c:613 diNewExt+0xacf/0x37e0 fs/jfs/jfs_imap.c:2272 diAllocExt fs/jfs/jfs_imap.c:1949 [inline] diAllocAG+0xbec/0x1e50 fs/jfs/jfs_imap.c:1666 diAlloc+0x1d3/0x1760 fs/jfs/jfs_imap.c:1587 ialloc+0x8f/0x900 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4210 do_mkdirat+0x264/0x3a0 fs/namei.c:4233 page last free pid 5086 tgid 5086 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2608 vfree+0x186/0x2e0 mm/vmalloc.c:3364 kcov_put kernel/kcov.c:429 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:525 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 __do_sys_exit_group kernel/exit.c:1042 [inline] __se_sys_exit_group kernel/exit.c:1040 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1040 x64_sys_call+0x26c3/0x26d0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 0 UID: 0 PID: 5351 Comm: syz.1.20 Not tainted 6.10.0-syzkaller-12030-g66ebbdfdeb09 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 bad_page+0x18e/0x200 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:915 [inline] free_pages_prepare mm/page_alloc.c:1086 [inline] free_unref_folios+0x1215/0x1ac0 mm/page_alloc.c:2656 folios_put_refs+0x76e/0x860 mm/swap.c:1039 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:346 jfs_remount+0x364/0x6b0 fs/jfs/super.c:451 reconfigure_super+0x445/0x880 fs/super.c:1072 do_remount fs/namespace.c:3012 [inline] path_mount+0xc22/0xfa0 fs/namespace.c:3791 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f224337761a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f22441afe78 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f22441aff00 RCX: 00007f224337761a RDX: 0000000020000f40 RSI: 0000000020000f00 RDI: 0000000000000000 RBP: 0000000020000f40 R08: 00007f22441aff00 R09: 0000000001a4a438 R10: 0000000001a4a438 R11: 0000000000000206 R12: 0000000020000f00 R13: 00007f22441afec0 R14: 0000000000000000 R15: 00000000200008c0 BUG: Bad page state in process syz.1.20 pfn:66fbe page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2e pfn:0x66fbe flags: 0xfff0000000400c(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000400c dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002e ffff888066fbf000 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 5351, tgid 5350 (syz.1.20), ts 97892183664, free_ts 96241338119 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3438 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4696 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263 alloc_pages_noprof mm/mempolicy.c:2340 [inline] folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2347 filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008 __filemap_get_folio+0x44e/0xc10 mm/filemap.c:1950 pagecache_get_page+0x2c/0x200 mm/folio-compat.c:81 find_or_create_page include/linux/pagemap.h:776 [inline] grab_cache_page include/linux/pagemap.h:892 [inline] __get_metapage+0x2b4/0x1050 fs/jfs/jfs_metapage.c:613 diNewExt+0xacf/0x37e0 fs/jfs/jfs_imap.c:2272 diAllocExt fs/jfs/jfs_imap.c:1949 [inline] diAllocAG+0xbec/0x1e50 fs/jfs/jfs_imap.c:1666 diAlloc+0x1d3/0x1760 fs/jfs/jfs_imap.c:1587 ialloc+0x8f/0x900 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4210 do_mkdirat+0x264/0x3a0 fs/namei.c:4233 page last free pid 5086 tgid 5086 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2608 vfree+0x186/0x2e0 mm/vmalloc.c:3364 kcov_put kernel/kcov.c:429 [inline] kcov_close+0x2b/0x50 kernel/kcov.c:525 __fput+0x24a/0x8a0 fs/file_table.c:422 task_work_run+0x24f/0x310 kernel/task_work.c:222 exit_task_work include/linux/task_work.h:40 [inline] do_exit+0xa2f/0x27f0 kernel/exit.c:882 do_group_exit+0x207/0x2c0 kernel/exit.c:1031 __do_sys_exit_group kernel/exit.c:1042 [inline] __se_sys_exit_group kernel/exit.c:1040 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1040 x64_sys_call+0x26c3/0x26d0 arch/x86/include/generated/asm/syscalls_64.h:232 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 1 UID: 0 PID: 5351 Comm: syz.1.20 Tainted: G B 6.10.0-syzkaller-12030-g66ebbdfdeb09 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 bad_page+0x18e/0x200 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:915 [inline] free_pages_prepare mm/page_alloc.c:1086 [inline] free_unref_folios+0x1215/0x1ac0 mm/page_alloc.c:2656 folios_put_refs+0x76e/0x860 mm/swap.c:1039 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:346 jfs_remount+0x364/0x6b0 fs/jfs/super.c:451 reconfigure_super+0x445/0x880 fs/super.c:1072 do_remount fs/namespace.c:3012 [inline] path_mount+0xc22/0xfa0 fs/namespace.c:3791 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f224337761a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f22441afe78 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f22441aff00 RCX: 00007f224337761a RDX: 0000000020000f40 RSI: 0000000020000f00 RDI: 0000000000000000 RBP: 0000000020000f40 R08: 00007f22441aff00 R09: 0000000001a4a438 R10: 0000000001a4a438 R11: 0000000000000206 R12: 0000000020000f00 R13: 00007f22441afec0 R14: 0000000000000000 R15: 00000000200008c0 BUG: Bad page state in process syz.1.20 pfn:15bd8 page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x2f pfn:0x15bd8 flags: 0xfff0000000400c(referenced|uptodate|private|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff0000000400c dead000000000100 dead000000000122 0000000000000000 raw: 000000000000002f ffff888066fbf0f8 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 5351, tgid 5350 (syz.1.20), ts 97892384116, free_ts 97866234049 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1493 prep_new_page mm/page_alloc.c:1501 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3438 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4696 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2263 alloc_pages_noprof mm/mempolicy.c:2340 [inline] folio_alloc_noprof+0x128/0x180 mm/mempolicy.c:2347 filemap_alloc_folio_noprof+0xdf/0x500 mm/filemap.c:1008 __filemap_get_folio+0x44e/0xc10 mm/filemap.c:1950 pagecache_get_page+0x2c/0x200 mm/folio-compat.c:81 find_or_create_page include/linux/pagemap.h:776 [inline] grab_cache_page include/linux/pagemap.h:892 [inline] __get_metapage+0x2b4/0x1050 fs/jfs/jfs_metapage.c:613 diNewExt+0xacf/0x37e0 fs/jfs/jfs_imap.c:2272 diAllocExt fs/jfs/jfs_imap.c:1949 [inline] diAllocAG+0xbec/0x1e50 fs/jfs/jfs_imap.c:1666 diAlloc+0x1d3/0x1760 fs/jfs/jfs_imap.c:1587 ialloc+0x8f/0x900 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4210 do_mkdirat+0x264/0x3a0 fs/namei.c:4233 page last free pid 5103 tgid 5103 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1094 [inline] free_unref_page+0xd19/0xea0 mm/page_alloc.c:2608 __slab_free+0x31b/0x3d0 mm/slub.c:4384 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3988 [inline] slab_alloc_node mm/slub.c:4037 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4044 getname_flags+0xb7/0x540 fs/namei.c:139 user_path_at+0x24/0x60 fs/namei.c:3001 ksys_umount fs/namespace.c:2033 [inline] __do_sys_umount fs/namespace.c:2041 [inline] __se_sys_umount fs/namespace.c:2039 [inline] __x64_sys_umount+0xf1/0x170 fs/namespace.c:2039 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f Modules linked in: CPU: 1 UID: 0 PID: 5351 Comm: syz.1.20 Tainted: G B 6.10.0-syzkaller-12030-g66ebbdfdeb09 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 Call Trace: __dump_stack lib/dump_stack.c:93 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:119 bad_page+0x18e/0x200 mm/page_alloc.c:498 free_page_is_bad mm/page_alloc.c:915 [inline] free_pages_prepare mm/page_alloc.c:1086 [inline] free_unref_folios+0x1215/0x1ac0 mm/page_alloc.c:2656 folios_put_refs+0x76e/0x860 mm/swap.c:1039 folio_batch_release include/linux/pagevec.h:101 [inline] truncate_inode_pages_range+0x47b/0xfc0 mm/truncate.c:346 jfs_remount+0x364/0x6b0 fs/jfs/super.c:451 reconfigure_super+0x445/0x880 fs/super.c:1072 do_remount fs/namespace.c:3012 [inline] path_mount+0xc22/0xfa0 fs/namespace.c:3791 do_mount fs/namespace.c:3812 [inline] __do_sys_mount fs/namespace.c:4020 [inline] __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3997 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f224337761a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 7e 1a 00 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f22441afe78 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f22441aff00 RCX: 00007f224337761a RDX: 0000000020000f40 RSI: 0000000020000f00 RDI: 0000000000000000 RBP: 0000000020000f40 R08: 00007f22441aff00 R09: 0000000001a4a438 R10: 0000000001a4a438 R11: 0000000000000206 R12: 0000000020000f00 R13: 00007f22441afec0 R14: 0000000000000000 R15: 00000000200008c0