XFS (loop0): Torn write (CRC failure) detected at log block 0x180. Truncating head block from 0x200. XFS (loop0): Starting recovery (logdev: internal) ================================================================== BUG: KASAN: slab-out-of-bounds in xfs_btree_lookup_get_block+0x180/0x66c fs/xfs/libxfs/xfs_btree.c:1813 Read of size 8 at addr ffff0000c5663258 by task syz-executor.0/6557 CPU: 0 PID: 6557 Comm: syz-executor.0 Not tainted 6.3.0-rc4-syzkaller-00011-g59caa87f9dfb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:319 [inline] print_report+0x174/0x514 mm/kasan/report.c:430 kasan_report+0xd4/0x130 mm/kasan/report.c:536 __asan_report_load8_noabort+0x2c/0x38 mm/kasan/report_generic.c:381 xfs_btree_lookup_get_block+0x180/0x66c fs/xfs/libxfs/xfs_btree.c:1813 xfs_btree_lookup+0x388/0x117c fs/xfs/libxfs/xfs_btree.c:1913 xfs_btree_simple_query_range+0xd4/0x5c4 fs/xfs/libxfs/xfs_btree.c:4732 xfs_btree_query_range+0x2b4/0x348 fs/xfs/libxfs/xfs_btree.c:4972 xfs_refcount_recover_cow_leftovers+0x2c8/0xb60 fs/xfs/libxfs/xfs_refcount.c:1936 xfs_reflink_recover_cow+0x80/0x1c0 fs/xfs/xfs_reflink.c:928 xlog_recover_finish+0x710/0x80c fs/xfs/xfs_log_recover.c:3493 xfs_log_mount_finish+0x1b8/0x3f4 fs/xfs/xfs_log.c:829 xfs_mountfs+0x103c/0x18fc fs/xfs/xfs_mount.c:933 xfs_fs_fill_super+0xd38/0xf50 fs/xfs/xfs_super.c:1677 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1724 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c8 fs/namespace.c:3042 path_mount+0x590/0xe20 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3571 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 The buggy address belongs to the object at ffff0000c5663210 which belongs to the cache xfs_refcbt_cur of size 200 The buggy address is located 72 bytes inside of allocated 200-byte region [ffff0000c5663210, ffff0000c56632d8) The buggy address belongs to the physical page: page:00000000bcb1bcac refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105663 flags: 0x5ffc00000000200(slab|node=0|zone=2|lastcpupid=0x7ff) raw: 05ffc00000000200 ffff0000c1c9e000 dead000000000122 0000000000000000 raw: 0000000000000000 00000000800f000f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff0000c5663100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c5663180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff0000c5663200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff0000c5663280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff0000c5663300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== XFS (loop0): Metadata corruption detected at xfs_btree_lookup_get_block+0x444/0x66c fs/xfs/libxfs/xfs_btree.c:1846, xfs_refcountbt block 0x18 XFS (loop0): Unmount and run xfs_repair Unable to handle kernel paging request at virtual address e0a4606c20000371 KASAN: maybe wild-memory-access in range [0x0527036100001b88-0x0527036100001b8f] Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 [e0a4606c20000371] address between user and kernel address ranges Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 6557 Comm: syz-executor.0 Tainted: G B 6.3.0-rc4-syzkaller-00011-g59caa87f9dfb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : xfs_trans_brelse+0x34/0x448 fs/xfs/xfs_trans_buf.c:349 lr : xfs_trans_brelse+0x2c/0x448 fs/xfs/xfs_trans_buf.c:348 sp : ffff80001e737340 x29: ffff80001e737340 x28: 00000000ffffff8b x27: 1fffe00018acc600 x26: 0000000000000007 x25: 00000000000000c8 x24: 1fffe00018acc609 x23: dfff800000000000 x22: 052703610000199d x21: 0527036100001b8d x20: ffff0000c0f43250 x19: 052703610000199d x18: 1fffe00036851db6 x17: 0000000000000000 x16: ffff800012323354 x15: ffff800008accf98 x14: ffff800008ac9d14 x13: ffff80000806345c x12: 0000000000000001 x11: ff80800009ca9174 x10: 0000000000000000 x9 : ffff800009ca9174 x8 : 00a4e06c20000371 x7 : ffff80000806345c x6 : ffff80000806366c x5 : ffff0000e3500100 x4 : ffff80001e736a78 x3 : ffff800009ac79a8 x2 : 0000000000000000 x1 : 052703610000199d x0 : ffff0000c0f43250 Call trace: xfs_trans_brelse+0x34/0x448 fs/xfs/xfs_trans_buf.c:349 xfs_btree_del_cursor+0xb8/0x24c fs/xfs/libxfs/xfs_btree.c:440 xfs_refcount_recover_cow_leftovers+0x2d8/0xb60 fs/xfs/libxfs/xfs_refcount.c:1938 xfs_reflink_recover_cow+0x80/0x1c0 fs/xfs/xfs_reflink.c:928 xlog_recover_finish+0x710/0x80c fs/xfs/xfs_log_recover.c:3493 xfs_log_mount_finish+0x1b8/0x3f4 fs/xfs/xfs_log.c:829 xfs_mountfs+0x103c/0x18fc fs/xfs/xfs_mount.c:933 xfs_fs_fill_super+0xd38/0xf50 fs/xfs/xfs_super.c:1677 get_tree_bdev+0x360/0x54c fs/super.c:1303 xfs_fs_get_tree+0x28/0x38 fs/xfs/xfs_super.c:1724 vfs_get_tree+0x90/0x274 fs/super.c:1510 do_new_mount+0x25c/0x8c8 fs/namespace.c:3042 path_mount+0x590/0xe20 fs/namespace.c:3372 do_mount fs/namespace.c:3385 [inline] __do_sys_mount fs/namespace.c:3594 [inline] __se_sys_mount fs/namespace.c:3571 [inline] __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3571 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x64/0x198 arch/arm64/kernel/syscall.c:193 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:591 Code: f2fbfff7 97a164a1 9107c275 d343fea8 (38776908) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: f2fbfff7 movk x23, #0xdfff, lsl #48 4: 97a164a1 bl 0xfffffffffe859288 8: 9107c275 add x21, x19, #0x1f0 c: d343fea8 lsr x8, x21, #3 * 10: 38776908 ldrb w8, [x8, x23] <-- trapping instruction