syzbot


WARNING in btrfs_add_link

Status: auto-obsoleted due to no activity on 2023/08/23 09:04
Reported-by: syzbot+3d8ec1d2e350e09e0f91@syzkaller.appspotmail.com
First crash: 350d, last: 350d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_add_link btrfs C error unreliable 7 522d 542d 0/26 auto-obsoleted due to no activity on 2023/07/21 23:31

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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 13628 at fs/btrfs/inode.c:6698 btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6698
Modules linked in:
CPU: 1 PID: 13628 Comm: syz-executor.4 Not tainted 5.15.109-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6698
lr : btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6698
sp : ffff800026097460
x29: ffff800026097560 x28: 0000000000000100 x27: 0000000000000108
x26: 00000000fffffff4 x25: 0000000000000000 x24: ffff700004c12e94
x23: dfff800000000000 x22: 00000000fffffff4 x21: ffff000120e21790
x20: 1fffe000241c42fd x19: ffff000120e217e8 x18: 0000000000000001
x17: ff8080000833451c x16: ffff8000119409d4 x15: ffff80000833451c
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000000f27c x10: ffff8000260e9000 x9 : 7a5927b107cdb400
x8 : 7a5927b107cdb400 x7 : fffffffffffc2618 x6 : fffffffffffc25c8
x5 : ffff800026096bd8 x4 : ffff8000149806c8 x3 : ffff80000854ade0
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_add_link+0x7ac/0xbcc fs/btrfs/inode.c:6698
 btrfs_add_nondir fs/btrfs/inode.c:6749 [inline]
 btrfs_create+0x42c/0x56c fs/btrfs/inode.c:6871
 lookup_open fs/namei.c:3392 [inline]
 open_last_lookups fs/namei.c:3462 [inline]
 path_openat+0xec0/0x26f0 fs/namei.c:3669
 do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
 do_sys_openat2+0x128/0x3d8 fs/open.c:1211
 do_sys_open fs/open.c:1227 [inline]
 __do_sys_openat fs/open.c:1243 [inline]
 __se_sys_openat fs/open.c:1238 [inline]
 __arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
 __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:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 82218
hardirqs last  enabled at (82217): [<ffff80000832a15c>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (82218): [<ffff80001193c068>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last  enabled at (82194): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (82194): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (82143): [<ffff8000081b56e0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (82143): [<ffff8000081b56e0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (82143): [<ffff8000081b56e0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace 94a7319fe4b40e07 ]---
BTRFS: error (device loop4) in btrfs_add_link:6698: errno=-12 Out of memory
BTRFS info (device loop4): forced readonly

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/27 20:43 linux-5.15.y f48aeeaaa64c 6f3d6fa7 .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.