syzbot


WARNING in btrfs_quota_enable

Status: upstream: reported C repro on 2022/12/15 10:06
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+760589ed572a2a629d01@syzkaller.appspotmail.com
First crash: 489d, last: 417d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_quota_enable origin:upstream C error 2 145d 145d 0/3 upstream: reported C repro on 2023/11/24 03:47
upstream WARNING in btrfs_quota_enable btrfs 1 234d 230d 0/26 auto-obsoleted due to no activity on 2023/12/05 05:27

Sample crash report:
RDX: 0000000020000000 RSI: 00000000c0109428 RDI: 0000000000000004
RBP: 00007ffcdad929e0 R08: 0000000000000001 R09: 00007f480cd90034
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8110 at fs/btrfs/qgroup.c:915 btrfs_quota_enable+0xf17/0x10b0 fs/btrfs/qgroup.c:915
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8110 Comm: syz-executor465 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:btrfs_quota_enable+0xf17/0x10b0 fs/btrfs/qgroup.c:915
Code: 92 c5 31 ff 89 ee e8 48 0e 65 fe 40 84 ed 0f 85 ad a0 fd 04 e8 0a 0d 65 fe be f4 ff ff ff 48 c7 c7 80 be a5 88 e8 de 44 f5 04 <0f> 0b e9 90 a0 fd 04 4c 89 f7 e8 da e9 9a fe e9 5f fb ff ff e8 e0
RSP: 0018:ffff8880952c7910 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff8880951c0080 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012a58f14
RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880afb85500
R13: ffff8880b34232c0 R14: ffff88808cfb3738 R15: ffff8880a3f9c900
 btrfs_ioctl_quota_ctl fs/btrfs/ioctl.c:5233 [inline]
 btrfs_ioctl+0x622c/0x76d0 fs/btrfs/ioctl.c:6021
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:501 [inline]
 do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688
 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705
 __do_sys_ioctl fs/ioctl.c:712 [inline]
 __se_sys_ioctl fs/ioctl.c:710 [inline]
 __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f480cdd7c49
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcdad929d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f480cdd7c49
RDX: 0000000020000000 RSI: 00000000c0109428 RDI: 0000000000000004
RBP: 00007ffcdad929e0 R08: 0000000000000001 R09: 00007f480cd90034
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/20 01:33 linux-4.19.y 3f8a27f9e27b c52b2efb .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in btrfs_quota_enable
2022/12/15 10:21 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in btrfs_quota_enable
2023/02/25 10:47 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_quota_enable
2022/12/15 10:06 linux-4.19.y 3f8a27f9e27b b18f0a64 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in btrfs_quota_enable
* Struck through repros no longer work on HEAD.