workqueue: max_active 2097158 requested for btrfs-scrubwrc is out of range, clamping between 1 and 512 workqueue: max_active 2097158 requested for btrfs-scrubparity is out of range, clamping between 1 and 512 BTRFS info (device loop0: state C): scrub: started on devid 1 general protection fault, probably for non-canonical address 0xdffffc0000000041: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000208-0x000000000000020f] CPU: 1 PID: 6881 Comm: syz.0.510 Not tainted 6.1.147-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:btrfs_lookup_csums_range+0xc3/0x10e0 fs/btrfs/file-item.c:518 Code: f2 00 00 f3 f3 48 89 4c 24 60 4a 89 44 21 08 e8 33 1b 22 fe 4c 89 bc 24 88 00 00 00 49 81 c7 08 02 00 00 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 8e 37 72 fe 49 8b 07 48 89 44 24 RSP: 0018:ffffc900057270e0 EFLAGS: 00010206 RAX: 0000000000000041 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc9000c569000 RSI: 000000000001426a RDI: 000000000001426b RBP: ffffc90005727250 R08: 0000000000000001 R09: 0000000000000000 R10: fffff52000ae4e3a R11: 1ffff92000ae4e38 R12: dffffc0000000000 R13: ffffc900057271e0 R14: 0000000000000000 R15: 0000000000000208 FS: 00007f62f5a676c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe8acd515ba CR3: 000000002ed67000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: scrub_simple_mirror+0x873/0x16b0 fs/btrfs/scrub.c:3481 scrub_stripe+0xa08/0x1950 fs/btrfs/scrub.c:3666 scrub_chunk+0x36a/0x430 fs/btrfs/scrub.c:3801 scrub_enumerate_chunks+0xb4b/0x1680 fs/btrfs/scrub.c:4070 btrfs_scrub_dev+0x7d2/0x1180 fs/btrfs/scrub.c:4411 btrfs_ioctl_scrub+0x225/0x350 fs/btrfs/ioctl.c:4109 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f62f4b8eb69 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:00007f62f5a67038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f62f4db5fa0 RCX: 00007f62f4b8eb69 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000005 RBP: 00007f62f4c11df1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f62f4db5fa0 R15: 00007ffe3c080e98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_lookup_csums_range+0xc3/0x10e0 fs/btrfs/file-item.c:518 Code: f2 00 00 f3 f3 48 89 4c 24 60 4a 89 44 21 08 e8 33 1b 22 fe 4c 89 bc 24 88 00 00 00 49 81 c7 08 02 00 00 4c 89 f8 48 c1 e8 03 <42> 80 3c 20 00 74 08 4c 89 ff e8 8e 37 72 fe 49 8b 07 48 89 44 24 RSP: 0018:ffffc900057270e0 EFLAGS: 00010206 RAX: 0000000000000041 RBX: 0000000000000001 RCX: 0000000000080000 RDX: ffffc9000c569000 RSI: 000000000001426a RDI: 000000000001426b RBP: ffffc90005727250 R08: 0000000000000001 R09: 0000000000000000 R10: fffff52000ae4e3a R11: 1ffff92000ae4e38 R12: dffffc0000000000 R13: ffffc900057271e0 R14: 0000000000000000 R15: 0000000000000208 FS: 00007f62f5a676c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fda1e070000 CR3: 000000002ed67000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: f2 00 00 repnz add %al,(%rax) 3: f3 f3 48 89 4c 24 60 repz xrelease mov %rcx,0x60(%rsp) a: 4a 89 44 21 08 mov %rax,0x8(%rcx,%r12,1) f: e8 33 1b 22 fe call 0xfe221b47 14: 4c 89 bc 24 88 00 00 mov %r15,0x88(%rsp) 1b: 00 1c: 49 81 c7 08 02 00 00 add $0x208,%r15 23: 4c 89 f8 mov %r15,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 20 00 cmpb $0x0,(%rax,%r12,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 ff mov %r15,%rdi 34: e8 8e 37 72 fe call 0xfe7237c7 39: 49 8b 07 mov (%r15),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 44 rex.R 3f: 24 .byte 0x24