syzbot


WARNING in btrfs_remove_chunk

Status: fixed on 2023/09/19 11:51
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+46c2a02bf4bd49b2de51@syzkaller.appspotmail.com
Fix commit: 9628d45a0667 btrfs: scrub: reject unsupported scrub flags
First crash: 553d, last: 462d
Fix bisection: fixed by (bisect log) :
commit 9628d45a06676d03482ed9cc63ba10bd343d2571
Author: Qu Wenruo <wqu@suse.com>
Date: Thu Apr 6 05:00:34 2023 +0000

  btrfs: scrub: reject unsupported scrub flags

  
Bug presence (2)
Date Name Commit Repro Result
2023/05/05 linux-6.1.y (ToT) ca48fc16c493 C [report] INFO: rcu detected stall in corrupted
2023/05/04 upstream (ToT) a1fd058b07d5 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in btrfs_remove_chunk origin:upstream missing-backport C inconclusive 36 48d 566d 0/3 upstream: reported C repro on 2023/03/17 14:37
linux-6.1 WARNING in btrfs_remove_chunk (2) origin:upstream C error 3 90d 289d 0/3 upstream: reported C repro on 2023/12/20 03:26
upstream WARNING in btrfs_remove_chunk btrfs C error inconclusive 239 5d17h 674d 0/28 upstream: reported C repro on 2022/11/30 08:16
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/09/13 09:25 6h12m bisect fix linux-6.1.y OK (1) job log
2023/06/29 11:30 1h29m bisect fix linux-6.1.y OK (0) job log log
2023/05/29 23:34 1h27m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
BTRFS: device fsid e417788f-7a09-42b2-9266-8ddc5d5d35d2 devid 1 transid 8 /dev/loop5 scanned by syz-executor120 (4822)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4822 at fs/btrfs/volumes.c:3202 btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3202
Modules linked in:
CPU: 1 PID: 4822 Comm: syz-executor120 Not tainted 6.1.22-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_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3202
lr : btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3202
sp : ffff80001eee76a0
x29: ffff80001eee7820 x28: 0000000000100000 x27: ffff0000de0c2590
x26: dfff800000000000 x25: ffffffffffffffe4 x24: ffff0000d63d99c0
x23: ffff700003ddceec x22: 1fffe00019d429e0 x21: ffff0000cea14f00
x20: 0000000000000000 x19: 0000000000000000 x18: 1fffe000368bab76
x17: ffff80001557d000 x16: ffff8000083029c0 x15: ffff0001b45d5bbc
x14: 1ffff00002ab00b0 x13: dfff800000000000 x12: 0000000000000003
x11: ff8080000aab7e28 x10: 0000000000000003 x9 : da6e372118c71e00
x8 : da6e372118c71e00 x7 : ffff80000827b520 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000006 x1 : ffff80001222c140 x0 : ffff80019f104000
Call trace:
 btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3202
 btrfs_relocate_chunk+0x230/0x328 fs/btrfs/volumes.c:3325
 __btrfs_balance+0x1468/0x1dc8 fs/btrfs/volumes.c:4017
 btrfs_balance+0x9f0/0xe58 fs/btrfs/volumes.c:4400
 btrfs_ioctl_balance+0x3e4/0x778 fs/btrfs/ioctl.c:4481
 btrfs_ioctl+0x72c/0xb08 fs/btrfs/ioctl.c:5512
 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:581
irq event stamp: 77582
hardirqs last  enabled at (77581): [<ffff80000827b5c0>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1366 [inline]
hardirqs last  enabled at (77581): [<ffff80000827b5c0>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000
hardirqs last disabled at (77582): [<ffff8000120d55ec>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (77400): [<ffff800008020d74>] softirq_handle_end kernel/softirq.c:414 [inline]
softirqs last  enabled at (77400): [<ffff800008020d74>] __do_softirq+0xc14/0xea0 kernel/softirq.c:600
softirqs last disabled at (77391): [<ffff80000802a948>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
BTRFS info (device loop5: state A): dumping space info:
BTRFS info (device loop5: state A): space_info DATA+METADATA has 1867776 free, is not full
BTRFS info (device loop5: state A): space_info total=3276800, used=61440, pinned=0, reserved=8192, may_use=1339392, readonly=0 zone_unusable=0
BTRFS info (device loop5: state A): space_info SYSTEM has 8253440 free, is not full
BTRFS info (device loop5: state A): space_info total=12451840, used=4096, pinned=0, reserved=0, may_use=0, readonly=4194304 zone_unusable=0
BTRFS info (device loop5: state A): global_block_rsv: size 917504 reserved 913408
BTRFS info (device loop5: state A): trans_block_rsv: size 262144 reserved 262144
BTRFS info (device loop5: state A): chunk_block_rsv: size 0 reserved 0
BTRFS info (device loop5: state A): delayed_block_rsv: size 0 reserved 0
BTRFS info (device loop5: state A): delayed_refs_rsv: size 524288 reserved 163840
BTRFS: error (device loop5: state A) in btrfs_remove_chunk:3202: errno=-28 No space left
BTRFS info (device loop5: state EA): forced readonly
BTRFS info (device loop5: state EA): 1 enospc errors during balance
BTRFS info (device loop5: state EA): balance: ended with status: -28

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/31 00:47 linux-6.1.y 3b29299e5f60 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/03/31 06:33 linux-6.1.y 3b29299e5f60 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/28 00:24 linux-6.1.y ca1c9012c941 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/26 16:05 linux-6.1.y ca1c9012c941 8d843721 .config console log report info ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/23 09:45 linux-6.1.y f17b0ab65d17 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/18 20:33 linux-6.1.y 0102425ac76b d931e9f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/17 13:06 linux-6.1.y 0102425ac76b c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/13 04:44 linux-6.1.y 543aff194ab6 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/11 02:58 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/05 23:38 linux-6.1.y 3b29299e5f60 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
* Struck through repros no longer work on HEAD.