BUG: Bad page state in process jfsCommit pfn:1f304 page:ffffea00007cc100 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x1f304 flags: 0xfff1000000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff1000000820d dead000000000100 dead000000000122 0000000000000000 raw: 000000000000001c ffff888076c5bd90 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 0x40c40(GFP_NOFS|__GFP_COMP), pid 5096, tgid 5093 (syz-executor155), ts 60302063630, free_ts 59637935405 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133 folio_alloc+0x1e/0xe0 mm/mempolicy.c:2211 filemap_alloc_folio+0x3bb/0x490 mm/filemap.c:974 do_read_cache_folio+0x1b8/0x540 mm/filemap.c:3664 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x5b/0x160 mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] __get_metapage+0x993/0x1170 fs/jfs/jfs_metapage.c:620 diRead+0x650/0xb00 fs/jfs/jfs_imap.c:364 jfs_iget+0x84/0x4c0 fs/jfs/inode.c:35 jfs_fill_super+0x6c8/0xd20 fs/jfs/super.c:580 mount_bdev+0x1f3/0x2e0 fs/super.c:1650 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8c/0x370 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3664 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2487 __unfreeze_partials+0x226/0x240 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x15d/0x2f0 mm/slub.c:3502 getname_flags.part.0+0x50/0x4e0 fs/namei.c:140 getname_flags include/linux/audit.h:321 [inline] getname+0x90/0xe0 fs/namei.c:219 do_sys_openat2+0x100/0x1e0 fs/open.c:1431 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1463 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b Modules linked in: CPU: 0 PID: 109 Comm: jfsCommit Not tainted 6.7.0-rc8-syzkaller-00024-gac865f00af29 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x125/0x1b0 lib/dump_stack.c:106 bad_page+0xb4/0x200 mm/page_alloc.c:514 free_page_is_bad_report mm/page_alloc.c:950 [inline] free_page_is_bad mm/page_alloc.c:960 [inline] free_pages_prepare mm/page_alloc.c:1129 [inline] free_unref_page_prepare+0x52f/0xaa0 mm/page_alloc.c:2347 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2487 __folio_put_small mm/swap.c:106 [inline] __folio_put+0xc3/0x110 mm/swap.c:129 folio_put include/linux/mm.h:1483 [inline] put_page include/linux/mm.h:1552 [inline] _metapage_homeok fs/jfs/jfs_metapage.h:119 [inline] _metapage_homeok fs/jfs/jfs_metapage.h:116 [inline] txUnlock+0x6bb/0xd10 fs/jfs/jfs_txnmgr.c:932 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x724/0xb10 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 page:ffffea00007cc100 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x1f304 flags: 0xfff1000000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff1000000820d dead000000000100 dead000000000122 0000000000000000 raw: 000000000000001c ffff888076c5bd90 00000000ffffffff 0000000000000000 page dumped because: VM_BUG_ON_FOLIO(((unsigned int) folio_ref_count(folio) + 127u <= 127u)) page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x40c40(GFP_NOFS|__GFP_COMP), pid 5096, tgid 5093 (syz-executor155), ts 60302063630, free_ts 59637935405 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x2d0/0x350 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0xa25/0x36d0 mm/page_alloc.c:3312 __alloc_pages+0x22e/0x2420 mm/page_alloc.c:4568 alloc_pages_mpol+0x258/0x5f0 mm/mempolicy.c:2133 folio_alloc+0x1e/0xe0 mm/mempolicy.c:2211 filemap_alloc_folio+0x3bb/0x490 mm/filemap.c:974 do_read_cache_folio+0x1b8/0x540 mm/filemap.c:3664 do_read_cache_page mm/filemap.c:3766 [inline] read_cache_page+0x5b/0x160 mm/filemap.c:3775 read_mapping_page include/linux/pagemap.h:871 [inline] __get_metapage+0x993/0x1170 fs/jfs/jfs_metapage.c:620 diRead+0x650/0xb00 fs/jfs/jfs_imap.c:364 jfs_iget+0x84/0x4c0 fs/jfs/inode.c:35 jfs_fill_super+0x6c8/0xd20 fs/jfs/super.c:580 mount_bdev+0x1f3/0x2e0 fs/super.c:1650 legacy_get_tree+0x109/0x220 fs/fs_context.c:662 vfs_get_tree+0x8c/0x370 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x1492/0x1ed0 fs/namespace.c:3664 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x4fa/0xaa0 mm/page_alloc.c:2347 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2487 __unfreeze_partials+0x226/0x240 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x15d/0x2f0 mm/slub.c:3502 getname_flags.part.0+0x50/0x4e0 fs/namei.c:140 getname_flags include/linux/audit.h:321 [inline] getname+0x90/0xe0 fs/namei.c:219 do_sys_openat2+0x100/0x1e0 fs/open.c:1431 do_sys_open fs/open.c:1452 [inline] __do_sys_openat fs/open.c:1468 [inline] __se_sys_openat fs/open.c:1463 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1463 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x63/0x6b ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1449! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 109 Comm: jfsCommit Tainted: G B 6.7.0-rc8-syzkaller-00024-gac865f00af29 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:folio_get include/linux/mm.h:1449 [inline] RIP: 0010:folio_get include/linux/mm.h:1447 [inline] RIP: 0010:get_page include/linux/mm.h:1455 [inline] RIP: 0010:put_metapage+0x2da/0x340 fs/jfs/jfs_metapage.c:750 Code: 8b fe 49 8d 6f ff e9 66 fe ff ff e8 50 25 e2 fe e9 d9 fd ff ff e8 f6 7b 8b fe 48 c7 c6 a0 0b 0b 8b 48 89 ef e8 07 4a ca fe 90 <0f> 0b 4c 89 ef e8 4c 25 e2 fe e9 72 fd ff ff 4c 89 f7 e8 3f 25 e2 RSP: 0018:ffffc90002c57d10 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888076c5bd90 RCX: ffffffff8167f575 RDX: ffff888014f7bb80 RSI: ffffffff82fbf669 RDI: 0000000000000000 RBP: ffffea00007cc100 R08: 0000000000000000 R09: fffffbfff1e327aa R10: ffffffff8f193d57 R11: 0000000000000000 R12: ffffea00007cc134 R13: ffff888076c5be20 R14: ffff888076c5bdb8 R15: 000000000000007f FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdc5203b000 CR3: 000000001dc1f000 CR4: 0000000000350ef0 Call Trace: txUnlock+0x46d/0xd10 fs/jfs/jfs_txnmgr.c:947 txLazyCommit fs/jfs/jfs_txnmgr.c:2682 [inline] jfs_lazycommit+0x724/0xb10 fs/jfs/jfs_txnmgr.c:2732 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_get include/linux/mm.h:1449 [inline] RIP: 0010:folio_get include/linux/mm.h:1447 [inline] RIP: 0010:get_page include/linux/mm.h:1455 [inline] RIP: 0010:put_metapage+0x2da/0x340 fs/jfs/jfs_metapage.c:750 Code: 8b fe 49 8d 6f ff e9 66 fe ff ff e8 50 25 e2 fe e9 d9 fd ff ff e8 f6 7b 8b fe 48 c7 c6 a0 0b 0b 8b 48 89 ef e8 07 4a ca fe 90 <0f> 0b 4c 89 ef e8 4c 25 e2 fe e9 72 fd ff ff 4c 89 f7 e8 3f 25 e2 RSP: 0018:ffffc90002c57d10 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888076c5bd90 RCX: ffffffff8167f575 RDX: ffff888014f7bb80 RSI: ffffffff82fbf669 RDI: 0000000000000000 RBP: ffffea00007cc100 R08: 0000000000000000 R09: fffffbfff1e327aa R10: ffffffff8f193d57 R11: 0000000000000000 R12: ffffea00007cc134 R13: ffff888076c5be20 R14: ffff888076c5bdb8 R15: 000000000000007f FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdc5173e000 CR3: 000000002915a000 CR4: 0000000000350ef0