[v6.1] WARNING in btrfs_remove_chunk (2)

0 views
Skip to first unread message

syzbot

unread,
Dec 19, 2023, 10:26:27 PM12/19/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ba6f5fb46511 Linux 6.1.68
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14a0abd1e80000
kernel config: https://syzkaller.appspot.com/x/.config?x=ae71adbfe71fa6f2
dashboard link: https://syzkaller.appspot.com/bug?extid=456f974c2381aae882ce
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/3bfe24898710/disk-ba6f5fb4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ff69d25bff77/vmlinux-ba6f5fb4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3c4a8c1ccc46/Image-ba6f5fb4.gz.xz

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

BTRFS info (device loop1): balance: start -sdrange=0..0
BTRFS info (device loop1): relocating block group 1048576 flags system
------------[ cut here ]------------
WARNING: CPU: 1 PID: 10645 at fs/btrfs/volumes.c:3220 btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
Modules linked in:
CPU: 1 PID: 10645 Comm: syz-executor.1 Not tainted 6.1.68-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
lr : btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
sp : ffff800021ba76a0
x29: ffff800021ba7820 x28: 0000000000100000 x27: ffff00012c4462f0
x26: dfff800000000000 x25: ffffffffffffffe4 x24: ffff0001139834e0
x23: ffff700004374eec x22: 1fffe00019b7a060 x21: ffff0000cdbd0300
x20: 0000000000000000 x19: 0000000000000000 x18: 1fffe00036870376
x17: ffff80001581d000 x16: ffff8000083049a8 x15: ffff0001b4381bbc
x14: 1ffff00002b040b0 x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000ff0100 x10: 0000000000000003 x9 : 99a7610d06994a00
x8 : 99a7610d06994a00 x7 : ffff80000827c470 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000006 x1 : ffff80001229c460 x0 : ffff80019ec10000
Call trace:
btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
btrfs_relocate_chunk+0x260/0x368 fs/btrfs/volumes.c:3350
__btrfs_balance+0x1468/0x1dc8 fs/btrfs/volumes.c:4042
btrfs_balance+0xa38/0xe40 fs/btrfs/volumes.c:4418
btrfs_ioctl_balance+0x3e4/0x778 fs/btrfs/ioctl.c:4495
btrfs_ioctl+0x72c/0xb08 fs/btrfs/ioctl.c:5529
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl fs/ioctl.c:856 [inline]
__arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 76548
hardirqs last enabled at (76547): [<ffff80000827c510>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last enabled at (76547): [<ffff80000827c510>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004
hardirqs last disabled at (76548): [<ffff800012138864>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (76490): [<ffff800008020d7c>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last enabled at (76490): [<ffff800008020d7c>] __do_softirq+0xc1c/0xe38 kernel/softirq.c:600
softirqs last disabled at (76355): [<ffff80000802a99c>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
BTRFS info (device loop1: state A): dumping space info:
BTRFS info (device loop1: state A): space_info DATA+METADATA has 1867776 free, is not full
BTRFS info (device loop1: state A): space_info total=3276800, used=61440, pinned=0, reserved=8192, may_use=1339392, readonly=0 zone_unusable=0
BTRFS info (device loop1: state A): space_info SYSTEM has -98304 free, is not full
BTRFS info (device loop1: state A): space_info total=12451840, used=4096, pinned=0, reserved=0, may_use=98304, readonly=12447744 zone_unusable=0
BTRFS info (device loop1: state A): global_block_rsv: size 917504 reserved 913408
BTRFS info (device loop1: state A): trans_block_rsv: size 262144 reserved 262144
BTRFS info (device loop1: state A): chunk_block_rsv: size 98304 reserved 98304
BTRFS info (device loop1: state A): delayed_block_rsv: size 0 reserved 0
BTRFS info (device loop1: state A): delayed_refs_rsv: size 524288 reserved 163840
BTRFS: error (device loop1: state A) in btrfs_remove_chunk:3220: errno=-28 No space left
BTRFS info (device loop1: state EA): forced readonly
BTRFS info (device loop1: state EA): 1 enospc errors during balance
BTRFS info (device loop1: state EA): balance: ended with status: -28


---
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,
Feb 18, 2024, 4:40:21 PMFeb 18
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 8b4118fabd6e Linux 6.1.78
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17e10594180000
kernel config: https://syzkaller.appspot.com/x/.config?x=88ef89f70d190671
dashboard link: https://syzkaller.appspot.com/bug?extid=456f974c2381aae882ce
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=174298b4180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15e5c872180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/081869225fc6/disk-8b4118fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d2352caf51d2/vmlinux-8b4118fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/43ad130ed88b/Image-8b4118fa.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/64445a8ad9e6/mount_0.gz

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

BTRFS info (device loop2): relocating block group 1048576 flags system
------------[ cut here ]------------
WARNING: CPU: 0 PID: 9188 at fs/btrfs/volumes.c:3220 btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
Modules linked in:
CPU: 0 PID: 9188 Comm: syz-executor286 Not tainted 6.1.78-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_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
lr : btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
sp : ffff8000250c76a0
x29: ffff8000250c7820 x28: 0000000000100000 x27: ffff0000df3e0050
x26: dfff800000000000 x25: ffffffffffffffe4 x24: ffff0000cb4c18f0
x23: ffff700004a18eec x22: 1fffe0001974a220 x21: ffff0000cba51100
x20: 0000000000000000 x19: 0000000000000000 x18: 1fffe0003686bb76
x17: ffff80001583d000 x16: ffff800008304a58 x15: ffff0001b435dbbc
x14: 1ffff00002b080b0 x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000ff0100 x10: 0000000000000003 x9 : 9f20277c9850b500
x8 : 9f20277c9850b500 x7 : ffff80000827c520 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000006 x1 : ffff8000122ac660 x0 : ffff80019ebcc000
Call trace:
btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3220
btrfs_relocate_chunk+0x260/0x368 fs/btrfs/volumes.c:3350
__btrfs_balance+0x1468/0x1dc8 fs/btrfs/volumes.c:4042
btrfs_balance+0xa38/0xe40 fs/btrfs/volumes.c:4418
btrfs_ioctl_balance+0x3e4/0x778 fs/btrfs/ioctl.c:4511
btrfs_ioctl+0x72c/0xb08 fs/btrfs/ioctl.c:5545
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:870 [inline]
__se_sys_ioctl fs/ioctl.c:856 [inline]
__arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 69242
hardirqs last enabled at (69241): [<ffff80000827c5c0>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last enabled at (69241): [<ffff80000827c5c0>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5004
hardirqs last disabled at (69242): [<ffff800012152b84>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (69022): [<ffff800008033064>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (69020): [<ffff800008033030>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
BTRFS info (device loop2: state A): dumping space info:
BTRFS info (device loop2: state A): space_info DATA+METADATA has 1867776 free, is not full
BTRFS info (device loop2: state A): space_info total=3276800, used=61440, pinned=0, reserved=8192, may_use=1339392, readonly=0 zone_unusable=0
BTRFS info (device loop2: state A): space_info SYSTEM has 8253440 free, is not full
BTRFS info (device loop2: state A): space_info total=12451840, used=4096, pinned=0, reserved=0, may_use=0, readonly=4194304 zone_unusable=0
BTRFS info (device loop2: state A): global_block_rsv: size 917504 reserved 913408
BTRFS info (device loop2: state A): trans_block_rsv: size 262144 reserved 262144
BTRFS info (device loop2: state A): chunk_block_rsv: size 0 reserved 0
BTRFS info (device loop2: state A): delayed_block_rsv: size 0 reserved 0
BTRFS info (device loop2: state A): delayed_refs_rsv: size 524288 reserved 163840
BTRFS: error (device loop2: state A) in btrfs_remove_chunk:3220: errno=-28 No space left
BTRFS info (device loop2: state EA): forced readonly
BTRFS info (device loop2: state EA): 1 enospc errors during balance
BTRFS info (device loop2: state EA): balance: ended with status: -28


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