workqueue: max_active 2097158 requested for btrfs-endio-write is out of range, clamping between 1 and 512 workqueue: max_active 2097158 requested for btrfs-compressed-write is out of range, clamping between 1 and 512 BTRFS info (device loop0: state MC): resize thread pool 2097158 -> 4 BTRFS info (device loop0: state MC): disabling free space tree BTRFS info (device loop0: state MC): clearing compat-ro feature flag for FREE_SPACE_TREE (0x1) BTRFS info (device loop0: state MC): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2) BUG: kernel NULL pointer dereference, address: 0000000000000018 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 8000000100fc0067 P4D 8000000100fc0067 PUD 107303067 PMD 0 Oops: 0000 [#1] PREEMPT SMP PTI CPU: 0 PID: 3295 Comm: syz.0.15 Not tainted 6.7.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:backup_super_roots fs/btrfs/disk-io.c:1676 [inline] RIP: 0010:write_all_supers+0x225/0xea0 fs/btrfs/disk-io.c:4061 Code: 18 48 8b 5c 24 08 48 8b 11 48 8b 89 20 01 00 00 48 c1 e1 06 4c 01 e1 81 e2 ff 0f 00 00 0f b6 4c 0a 64 43 88 8c 2f 9a 00 00 00 <48> 8b 48 18 48 8b 09 4b 89 4c 2f 50 48 8b 48 18 48 8b 11 48 8b 89 RSP: 0018:ffffc900037f7990 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888106f24000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff837ffc5e RDI: 00000000ffffffff RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0005088000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8881026a8b2b FS: 00007f1aa53a36c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000018 CR3: 000000010aeba000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_commit_transaction+0xaa8/0x11f0 fs/btrfs/transaction.c:2567 btrfs_delete_free_space_tree+0x15f/0x200 fs/btrfs/free-space-tree.c:1297 btrfs_start_pre_rw_mount+0x330/0x4b0 fs/btrfs/disk-io.c:2997 btrfs_remount_rw fs/btrfs/super.c:2225 [inline] btrfs_reconfigure+0x3b1/0xca0 fs/btrfs/super.c:2533 btrfs_reconfigure_for_mount fs/btrfs/super.c:3017 [inline] btrfs_get_tree_subvol fs/btrfs/super.c:3076 [inline] btrfs_get_tree+0x29e/0x700 fs/btrfs/super.c:3112 vfs_get_tree+0x2a/0xf0 fs/super.c:1771 do_new_mount+0x15a/0x3a0 fs/namespace.c:3348 do_mount fs/namespace.c:3688 [inline] __do_sys_mount fs/namespace.c:3897 [inline] __se_sys_mount+0x14b/0x1c0 fs/namespace.c:3874 do_syscall_64+0x4d/0x120 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f1aa457def9 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:00007f1aa53a3038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f1aa4735f80 RCX: 00007f1aa457def9 RDX: 0000000020001240 RSI: 0000000020001200 RDI: 00000000200011c0 RBP: 00007f1aa45f0b76 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f1aa4735f80 R15: 00007ffde0f654b8 Modules linked in: CR2: 0000000000000018 ---[ end trace 0000000000000000 ]--- RIP: 0010:backup_super_roots fs/btrfs/disk-io.c:1676 [inline] RIP: 0010:write_all_supers+0x225/0xea0 fs/btrfs/disk-io.c:4061 Code: 18 48 8b 5c 24 08 48 8b 11 48 8b 89 20 01 00 00 48 c1 e1 06 4c 01 e1 81 e2 ff 0f 00 00 0f b6 4c 0a 64 43 88 8c 2f 9a 00 00 00 <48> 8b 48 18 48 8b 09 4b 89 4c 2f 50 48 8b 48 18 48 8b 11 48 8b 89 RSP: 0018:ffffc900037f7990 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffff888106f24000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff837ffc5e RDI: 00000000ffffffff RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0005088000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff8881026a8b2b FS: 00007f1aa53a36c0(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000018 CR3: 000000010aeba000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 18 48 8b sbb %cl,-0x75(%rax) 3: 5c pop %rsp 4: 24 08 and $0x8,%al 6: 48 8b 11 mov (%rcx),%rdx 9: 48 8b 89 20 01 00 00 mov 0x120(%rcx),%rcx 10: 48 c1 e1 06 shl $0x6,%rcx 14: 4c 01 e1 add %r12,%rcx 17: 81 e2 ff 0f 00 00 and $0xfff,%edx 1d: 0f b6 4c 0a 64 movzbl 0x64(%rdx,%rcx,1),%ecx 22: 43 88 8c 2f 9a 00 00 mov %cl,0x9a(%r15,%r13,1) 29: 00 * 2a: 48 8b 48 18 mov 0x18(%rax),%rcx <-- trapping instruction 2e: 48 8b 09 mov (%rcx),%rcx 31: 4b 89 4c 2f 50 mov %rcx,0x50(%r15,%r13,1) 36: 48 8b 48 18 mov 0x18(%rax),%rcx 3a: 48 8b 11 mov (%rcx),%rdx 3d: 48 rex.W 3e: 8b .byte 0x8b 3f: 89 .byte 0x89