JFS: sb_issue_discard(00000000f29c90e0, 2251799813686272, 1024, GFP_NOFS, 0) = -5 => failed! blkno = 8000000000400, nblocks = 400 ERROR: (device loop0): dbFree: block to be freed is outside the map BUG: Bad page state in process syz-executor151 pfn:116817 page:00000000e8c54ee8 refcount:0 mapcount:0 mapping:0000000000000000 index:0x4 pfn:0x116817 flags: 0x5ffc0000000800c(referenced|uptodate|private|node=0|zone=2|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 05ffc0000000800c fffffdffc35aea88 ffff800097aa74e0 0000000000000000 raw: 0000000000000004 ffff0000d6ba89b0 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 1 PID: 6163 Comm: syz-executor151 Not tainted 6.8.0-rc7-syzkaller-g707081b61156 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 dump_stack+0x1c/0x28 lib/dump_stack.c:113 bad_page+0x1a8/0x1c8 mm/page_alloc.c:514 free_page_is_bad_report+0x124/0x1a8 mm/page_alloc.c:957 free_page_is_bad mm/page_alloc.c:967 [inline] free_pages_prepare mm/page_alloc.c:1132 [inline] free_unref_page_prepare+0x98c/0xa70 mm/page_alloc.c:2346 free_unref_page_list+0xf0/0x87c mm/page_alloc.c:2532 release_pages+0xef4/0x114c mm/swap.c:1042 __folio_batch_release+0x94/0x10c mm/swap.c:1062 folio_batch_release include/linux/pagevec.h:83 [inline] truncate_inode_pages_range+0x388/0xf34 mm/truncate.c:362 truncate_inode_pages+0x2c/0x3c mm/truncate.c:439 dbUnmount+0xf4/0x168 fs/jfs/jfs_dmap.c:275 jfs_umount+0x1f0/0x360 fs/jfs/jfs_umount.c:87 jfs_put_super+0x90/0x188 fs/jfs/super.c:194 generic_shutdown_super+0x128/0x2b8 fs/super.c:641 kill_block_super+0x44/0x90 fs/super.c:1675 deactivate_locked_super+0xc4/0x12c fs/super.c:472 deactivate_super+0xe0/0x100 fs/super.c:505 cleanup_mnt+0x34c/0x3dc fs/namespace.c:1267 __cleanup_mnt+0x20/0x30 fs/namespace.c:1274 task_work_run+0x230/0x2e0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x618/0x1f64 kernel/exit.c:871 do_group_exit+0x194/0x22c kernel/exit.c:1020 __do_sys_exit_group kernel/exit.c:1031 [inline] __se_sys_exit_group kernel/exit.c:1029 [inline] pid_child_should_wake+0x0/0x1dc kernel/exit.c:1029 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598