syzbot


WARNING in btrfs_remove_chunk (2)

Status: upstream: reported C repro on 2023/12/20 03:26
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+456f974c2381aae882ce@syzkaller.appspotmail.com
First crash: 368d, last: 13h05m
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2024/02/19 upstream (ToT) b401b621758e C [report] BUG: MAX_LOCKDEP_CHAINS too low!
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 48 32d 646d 0/3 upstream: reported C repro on 2023/03/17 14:37
upstream WARNING in btrfs_remove_chunk btrfs C error inconclusive 252 5m 753d 0/28 upstream: reported C repro on 2022/11/30 08:16
linux-6.1 WARNING in btrfs_remove_chunk origin:lts-only C done 10 542d 632d 3/3 fixed on 2023/09/19 11:51
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/08/14 23:30 1m bisect fix linux-6.1.y error job log
2024/07/05 10:30 2h36m bisect fix linux-6.1.y OK (0) job log log
2024/05/26 08:28 2h18m bisect fix linux-6.1.y OK (0) job log log
2024/04/21 08:10 2h40m bisect fix linux-6.1.y OK (0) job log log
2024/03/19 23:32 2h40m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11855 at fs/btrfs/volumes.c:3227 btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3227
Modules linked in:
CPU: 1 PID: 11855 Comm: syz-executor356 Not tainted 6.1.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3227
lr : btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3227
sp : ffff8000255d75e0
x29: ffff8000255d7760 x28: 0000000000100000 x27: ffff0000cf3fb050
x26: dfff800000000000 x25: ffffffffffffffe4 x24: ffff0000c93c39c0
x23: ffff700004abaed4 x22: 1fffe0001a5dd060 x21: ffff0000d2ee8300
x20: 0000000000000006 x19: 0000000000000000 x18: 1fffe000367a3376
x17: ffff8000159cd000 x16: ffff8000083065fc x15: ffff0001b3d19bbc
x14: 1ffff00002b3a0b0 x13: dfff800000000000 x12: 0000000000000003
x11: 0000000000ff0100 x10: 0000000000000003 x9 : 7c2269706605e000
x8 : 7c2269706605e000 x7 : ffff80000827db90 x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000006 x1 : ffff8000123ec6e0 x0 : ffff80019e3f6000
Call trace:
 btrfs_remove_chunk+0x1378/0x1904 fs/btrfs/volumes.c:3227
 btrfs_delete_unused_bgs+0x9c0/0xd00 fs/btrfs/block-group.c:1528
 btrfs_remount+0xb84/0x121c fs/btrfs/super.c:2076
 legacy_reconfigure+0xfc/0x114 fs/fs_context.c:655
 reconfigure_super+0x318/0x7a4 fs/super.c:977
 do_remount fs/namespace.c:2712 [inline]
 path_mount+0xc70/0xe5c fs/namespace.c:3378
 do_mount fs/namespace.c:3399 [inline]
 __do_sys_mount fs/namespace.c:3607 [inline]
 __se_sys_mount fs/namespace.c:3584 [inline]
 __arm64_sys_mount+0x45c/0x594 fs/namespace.c:3584
 __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:140
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:204
 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: 2382
hardirqs last  enabled at (2381): [<ffff80000827dc30>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline]
hardirqs last  enabled at (2381): [<ffff80000827dc30>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:5000
hardirqs last disabled at (2382): [<ffff800012295eb4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (2142): [<ffff800008032978>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (2140): [<ffff800008032944>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
BTRFS info (device loop1: state MA): dumping space info:
BTRFS info (device loop1: state MA): space_info DATA+METADATA has 1798144 free, is not full
BTRFS info (device loop1: state MA): space_info total=3276800, used=53248, pinned=0, reserved=4096, may_use=1421312, readonly=0 zone_unusable=0
BTRFS info (device loop1: state MA): space_info SYSTEM has 8253440 free, is not full
BTRFS info (device loop1: state MA): space_info total=12451840, used=4096, pinned=0, reserved=0, may_use=0, readonly=4194304 zone_unusable=0
BTRFS info (device loop1: state MA): global_block_rsv: size 1441792 reserved 1159168
BTRFS info (device loop1: state MA): trans_block_rsv: size 262144 reserved 262144
BTRFS info (device loop1: state MA): chunk_block_rsv: size 0 reserved 0
BTRFS info (device loop1: state MA): delayed_block_rsv: size 0 reserved 0
BTRFS info (device loop1: state MA): delayed_refs_rsv: size 262144 reserved 0
BTRFS: error (device loop1: state MA) in btrfs_remove_chunk:3227: errno=-28 No space left

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/03 21:42 linux-6.1.y 7c15117f9468 f00eed24 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2024/02/18 21:40 linux-6.1.y 8b4118fabd6e 578f7538 .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
2024/11/30 04:22 linux-6.1.y e4d90d63d385 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_remove_chunk
2024/11/30 04:20 linux-6.1.y e4d90d63d385 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_remove_chunk
2024/11/30 04:16 linux-6.1.y e4d90d63d385 68914665 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_remove_chunk
2024/11/27 08:28 linux-6.1.y e4d90d63d385 52b38cc1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_remove_chunk
2024/11/23 01:40 linux-6.1.y e4d90d63d385 68da6d95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in btrfs_remove_chunk
2024/12/22 03:36 linux-6.1.y 29f02ec58a94 d7f584ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2024/11/26 09:50 linux-6.1.y e4d90d63d385 11dbc254 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2024/11/03 17:09 linux-6.1.y 7c15117f9468 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2024/01/10 02:11 linux-6.1.y 38fb82ecd144 b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in btrfs_remove_chunk
2023/12/20 03:26 linux-6.1.y ba6f5fb46511 3ad490ea .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.