workqueue: max_active 2097158 requested for btrfs-scrub is out of range, clamping between 1 and 512 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): scrub: started on devid 1 general protection fault, probably for non-canonical address 0xdffffc000000003e: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000001f0-0x00000000000001f7] CPU: 1 PID: 5008 Comm: syz.0.16 Not tainted 5.15.185-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:btrfs_reada_add+0x81/0x520 fs/btrfs/reada.c:974 Code: 67 fe 48 85 c0 0f 84 9b 02 00 00 49 89 c4 49 8d af f0 01 00 00 48 89 e9 48 c1 e9 03 48 b8 00 00 00 00 00 fc ff df 48 89 0c 24 <80> 3c 01 00 74 08 48 89 ef e8 21 c4 68 fe 4c 89 e3 48 89 6c 24 08 RSP: 0018:ffffc9000310f330 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 000000000000003e RDX: dffffc0000000000 RSI: ffffffff8a0b11c0 RDI: 0000000000000000 RBP: 00000000000001f0 R08: dffffc0000000000 R09: fffffbfff18e68b9 R10: fffffbfff18e68b9 R11: 1ffffffff18e68b8 R12: ffff88801ffe9e00 R13: ffffc9000310f730 R14: ffffc9000310f770 R15: 0000000000000000 FS: 00007f3c855496c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561b29400840 CR3: 000000005dfd1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: scrub_stripe+0xb25/0x37b0 fs/btrfs/scrub.c:3281 scrub_chunk+0x2b7/0x3b0 fs/btrfs/scrub.c:3618 scrub_enumerate_chunks+0xc8e/0x1910 fs/btrfs/scrub.c:3865 btrfs_scrub_dev+0x7cf/0x1100 fs/btrfs/scrub.c:4225 btrfs_ioctl_scrub+0x1b2/0x280 fs/btrfs/ioctl.c:3751 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xfa/0x170 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f3c862d9929 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:00007f3c85549038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f3c86500fa0 RCX: 00007f3c862d9929 RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000004 RBP: 00007f3c8635bb39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f3c86500fa0 R15: 00007fff0c105c08 Modules linked in: ---[ end trace a263560d91c892e7 ]--- RIP: 0010:btrfs_reada_add+0x81/0x520 fs/btrfs/reada.c:974 Code: 67 fe 48 85 c0 0f 84 9b 02 00 00 49 89 c4 49 8d af f0 01 00 00 48 89 e9 48 c1 e9 03 48 b8 00 00 00 00 00 fc ff df 48 89 0c 24 <80> 3c 01 00 74 08 48 89 ef e8 21 c4 68 fe 4c 89 e3 48 89 6c 24 08 RSP: 0018:ffffc9000310f330 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 000000000000003e RDX: dffffc0000000000 RSI: ffffffff8a0b11c0 RDI: 0000000000000000 RBP: 00000000000001f0 R08: dffffc0000000000 R09: fffffbfff18e68b9 R10: fffffbfff18e68b9 R11: 1ffffffff18e68b8 R12: ffff88801ffe9e00 R13: ffffc9000310f730 R14: ffffc9000310f770 R15: 0000000000000000 FS: 00007f3c855496c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561b29400840 CR3: 000000005dfd1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 2 bytes skipped: 0: 48 85 c0 test %rax,%rax 3: 0f 84 9b 02 00 00 je 0x2a4 9: 49 89 c4 mov %rax,%r12 c: 49 8d af f0 01 00 00 lea 0x1f0(%r15),%rbp 13: 48 89 e9 mov %rbp,%rcx 16: 48 c1 e9 03 shr $0x3,%rcx 1a: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 21: fc ff df 24: 48 89 0c 24 mov %rcx,(%rsp) * 28: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction 2c: 74 08 je 0x36 2e: 48 89 ef mov %rbp,%rdi 31: e8 21 c4 68 fe call 0xfe68c457 36: 4c 89 e3 mov %r12,%rbx 39: 48 89 6c 24 08 mov %rbp,0x8(%rsp)