[v5.15] WARNING in btrfs_clear_free_space_tree

0 views
Skip to first unread message

syzbot

unread,
Mar 6, 2024, 1:07:20 AMMar 6
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 80efc6265290 Linux 5.15.150
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=108f7efe180000
kernel config: https://syzkaller.appspot.com/x/.config?x=ca39ec49d1cf2068
dashboard link: https://syzkaller.appspot.com/bug?extid=6773feba26320e20631d
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/47cbb3459f23/disk-80efc626.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/40559d394d5f/vmlinux-80efc626.xz
kernel image: https://storage.googleapis.com/syzbot-assets/b59e1390e778/Image-80efc626.gz.xz

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

__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
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7043 at fs/btrfs/free-space-tree.c:1267 btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
Modules linked in:
CPU: 1 PID: 7043 Comm: syz-executor.0 Not tainted 5.15.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
lr : btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
sp : ffff8000247477a0
x29: ffff800024747840 x28: 1fffe0001aa9a80b x27: dfff800000000000
x26: ffff7000048e8ef8 x25: ffff0000c52320bb x24: ffff0000dbea26e0
x23: 0000000000000006 x22: 00000000fffffff4 x21: ffff0000d54d59d0
x20: ffff0000dbea2738 x19: 1fffe0001b7d44e7 x18: 0000000000000001
x17: 0000000000000002 x16: ffff8000119749f4 x15: 00000000ffffffff
x14: ffff0000ed1851c0 x13: 0000000000000001 x12: 0000000000040000
x11: 000000000001172d x10: ffff80001d6c9000 x9 : 48ae7218d25f0600
x8 : 48ae7218d25f0600 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800024746f18 x4 : ffff8000149ef720 x3 : ffff80000854e218
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
btrfs_start_pre_rw_mount+0x24c/0x578 fs/btrfs/disk-io.c:3079
btrfs_remount+0xb88/0x130c fs/btrfs/super.c:2082
legacy_reconfigure+0xfc/0x114 fs/fs_context.c:634
reconfigure_super+0x1d0/0x6ec fs/super.c:925
do_remount fs/namespace.c:2661 [inline]
path_mount+0xbec/0x101c fs/namespace.c:3327
do_mount fs/namespace.c:3348 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount fs/namespace.c:3533 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
__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: 83074
hardirqs last enabled at (83073): [<ffff80000832a794>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (83074): [<ffff800011970080>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last enabled at (83050): [<ffff800008021c64>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (83050): [<ffff800008021c64>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (82993): [<ffff8000081b6568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (82993): [<ffff8000081b6568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (82993): [<ffff8000081b6568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace 69e3dafca1188b85 ]---
BTRFS: error (device loop0) in btrfs_clear_free_space_tree:1267: errno=-12 Out of memory
BTRFS warning (device loop0): failed to clear free space tree: -12


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

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

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

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

syzbot

unread,
Mar 6, 2024, 1:47:17 AMMar 6
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 80efc6265290 Linux 5.15.150
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14a498ea180000
kernel config: https://syzkaller.appspot.com/x/.config?x=ca39ec49d1cf2068
dashboard link: https://syzkaller.appspot.com/bug?extid=6773feba26320e20631d
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14ad0fbc180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13abd7bc180000
mounted in repro: https://storage.googleapis.com/syzbot-assets/4400df7b941c/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6773fe...@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: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: 0 PID: 4089 at fs/btrfs/free-space-tree.c:1267 btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
Modules linked in:
CPU: 0 PID: 4089 Comm: syz-executor298 Not tainted 5.15.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
lr : btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
sp : ffff80001d2977a0
x29: ffff80001d297840 x28: 1fffe0001817700b x27: dfff800000000000
x26: ffff700003a52ef8 x25: ffff0000d057e0bb x24: ffff0000dbe470b0
x23: 0000000000000006 x22: 00000000fffffff4 x21: ffff0000c0bb99d0
x20: ffff0000dbe47108 x19: 1fffe0001b7c8e21 x18: 0000000000000001
x17: 0000000000000000 x16: ffff8000119749f4 x15: 00000000ffffffff
x14: ffff0000c2351b40 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000000 x10: 0000000000000000 x9 : 4cb9f81c53150000
x8 : 4cb9f81c53150000 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001d296f18 x4 : ffff8000149ef720 x3 : ffff80000854e218
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
btrfs_clear_free_space_tree+0x6bc/0x9bc fs/btrfs/free-space-tree.c:1267
btrfs_start_pre_rw_mount+0x24c/0x578 fs/btrfs/disk-io.c:3079
btrfs_remount+0xb88/0x130c fs/btrfs/super.c:2082
legacy_reconfigure+0xfc/0x114 fs/fs_context.c:634
reconfigure_super+0x1d0/0x6ec fs/super.c:925
do_remount fs/namespace.c:2661 [inline]
path_mount+0xbec/0x101c fs/namespace.c:3327
do_mount fs/namespace.c:3348 [inline]
__do_sys_mount fs/namespace.c:3556 [inline]
__se_sys_mount fs/namespace.c:3533 [inline]
__arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3533
__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: 70572
hardirqs last enabled at (70571): [<ffff80000832a794>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (70572): [<ffff800011970080>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396
softirqs last enabled at (70562): [<ffff800008021c64>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last enabled at (70562): [<ffff800008021c64>] __do_softirq+0xb5c/0xdb0 kernel/softirq.c:587
softirqs last disabled at (70541): [<ffff8000081b6568>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (70541): [<ffff8000081b6568>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (70541): [<ffff8000081b6568>] __irq_exit_rcu+0x264/0x4d4 kernel/softirq.c:637
---[ end trace 4130c4a767e44005 ]---
BTRFS: error (device loop0) in btrfs_clear_free_space_tree:1267: errno=-12 Out of memory
BTRFS warning (device loop0): failed to clear free space tree: -12


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages