... Log Wrap ... Log Wrap ... Log Wrap ... ... Log Wrap ... Log Wrap ... Log Wrap ... BUG: Bad page state in process syz.3.1186 pfn:550a7 page:ffffea00015429c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x550a7 flags: 0xfff0800000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff0800000820d dead000000000100 dead000000000122 0000000000000000 raw: 000000000000001c ffff88802f199c98 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 10887 (syz.3.1186), ts 578747355299, free_ts 578687998352 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291 filemap_alloc_folio+0xdf/0x470 mm/filemap.c:1004 do_read_cache_folio+0x36c/0x7e0 mm/filemap.c:3753 do_read_cache_page+0x32/0x250 mm/filemap.c:3855 read_mapping_page include/linux/pagemap.h:892 [inline] __get_metapage+0x31a/0xfa0 fs/jfs/jfs_metapage.c:620 diRead+0x6d3/0xb90 fs/jfs/jfs_imap.c:367 jfs_iget+0x8d/0x3c0 fs/jfs/inode.c:35 jfs_fill_super+0x70c/0xac0 fs/jfs/super.c:580 mount_bdev+0x22b/0x2d0 fs/super.c:1643 legacy_get_tree+0xea/0x180 fs/fs_context.c:662 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24b/0xa40 fs/namespace.c:3377 do_mount fs/namespace.c:3717 [inline] __do_sys_mount fs/namespace.c:3926 [inline] __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 vfree+0x1a6/0x320 mm/vmalloc.c:2868 n_tty_close+0x159/0x1d0 drivers/tty/n_tty.c:1905 tty_ldisc_kill+0xa3/0x1a0 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x1a4/0x200 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x2a/0xd0 drivers/tty/tty_io.c:1688 tty_release+0xc79/0x1610 drivers/tty/tty_io.c:1859 __fput+0x234/0x970 fs/file_table.c:384 task_work_run+0x1ce/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 Modules linked in: CPU: 1 PID: 10888 Comm: syz.3.1186 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 Call Trace: dump_stack_lvl+0x16c/0x230 lib/dump_stack.c:106 bad_page+0x14b/0x170 mm/page_alloc.c:512 free_page_is_bad mm/page_alloc.c:961 [inline] free_pages_prepare mm/page_alloc.c:1146 [inline] free_unref_page_prepare+0x887/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 txUnlock+0x27e/0xcb0 fs/jfs/jfs_txnmgr.c:932 txCommit+0x4dbd/0x5250 fs/jfs/jfs_txnmgr.c:1335 jfs_commit_inode+0x2f0/0x520 fs/jfs/inode.c:108 jfs_fsync+0x185/0x1b0 fs/jfs/file.c:37 generic_write_sync include/linux/fs.h:2651 [inline] generic_file_write_iter+0x261/0x2e0 mm/filemap.c:4141 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x43b/0x940 fs/read_write.c:584 ksys_pwrite64 fs/read_write.c:699 [inline] __do_sys_pwrite64 fs/read_write.c:709 [inline] __se_sys_pwrite64 fs/read_write.c:706 [inline] __x64_sys_pwrite64+0x195/0x220 fs/read_write.c:706 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f98b8b8eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f98b9ab6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f98b8dd5fa0 RCX: 00007f98b8b8eba9 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007f98b8c11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 00007f98b8dd6038 R14: 00007f98b8dd5fa0 R15: 00007ffef980a118 page:ffffea00015429c0 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1c pfn:0x550a7 flags: 0xfff0800000820d(locked|referenced|uptodate|workingset|private|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff0800000820d dead000000000100 dead000000000122 0000000000000000 raw: 000000000000001c ffff88802f199c98 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 0x140c40(GFP_NOFS|__GFP_COMP|__GFP_HARDWALL), pid 10888, tgid 10887 (syz.3.1186), ts 578747355299, free_ts 578687998352 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x1cd/0x210 mm/page_alloc.c:1554 prep_new_page mm/page_alloc.c:1561 [inline] get_page_from_freelist+0x195c/0x19f0 mm/page_alloc.c:3191 __alloc_pages+0x1e3/0x460 mm/page_alloc.c:4457 folio_alloc+0x1e/0x30 mm/mempolicy.c:2291 filemap_alloc_folio+0xdf/0x470 mm/filemap.c:1004 do_read_cache_folio+0x36c/0x7e0 mm/filemap.c:3753 do_read_cache_page+0x32/0x250 mm/filemap.c:3855 read_mapping_page include/linux/pagemap.h:892 [inline] __get_metapage+0x31a/0xfa0 fs/jfs/jfs_metapage.c:620 diRead+0x6d3/0xb90 fs/jfs/jfs_imap.c:367 jfs_iget+0x8d/0x3c0 fs/jfs/inode.c:35 jfs_fill_super+0x70c/0xac0 fs/jfs/super.c:580 mount_bdev+0x22b/0x2d0 fs/super.c:1643 legacy_get_tree+0xea/0x180 fs/fs_context.c:662 vfs_get_tree+0x8c/0x280 fs/super.c:1764 do_new_mount+0x24b/0xa40 fs/namespace.c:3377 do_mount fs/namespace.c:3717 [inline] __do_sys_mount fs/namespace.c:3926 [inline] __se_sys_mount+0x2da/0x3c0 fs/namespace.c:3903 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1154 [inline] free_unref_page_prepare+0x7ce/0x8e0 mm/page_alloc.c:2336 free_unref_page+0x32/0x2e0 mm/page_alloc.c:2429 vfree+0x1a6/0x320 mm/vmalloc.c:2868 n_tty_close+0x159/0x1d0 drivers/tty/n_tty.c:1905 tty_ldisc_kill+0xa3/0x1a0 drivers/tty/tty_ldisc.c:613 tty_ldisc_release+0x1a4/0x200 drivers/tty/tty_ldisc.c:781 tty_release_struct+0x2a/0xd0 drivers/tty/tty_io.c:1688 tty_release+0xc79/0x1610 drivers/tty/tty_io.c:1859 __fput+0x234/0x970 fs/file_table.c:384 task_work_run+0x1ce/0x250 kernel/task_work.c:239 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177 exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87 entry_SYSCALL_64_after_hwframe+0x68/0xd2 ------------[ cut here ]------------ kernel BUG at include/linux/mm.h:1458! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 10888 Comm: syz.3.1186 Tainted: G B syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:folio_get include/linux/mm.h:1458 [inline] RIP: 0010:get_page include/linux/mm.h:1464 [inline] RIP: 0010:put_metapage+0x253/0x340 fs/jfs/jfs_metapage.c:750 Code: 38 c1 0f 8c 32 ff ff ff 4c 89 ef e8 d7 54 dd fe e9 25 ff ff ff e8 cd 09 86 fe 48 8b 3c 24 48 c7 c6 40 fe e3 8a e8 dd cb c5 fe <0f> 0b f3 0f 1e fa 4c 8b 2c 24 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff RSP: 0018:ffffc900160778e0 EFLAGS: 00010246 RAX: d3118f3c743ebb00 RBX: ffff88802f199c98 RCX: d3118f3c743ebb00 RDX: 0000000000000000 RSI: ffffffff8afc72a0 RDI: ffffffff8afc7260 RBP: 000000000000007f R08: ffffffff8e4a94ef R09: 1ffffffff1c9529d R10: dffffc0000000000 R11: fffffbfff1c9529e R12: ffff88802f199cc0 R13: ffffea00015429f4 R14: 1ffff11005e33398 R15: 1ffff11005e333a5 FS: 00007f98b9ab66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000020000044c000 CR3: 000000002fe6b000 CR4: 00000000003506f0 Call Trace: txUnlock+0x427/0xcb0 fs/jfs/jfs_txnmgr.c:947 txCommit+0x4dbd/0x5250 fs/jfs/jfs_txnmgr.c:1335 jfs_commit_inode+0x2f0/0x520 fs/jfs/inode.c:108 jfs_fsync+0x185/0x1b0 fs/jfs/file.c:37 generic_write_sync include/linux/fs.h:2651 [inline] generic_file_write_iter+0x261/0x2e0 mm/filemap.c:4141 call_write_iter include/linux/fs.h:2018 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x43b/0x940 fs/read_write.c:584 ksys_pwrite64 fs/read_write.c:699 [inline] __do_sys_pwrite64 fs/read_write.c:709 [inline] __se_sys_pwrite64 fs/read_write.c:706 [inline] __x64_sys_pwrite64+0x195/0x220 fs/read_write.c:706 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f98b8b8eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f98b9ab6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007f98b8dd5fa0 RCX: 00007f98b8b8eba9 RDX: 000000000000fdef RSI: 0000200000000140 RDI: 0000000000000004 RBP: 00007f98b8c11e19 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000fecc R11: 0000000000000246 R12: 0000000000000000 R13: 00007f98b8dd6038 R14: 00007f98b8dd5fa0 R15: 00007ffef980a118 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_get include/linux/mm.h:1458 [inline] RIP: 0010:get_page include/linux/mm.h:1464 [inline] RIP: 0010:put_metapage+0x253/0x340 fs/jfs/jfs_metapage.c:750 Code: 38 c1 0f 8c 32 ff ff ff 4c 89 ef e8 d7 54 dd fe e9 25 ff ff ff e8 cd 09 86 fe 48 8b 3c 24 48 c7 c6 40 fe e3 8a e8 dd cb c5 fe <0f> 0b f3 0f 1e fa 4c 8b 2c 24 4c 89 ee 48 81 e6 ff 0f 00 00 31 ff RSP: 0018:ffffc900160778e0 EFLAGS: 00010246 RAX: d3118f3c743ebb00 RBX: ffff88802f199c98 RCX: d3118f3c743ebb00 RDX: 0000000000000000 RSI: ffffffff8afc72a0 RDI: ffffffff8afc7260 RBP: 000000000000007f R08: ffffffff8e4a94ef R09: 1ffffffff1c9529d R10: dffffc0000000000 R11: fffffbfff1c9529e R12: ffff88802f199cc0 R13: ffffea00015429f4 R14: 1ffff11005e33398 R15: 1ffff11005e333a5 FS: 00007f98b9ab66c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000a42000 CR3: 000000002fe6b000 CR4: 00000000003506f0