[v5.15] WARNING in btrfs_run_delayed_refs

1 view
Skip to first unread message

syzbot

unread,
Apr 2, 2023, 2:59:41 PM4/2/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c957cbb87315 Linux 5.15.105
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13d81195c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=852dc3de44ba1f3f
dashboard link: https://syzkaller.appspot.com/bug?extid=7e32a3da87c746be16c0
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/91d0cf1fc5fb/disk-c957cbb8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/346dc1169521/vmlinux-c957cbb8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f7005bdc0e20/Image-c957cbb8.gz.xz

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

BTRFS error (device loop1): failed to run delayed ref for logical 5255168 num_bytes 4096 type 176 action 2 ref_mod 1: -12
------------[ cut here ]------------
WARNING: CPU: 1 PID: 12618 at fs/btrfs/extent-tree.c:2152 btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
Modules linked in:
CPU: 1 PID: 12618 Comm: syz-executor.1 Not tainted 5.15.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
lr : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
sp : ffff800020f07550
x29: ffff800020f07560 x28: dfff800000000000 x27: ffff0000d8702024
x26: 00000000fffffff4 x25: ffff0000dc3b5f78 x24: 1fffe0001b876bef
x23: ffff0000dc3b5f78 x22: 0000000000000000 x21: 0000000000000006
x20: ffff0000d8702000 x19: ffff0000dc3b5f20 x18: 0000000000000001
x17: ff808000083336c4 x16: ffff80001193f6fc x15: ffff8000083336c4
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000
x11: 000000000001686e x10: ffff80001e902000 x9 : b2c54f5be66baa00
x8 : b2c54f5be66baa00 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800020f06cb8 x4 : ffff80001499f940 x3 : ffff800008549b3c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
btrfs_commit_transaction+0x1b8/0x30f0 fs/btrfs/transaction.c:2159
btrfs_sync_fs+0x678/0xc94 fs/btrfs/super.c:1454
sync_filesystem+0x1a0/0x218 fs/sync.c:66
btrfs_remount+0x19c/0x1308 fs/btrfs/super.c:1930
legacy_reconfigure+0xfc/0x114 fs/fs_context.c:633
reconfigure_super+0x340/0x690 fs/super.c:916
do_remount fs/namespace.c:2656 [inline]
path_mount+0xc94/0x104c fs/namespace.c:3316
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount fs/namespace.c:3522 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522
__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: 87948
hardirqs last enabled at (87947): [<ffff800008329304>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (87948): [<ffff80001193ad90>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (87902): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (87902): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (87713): [<ffff8000081b4ee0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (87713): [<ffff8000081b4ee0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (87713): [<ffff8000081b4ee0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace 2e8afd8d2a9c643d ]---
BTRFS: error (device loop1) in btrfs_run_delayed_refs:2152: errno=-12 Out of memory
BTRFS info (device loop1): forced readonly
BTRFS error (device loop1): Remounting read-write after error is not allowed


---
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.

syzbot

unread,
Apr 2, 2023, 3:34:47 PM4/2/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c957cbb87315 Linux 5.15.105
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1784cea5c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=852dc3de44ba1f3f
dashboard link: https://syzkaller.appspot.com/bug?extid=7e32a3da87c746be16c0
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b1af85c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11dc0cedc80000
mounted in repro: https://storage.googleapis.com/syzbot-assets/aebb57439005/mount_0.gz

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

el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BTRFS error (device loop0): failed to run delayed ref for logical 5255168 num_bytes 4096 type 176 action 2 ref_mod 1: -12
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4167 at fs/btrfs/extent-tree.c:2152 btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
Modules linked in:
CPU: 0 PID: 4167 Comm: syz-executor323 Not tainted 5.15.105-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
lr : btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
sp : ffff80001d0c7550
x29: ffff80001d0c7560 x28: dfff800000000000 x27: ffff0000ce721024
x26: 00000000fffffff4 x25: ffff0000dd4573c8 x24: 1fffe0001ba8ae79
x23: ffff0000dd4573c8 x22: 0000000000000000 x21: 0000000000000006
x20: ffff0000ce721000 x19: ffff0000dd457370 x18: 0000000000000001
x17: ff808000083336c4 x16: ffff80001193f6fc x15: ffff8000083336c4
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832b16c x10: 0000000000000000 x9 : 067b5dc3ff286100
x8 : 067b5dc3ff286100 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001d0c6cb8 x4 : ffff80001499f940 x3 : ffff800008549b3c
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
btrfs_run_delayed_refs+0x408/0x47c fs/btrfs/extent-tree.c:2152
btrfs_commit_transaction+0x1b8/0x30f0 fs/btrfs/transaction.c:2159
btrfs_sync_fs+0x678/0xc94 fs/btrfs/super.c:1454
sync_filesystem+0x1a0/0x218 fs/sync.c:66
btrfs_remount+0x19c/0x1308 fs/btrfs/super.c:1930
legacy_reconfigure+0xfc/0x114 fs/fs_context.c:633
reconfigure_super+0x340/0x690 fs/super.c:916
do_remount fs/namespace.c:2656 [inline]
path_mount+0xc94/0x104c fs/namespace.c:3316
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount fs/namespace.c:3522 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522
__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: 73126
hardirqs last enabled at (73125): [<ffff800008329304>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (73126): [<ffff80001193ad90>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (73082): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (73082): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (73071): [<ffff8000081b4ee0>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (73071): [<ffff8000081b4ee0>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (73071): [<ffff8000081b4ee0>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:636
---[ end trace b8c92fba440578cb ]---
BTRFS: error (device loop0) in btrfs_run_delayed_refs:2152: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly
BTRFS error (device loop0): Remounting read-write after error is not allowed

Reply all
Reply to author
Forward
0 new messages