syzbot


WARNING in btrfs_quota_enable

Status: upstream: reported C repro on 2023/11/24 03:47
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+d5bdb5468b410028e316@syzkaller.appspotmail.com
First crash: 159d, last: 158d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/11/24 upstream (ToT) f1a09972a45a C [report] WARNING in kernfs_remove_by_name_ns
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_quota_enable btrfs 1 247d 243d 0/26 auto-obsoleted due to no activity on 2023/12/05 05:27
linux-4.19 WARNING in btrfs_quota_enable btrfs C error 4 430d 502d 0/1 upstream: reported C repro on 2022/12/15 10:06

Sample crash report:
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4053 at fs/btrfs/qgroup.c:1009 btrfs_quota_enable+0x10d8/0x18d0 fs/btrfs/qgroup.c:1009
Modules linked in:
CPU: 1 PID: 4053 Comm: syz-executor204 Not tainted 5.15.139-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_quota_enable+0x10d8/0x18d0 fs/btrfs/qgroup.c:1009
lr : btrfs_quota_enable+0x10d8/0x18d0 fs/btrfs/qgroup.c:1009
sp : ffff80001cf37aa0
x29: ffff80001cf37c20 x28: dfff800000000000 x27: ffff7000039e6f68
x26: ffff0000d4894048 x25: fffffffffffffff4 x24: ffff0000d4895798
x23: ffff0000c260e700 x22: ffff0000dc7bf478 x21: ffff80001cf37b40
x20: 1fffe0001b8f7e8f x19: ffff0000dc7bf420 x18: 0000000000000001
x17: ff80800008335e48 x16: 0000000000000000 x15: ffff800008335e48
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832d93c x10: 0000000000000000 x9 : 4d6964384fed3200
x8 : 4d6964384fed3200 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001cf37218 x4 : ffff8000149ff8a0 x3 : ffff800008335f94
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_quota_enable+0x10d8/0x18d0 fs/btrfs/qgroup.c:1009
 btrfs_ioctl_quota_ctl+0x144/0x188 fs/btrfs/ioctl.c:4228
 btrfs_ioctl+0x9cc/0xa5c fs/btrfs/ioctl.c:5011
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl fs/ioctl.c:860 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 72376
hardirqs last  enabled at (72375): [<ffff80000832bad4>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (72376): [<ffff80001196ec28>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (72356): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (72356): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (72273): [<ffff8000081b5750>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (72273): [<ffff8000081b5750>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (72273): [<ffff8000081b5750>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 5acc2847aa03a6dc ]---
BTRFS: error (device loop0) in btrfs_quota_enable:1009: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/24 06:25 linux-5.15.y 2a910f4af54d 5b429f39 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_quota_enable
2023/11/24 03:46 linux-5.15.y 2a910f4af54d 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_quota_enable
* Struck through repros no longer work on HEAD.