workqueue: max_active 32767 requested for btrfs-scrub is out of range, clamping between 1 and 512 BTRFS info (device loop0 state CS): scrub: started on devid 1 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000041: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000208-0x000000000000020f] CPU: 0 UID: 0 PID: 5813 Comm: syz.0.15 Not tainted 6.12.0-rc5-syzkaller-00299-g11066801dd4b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:btrfs_lookup_csums_bitmap+0xc4/0x1600 fs/btrfs/file-item.c:615 Code: 8c 24 a8 00 00 00 42 c7 44 31 08 f3 f3 f3 f3 e8 b2 58 e1 fd 48 89 9c 24 88 00 00 00 48 81 c3 08 02 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 4d 17 4b fe 4c 8b 2b ba 11 00 00 RSP: 0018:ffffc9000c96f100 EFLAGS: 00010206 RAX: 0000000000000041 RBX: 0000000000000208 RCX: ffff88801efb2440 RDX: 0000000000000000 RSI: ffff888056812080 RDI: 0000000000000000 RBP: ffffc9000c96f290 R08: ffff8880452c6000 R09: ffffc9000c96f420 R10: dffffc0000000000 R11: ffffed100ad0002e R12: 0000000000500000 R13: ffffc9000c96f420 R14: dffffc0000000000 R15: 0000000000500000 FS: 00007fc5df8276c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5df805f98 CR3: 000000003efb6000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: scrub_find_fill_first_stripe+0xe96/0x1200 fs/btrfs/scrub.c:1618 queue_scrub_stripe fs/btrfs/scrub.c:1912 [inline] scrub_simple_mirror+0x5c6/0x960 fs/btrfs/scrub.c:2144 scrub_stripe+0xa7a/0x2a60 fs/btrfs/scrub.c:2310 scrub_chunk+0x2e3/0x470 fs/btrfs/scrub.c:2442 scrub_enumerate_chunks+0xc4f/0x16a0 fs/btrfs/scrub.c:2706 btrfs_scrub_dev+0x774/0xde0 fs/btrfs/scrub.c:3028 btrfs_ioctl_scrub+0x236/0x370 fs/btrfs/ioctl.c:3251 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0xf9/0x170 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc5de97dff9 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:00007fc5df827038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fc5deb35f80 RCX: 00007fc5de97dff9 RDX: 0000000020000000 RSI: 00000000c400941b RDI: 0000000000000004 RBP: 00007fc5de9f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fc5deb35f80 R15: 00007ffd616dbe48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_lookup_csums_bitmap+0xc4/0x1600 fs/btrfs/file-item.c:615 Code: 8c 24 a8 00 00 00 42 c7 44 31 08 f3 f3 f3 f3 e8 b2 58 e1 fd 48 89 9c 24 88 00 00 00 48 81 c3 08 02 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 df e8 4d 17 4b fe 4c 8b 2b ba 11 00 00 RSP: 0018:ffffc9000c96f100 EFLAGS: 00010206 RAX: 0000000000000041 RBX: 0000000000000208 RCX: ffff88801efb2440 RDX: 0000000000000000 RSI: ffff888056812080 RDI: 0000000000000000 RBP: ffffc9000c96f290 R08: ffff8880452c6000 R09: ffffc9000c96f420 R10: dffffc0000000000 R11: ffffed100ad0002e R12: 0000000000500000 R13: ffffc9000c96f420 R14: dffffc0000000000 R15: 0000000000500000 FS: 00007fc5df8276c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5df805f98 CR3: 000000003efb6000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8c 24 a8 mov %fs,(%rax,%rbp,4) 3: 00 00 add %al,(%rax) 5: 00 42 c7 add %al,-0x39(%rdx) 8: 44 31 08 xor %r9d,(%rax) b: f3 f3 f3 f3 e8 b2 58 repz repz repz repz call 0xfde158c6 12: e1 fd 14: 48 89 9c 24 88 00 00 mov %rbx,0x88(%rsp) 1b: 00 1c: 48 81 c3 08 02 00 00 add $0x208,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 4d 17 4b fe call 0xfe4b1786 39: 4c 8b 2b mov (%rbx),%r13 3c: ba .byte 0xba 3d: 11 00 adc %eax,(%rax)