syzbot


WARNING in btrfs_add_link (2)

Status: upstream: reported C repro on 2024/07/27 06:25
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+4f8497100604a77814fe@syzkaller.appspotmail.com
First crash: 55d, last: 30d
Bug presence (2)
Date Name Commit Repro Result
2024/07/27 linux-5.15.y (ToT) 7e89efd3ae1c C [report] WARNING in btrfs_add_link
2024/07/27 upstream (ToT) 3a7e02c040b1 C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_add_link btrfs C error unreliable 7 683d 703d 0/28 auto-obsoleted due to no activity on 2023/07/21 23:31
linux-5.15 WARNING in btrfs_add_link 1 512d 512d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:04

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: 4098 at fs/btrfs/inode.c:6753 btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6753
Modules linked in:
CPU: 1 PID: 4098 Comm: syz-executor115 Not tainted 5.15.163-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6753
lr : btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6753
sp : ffff80001cad7460
x29: ffff80001cad7560 x28: 0000000000000100 x27: 0000000000000108
x26: 00000000fffffff4 x25: 0000000000000000 x24: ffff70000395ae94
x23: dfff800000000000 x22: 00000000fffffff4 x21: ffff0000de26a580
x20: 1fffe0001bc4d4bb x19: ffff0000de26a5d8 x18: 0000000000000001
x17: 0000000000000000 x16: ffff800011ab3128 x15: 00000000ffffffff
x14: ffff0000cb33d1c0 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 8179933e99381d00
x8 : 8179933e99381d00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001cad6bd8 x4 : ffff800014b9f960 x3 : ffff8000085554d8
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6753
 btrfs_add_nondir fs/btrfs/inode.c:6804 [inline]
 btrfs_create+0x42c/0x56c fs/btrfs/inode.c:6926
 lookup_open fs/namei.c:3462 [inline]
 open_last_lookups fs/namei.c:3532 [inline]
 path_openat+0xf18/0x26cc fs/namei.c:3739
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3769
 do_sys_openat2+0x128/0x3e0 fs/open.c:1253
 do_sys_open fs/open.c:1269 [inline]
 __do_sys_openat fs/open.c:1285 [inline]
 __se_sys_openat fs/open.c:1280 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1280
 __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: 73906
hardirqs last  enabled at (73905): [<ffff80000832b958>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (73906): [<ffff800011aae7b4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last  enabled at (73896): [<ffff8000081b6574>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (73896): [<ffff8000081b6574>] handle_softirqs+0xb88/0xdbc kernel/softirq.c:586
softirqs last disabled at (73855): [<ffff8000081b6c0c>] __do_softirq kernel/softirq.c:592 [inline]
softirqs last disabled at (73855): [<ffff8000081b6c0c>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (73855): [<ffff8000081b6c0c>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (73855): [<ffff8000081b6c0c>] __irq_exit_rcu+0x268/0x4d8 kernel/softirq.c:641
---[ end trace ea37433b3af3dd5d ]---
BTRFS: error (device loop0) in btrfs_add_link:6753: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/27 09:24 linux-5.15.y 7c6d66f0266f 46eb10b7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_add_link
2024/07/27 08:31 linux-5.15.y 7c6d66f0266f 46eb10b7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_add_link
2024/07/27 07:31 linux-5.15.y 7c6d66f0266f 46eb10b7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_add_link
2024/08/21 23:18 linux-5.15.y fa93fa65db6e db5852f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_add_link
2024/07/27 06:24 linux-5.15.y 7c6d66f0266f 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_add_link
* Struck through repros no longer work on HEAD.