Hello,
syzbot found the following issue on:
HEAD commit: 1c700860e8bc Linux 5.15.185
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=177f2c0c580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=db74c56dea20051
dashboard link:
https://syzkaller.appspot.com/bug?extid=fa450181c7b753202981
compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/98c9bcd8fb21/disk-1c700860.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/75eaa3b1c3f3/vmlinux-1c700860.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/ed251e9d15fe/bzImage-1c700860.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+fa4501...@syzkaller.appspotmail.com
workqueue: max_active 2097158 requested for btrfs-scrubparity is out of range, clamping between 1 and 512
BTRFS info (device loop3): 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: 0 PID: 4264 Comm: syz.3.4 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:ffffc900030ef330 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: ffff8880212b9800
R13: ffffc900030ef730 R14: ffffc900030ef770 R15: 0000000000000000
FS: 00007f5dff99f6c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc9957b9c CR3: 000000005e1aa000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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:0x7f5e01b37929
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:00007f5dff99f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f5e01d5efa0 RCX: 00007f5e01b37929
RDX: 0000200000000000 RSI: 00000000c400941b RDI: 0000000000000004
RBP: 00007f5e01bb9b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f5e01d5efa0 R15: 00007fff1af8dfc8
</TASK>
Modules linked in:
---[ end trace 8cc5977281fd1f65 ]---
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:ffffc900030ef330 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: ffff8880212b9800
R13: ffffc900030ef730 R14: ffffc900030ef770 R15: 0000000000000000
FS: 00007f5dff99f6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f792c8cf000 CR3: 000000005e1aa000 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)
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup