syzbot


WARNING in btrfs_remove_chunk

Status: upstream: reported C repro on 2023/03/17 14:37
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+d41a75a33304b313bf46@syzkaller.appspotmail.com
First crash: 439d, last: 156d
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2023/12/25 linux-5.15.y (ToT) d93fa2c78854 C [report] WARNING in btrfs_remove_chunk
2023/11/10 upstream (ToT) 89cdf9d55601 C [report] WARNING in btrfs_remove_chunk
2023/12/25 upstream (ToT) 861deac3b092 C Didn't crash
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING in btrfs_remove_chunk (2) origin:upstream C 3 3d20h 162d 0/3 upstream: reported C repro on 2023/12/20 03:26
upstream WARNING in btrfs_remove_chunk btrfs C error inconclusive 228 1d23h 546d 0/26 upstream: reported C repro on 2022/11/30 08:16
linux-6.1 WARNING in btrfs_remove_chunk origin:lts-only C done 10 335d 426d 3/3 fixed on 2023/09/19 11:51
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/03/25 10:01 2h47m (2) fix candidate upstream job log (0)
2024/01/03 02:13 12h13m fix candidate upstream error job log (0)
2023/10/02 12:25 0m fix candidate upstream error job log (0)
2023/08/14 03:13 1m fix candidate upstream error job log (0)
2023/06/06 00:30 0m bisect fix linux-5.15.y error job log (0)

Sample crash report:
BTRFS info (device loop0): clearing compat-ro feature flag for FREE_SPACE_TREE_VALID (0x2)
BTRFS info (device loop0): checking UUID tree
BTRFS info (device loop0): balance: start -d -m
BTRFS info (device loop0): relocating block group 6881280 flags data|metadata
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3523 at fs/btrfs/volumes.c:3209 btrfs_remove_chunk+0x1575/0x1aa0 fs/btrfs/volumes.c:3209
Modules linked in:
CPU: 1 PID: 3523 Comm: syz-executor240 Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:btrfs_remove_chunk+0x1575/0x1aa0 fs/btrfs/volumes.c:3209
Code: ff e8 df e6 16 fe 4c 8b 24 24 0f 1f 44 00 00 e8 d1 e6 16 fe eb 16 e8 ca e6 16 fe 48 c7 c7 80 49 ca 8a 44 89 f6 e8 4b a1 e2 fd <0f> 0b 4c 89 e7 48 c7 c6 e0 4c ca 8a ba 89 0c 00 00 e9 90 fa ff ff
RSP: 0018:ffffc90002caf920 EFLAGS: 00010246
RAX: 5748ff9280c00000 RBX: 0000000000000000 RCX: ffff888018ec5940
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90002cafad8 R08: ffffffff816658fc R09: ffffed1017344f24
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807250b840
R13: dffffc0000000000 R14: ffffffffffffffe4 R15: ffff88801edd0001
FS:  00007ff5987dd6c0(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff5988619d0 CR3: 000000007a3e4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 btrfs_relocate_chunk+0x1ce/0x270 fs/btrfs/volumes.c:3326
 __btrfs_balance+0x185e/0x27c0 fs/btrfs/volumes.c:4018
 btrfs_balance+0xd40/0x14a0 fs/btrfs/volumes.c:4408
 btrfs_ioctl_balance+0x643/0x7d0 fs/btrfs/ioctl.c:4136
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:874 [inline]
 __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7ff5988240b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 1c 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff5987dd218 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ff5988b1708 RCX: 00007ff5988240b9
RDX: 00000000200003c0 RSI: 00000000c4009420 RDI: 0000000000000004
RBP: 00007ff5988b1700 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ff59887d54c
R13: 0030656c69662f2e R14: 7573617461646f6e R15: 61635f7261656c63
 </TASK>

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/10 02:18 linux-5.15.y 80529b4968a8 56230772 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/03/31 15:29 linux-5.15.y c957cbb87315 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/07/11 22:15 linux-5.15.y d54cfc420586 2f19aa4f .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/03/29 23:42 linux-5.15.y 115472395b0a f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/12/11 10:51 linux-5.15.y 8a1d809b0545 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/12/07 16:18 linux-5.15.y 9b91d36ba301 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/11/28 14:39 linux-5.15.y 2a910f4af54d 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/11/20 20:07 linux-5.15.y 2a910f4af54d cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/11/20 18:15 linux-5.15.y 2a910f4af54d cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/11/09 22:11 linux-5.15.y 80529b4968a8 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/11/09 11:23 linux-5.15.y 80529b4968a8 4862372a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/09/07 10:50 linux-5.15.y aff03380bda4 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/09/06 01:44 linux-5.15.y 8f790700c974 0b6286dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in btrfs_remove_chunk
2023/12/12 19:07 linux-5.15.y 8a1d809b0545 ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/07/05 18:29 linux-5.15.y 4af60700a60c ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/07/05 10:38 linux-5.15.y 4af60700a60c 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/07/03 06:19 linux-5.15.y 4af60700a60c bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/05 18:52 linux-5.15.y 8a7f2a5c5aa1 de870ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/04 05:21 linux-5.15.y 8a7f2a5c5aa1 5b7ff9dd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/03 18:31 linux-5.15.y 8a7f2a5c5aa1 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/03 08:15 linux-5.15.y 8a7f2a5c5aa1 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/02 10:38 linux-5.15.y 8a7f2a5c5aa1 52d40fd2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/01 10:59 linux-5.15.y 8a7f2a5c5aa1 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/05/01 08:27 linux-5.15.y 8a7f2a5c5aa1 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/29 04:11 linux-5.15.y f48aeeaaa64c 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/04/05 15:51 linux-5.15.y d86dfc4d95cd 8b834965 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/03/29 11:12 linux-5.15.y 115472395b0a f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
2023/03/17 14:36 linux-5.15.y 8020ae3c051d 18b58603 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_remove_chunk
* Struck through repros no longer work on HEAD.