ERROR: (device loop1): remounting filesystem as read-only ERROR: (device loop1): jfs_readdir: JFS:Dtree error: ino = 2, bn=48, index = 4 ERROR: (device loop1): jfs_readdir: JFS:Dtree error: ino = 2, bn=48, index = 5 BUG: Bad page state in process syz.1.350 pfn:10a495 page:000000005299890e refcount:0 mapcount:0 mapping:0000000000000000 index:0x2f pfn:0x10a495 flags: 0x5ffc00000002006(referenced|uptodate|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002006 fffffc000399e4c8 ffff8000208b76a0 0000000000000000 raw: 000000000000002f ffff0000e463d3e0 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 0 PID: 5388 Comm: syz.1.350 Not tainted 5.15.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 bad_page+0x1a4/0x1c4 mm/page_alloc.c:652 check_free_page_bad mm/page_alloc.c:1199 [inline] check_free_page mm/page_alloc.c:1209 [inline] free_pages_prepare mm/page_alloc.c:1334 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x4ec/0xe30 mm/page_alloc.c:3317 free_unref_page_list+0xe4/0x7a8 mm/page_alloc.c:3433 release_pages+0x1770/0x1a88 mm/swap.c:963 __pagevec_release+0x94/0x10c mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x3ac/0xbe0 mm/truncate.c:329 truncate_inode_pages+0x2c/0x3c mm/truncate.c:425 jfs_remount+0x2dc/0x594 fs/jfs/super.c:456 legacy_reconfigure+0xfc/0x114 fs/fs_context.c:634 reconfigure_super+0x1d0/0x6ec fs/super.c:938 do_remount fs/namespace.c:2668 [inline] path_mount+0xbec/0x101c fs/namespace.c:3334 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 BUG: Bad page state in process syz.1.350 pfn:126793 page:00000000bd22cf08 refcount:0 mapcount:0 mapping:0000000000000000 index:0x2e pfn:0x126793 flags: 0x5ffc00000002006(referenced|uptodate|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002006 fffffc000325e108 ffff8000208b76a0 0000000000000000 raw: 000000000000002e ffff0000e463d2e8 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 0 PID: 5388 Comm: syz.1.350 Tainted: G B 5.15.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 bad_page+0x1a4/0x1c4 mm/page_alloc.c:652 check_free_page_bad mm/page_alloc.c:1199 [inline] check_free_page mm/page_alloc.c:1209 [inline] free_pages_prepare mm/page_alloc.c:1334 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x4ec/0xe30 mm/page_alloc.c:3317 free_unref_page_list+0xe4/0x7a8 mm/page_alloc.c:3433 release_pages+0x1770/0x1a88 mm/swap.c:963 __pagevec_release+0x94/0x10c mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x3ac/0xbe0 mm/truncate.c:329 truncate_inode_pages+0x2c/0x3c mm/truncate.c:425 jfs_remount+0x2dc/0x594 fs/jfs/super.c:456 legacy_reconfigure+0xfc/0x114 fs/fs_context.c:634 reconfigure_super+0x1d0/0x6ec fs/super.c:938 do_remount fs/namespace.c:2668 [inline] path_mount+0xbec/0x101c fs/namespace.c:3334 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 BUG: Bad page state in process syz.1.350 pfn:109784 page:000000003282bcfe refcount:0 mapcount:0 mapping:0000000000000000 index:0x2d pfn:0x109784 flags: 0x5ffc00000002006(referenced|uptodate|private|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000002006 fffffc0003439608 ffff8000208b76a0 0000000000000000 raw: 000000000000002d ffff0000e463d1f0 00000000ffffffff 0000000000000000 page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set Modules linked in: CPU: 0 PID: 5388 Comm: syz.1.350 Tainted: G B 5.15.172-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call trace: dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 bad_page+0x1a4/0x1c4 mm/page_alloc.c:652 check_free_page_bad mm/page_alloc.c:1199 [inline] check_free_page mm/page_alloc.c:1209 [inline] free_pages_prepare mm/page_alloc.c:1334 [inline] free_pcp_prepare mm/page_alloc.c:1391 [inline] free_unref_page_prepare+0x4ec/0xe30 mm/page_alloc.c:3317 free_unref_page_list+0xe4/0x7a8 mm/page_alloc.c:3433 release_pages+0x1770/0x1a88 mm/swap.c:963 __pagevec_release+0x94/0x10c mm/swap.c:983 pagevec_release include/linux/pagevec.h:81 [inline] truncate_inode_pages_range+0x3ac/0xbe0 mm/truncate.c:329 truncate_inode_pages+0x2c/0x3c mm/truncate.c:425 jfs_remount+0x2dc/0x594 fs/jfs/super.c:456 legacy_reconfigure+0xfc/0x114 fs/fs_context.c:634 reconfigure_super+0x1d0/0x6ec fs/super.c:938 do_remount fs/namespace.c:2668 [inline] path_mount+0xbec/0x101c fs/namespace.c:3334 do_mount fs/namespace.c:3355 [inline] __do_sys_mount fs/namespace.c:3563 [inline] __se_sys_mount fs/namespace.c:3540 [inline] __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3540 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ERROR: (device loop1): dtSearch: stack overrun! ERROR: (device loop1): remounting filesystem as read-only btstack dump: bn = 0, index = 0 bn = 30, index = 0 bn = 0, index = 0 bn = 30, index = 0 bn = 0, index = 0 bn = 30, index = 0 bn = 0, index = 0 bn = 0, index = 0 jfs_lookup: dtSearch returned -5