BTRFS info (device loop4): enabling ssd optimizations BTRFS info (device loop4): clearing free space tree BTRFS info (device loop4): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop4): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read_write include/linux/instrumented.h:101 [inline] BUG: KASAN: null-ptr-deref in atomic_inc_not_zero include/linux/atomic/atomic-instrumented.h:577 [inline] BUG: KASAN: null-ptr-deref in btrfs_root_node+0x103/0x370 fs/btrfs/ctree.c:138 Write of size 4 at addr 0000000000000060 by task syz-executor.4/7068 CPU: 0 PID: 7068 Comm: syz-executor.4 Not tainted 5.15.146-syzkaller #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+0x1e3/0x2cb lib/dump_stack.c:106 __kasan_report mm/kasan/report.c:438 [inline] kasan_report+0x161/0x1c0 mm/kasan/report.c:451 kasan_check_range+0x27e/0x290 mm/kasan/generic.c:189 instrument_atomic_read_write include/linux/instrumented.h:101 [inline] atomic_inc_not_zero include/linux/atomic/atomic-instrumented.h:577 [inline] btrfs_root_node+0x103/0x370 fs/btrfs/ctree.c:138 btrfs_read_lock_root_node+0x7b/0x3b0 fs/btrfs/locking.c:276 btrfs_search_slot_get_root fs/btrfs/ctree.c:1647 [inline] btrfs_search_slot+0x4b2/0x28b0 fs/btrfs/ctree.c:1805 btrfs_orphan_cleanup+0x211/0xcf0 fs/btrfs/inode.c:3541 btrfs_cleanup_fs_roots+0x7a7/0xaf0 fs/btrfs/disk-io.c:4293 btrfs_start_pre_rw_mount+0x1b5/0x680 fs/btrfs/disk-io.c:3090 open_ctree+0x2d9c/0x34bf fs/btrfs/disk-io.c:3622 btrfs_fill_super+0x1c7/0x2d0 fs/btrfs/super.c:1387 btrfs_mount_root+0x803/0x930 fs/btrfs/super.c:1752 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1517 fc_mount fs/namespace.c:1000 [inline] vfs_kern_mount+0xb8/0x150 fs/namespace.c:1030 btrfs_mount+0x395/0xb40 fs/btrfs/super.c:1812 legacy_get_tree+0xeb/0x180 fs/fs_context.c:611 vfs_get_tree+0x88/0x270 fs/super.c:1517 do_new_mount+0x28b/0xae0 fs/namespace.c:2994 do_mount fs/namespace.c:3337 [inline] __do_sys_mount fs/namespace.c:3545 [inline] __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3522 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7f765e74542a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f765ccc4ee8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f765ccc4f80 RCX: 00007f765e74542a RDX: 00000000200055c0 RSI: 0000000020000080 RDI: 00007f765ccc4f40 RBP: 00000000200055c0 R08: 00007f765ccc4f80 R09: 0000000000000008 R10: 0000000000000008 R11: 0000000000000202 R12: 0000000020000080 R13: 00007f765ccc4f40 R14: 00000000000055ab R15: 0000000020000000 ==================================================================