[v5.15] WARNING in btrfs_add_link

0 views
Skip to first unread message

syzbot

unread,
Apr 27, 2023, 4:43:55 PM4/27/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: f48aeeaaa64c Linux 5.15.109
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=174760a0280000
kernel config: https://syzkaller.appspot.com/x/.config?x=6bb67251276f5711
dashboard link: https://syzkaller.appspot.com/bug?extid=3d8ec1d2e350e09e0f91
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/d2f1a30b8031/disk-f48aeeaa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/69b3383216cc/vmlinux-f48aeeaa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/94f198d8c094/Image-f48aeeaa.gz.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+3d8ec1...@syzkaller.appspotmail.com

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


---
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 bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Aug 23, 2023, 5:04:56 AM8/23/23
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages