WARNING in btrfs_space_info_update_bytes_may_use

Status: upstream: reported syz repro on 2026/10/31 01:02
Reported-by: syzbot+86cdcd346374c0cd8c35@syzkaller.appspotmail.com
First crash: 12d, last: 7h57m
▶ ▼ Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_space_info_update_bytes_may_use prio:low btrfs -1 syz, C done 6364 50m 1473d 0/29 upstream: reported C repro on 2022/10/31 00:15
linux-5.15 WARNING in btrfs_space_info_update_bytes_may_use origin:upstream -1 syz, C error 57 7h59m 1314d 0/3 upstream: reported C repro on 2023/04/07 20:54
linux-6.1 WARNING in btrfs_space_info_update_bytes_may_use origin:upstream -1 syz, C error 571 7h37m 1335d 0/3 upstream: reported C repro on 2023/03/18 05:35

Sample crash report:
BTRFS info (device loop0): last unmount of filesystem 395ef67a-297e-477c-816d-cd80a5b93e5d
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5940 at fs/btrfs/space-info.h:208 btrfs_space_info_update_bytes_may_use+0x2d6/0x5b0 fs/btrfs/space-info.h:208
Modules linked in:
CPU: 1 PID: 5940 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
RIP: 0010:btrfs_space_info_update_bytes_may_use+0x2d6/0x5b0 fs/btrfs/space-info.h:208
Code: 35 00 00 74 08 4c 89 ff e8 e7 9a 3d fe 4d 8b 27 4c 89 e7 48 8b 6c 24 18 48 89 ee e8 34 94 e4 fd 49 39 ec 73 1a e8 1a 92 e4 fd <0f> 0b 31 db 43 80 7c 35 00 00 0f 85 6d ff ff ff e9 70 ff ff ff e8
RSP: 0018:ffffc9000331fa10 EFLAGS: 00010293
RAX: ffffffff83a34c86 RBX: ffffffffffea0000 RCX: ffff8880246f5a00
RDX: 0000000000000000 RSI: 0000000000160000 RDI: 000000000015f000
RBP: 0000000000160000 R08: ffffffff8f8dda6f R09: 1ffffffff1f1bb4d
R10: dffffc0000000000 R11: fffffbfff1f1bb4e R12: 000000000015f000
R13: 1ffff110066e5710 R14: dffffc0000000000 R15: ffff88803372b880
FS:  000055556f5cb500(0000) GS:ffff8880b8d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000313beb0e6000 CR3: 000000007868d000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 btrfs_space_info_free_bytes_may_use fs/btrfs/space-info.h:241 [inline]
 block_rsv_release_bytes fs/btrfs/block-rsv.c:154 [inline]
 btrfs_block_rsv_release+0x479/0x550 fs/btrfs/block-rsv.c:293
 btrfs_release_global_block_rsv+0x33/0x260 fs/btrfs/block-rsv.c:464
 btrfs_free_block_groups+0xc04/0xe70 fs/btrfs/block-group.c:4511
 close_ctree+0x7de/0xcc0 fs/btrfs/disk-io.c:4474
 generic_shutdown_super+0x134/0x2b0 fs/super.c:690
 kill_anon_super+0x41/0x190 fs/super.c:1314
 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2147
 deactivate_locked_super+0x9c/0x210 fs/super.c:479
 cleanup_mnt+0x3d7/0x460 fs/namespace.c:1259
 task_work_run+0x1d4/0x260 kernel/task_work.c:245
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:180
 exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:213
 __syscall_exit_to_user_mode_work kernel/entry/common.c:294 [inline]
 syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:305
 do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:82
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7eff9bba0d57
Code: a2 c7 05 9c a9 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff01851db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007eff9bba0d57
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff01851e70
RBP: 00007fff01851e70 R08: 00007fff01852e70 R09: 00000000ffffffff
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff01852f00
R13: 00007eff9bc36fb3 R14: 0000000000019e57 R15: 00007fff01852f40
 </TASK>

Crashes (77):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/11/09 18:02 linux-6.6.y 5139929c698c 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/08 03:36 linux-6.6.y 5139929c698c 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/08 01:21 linux-6.6.y 5139929c698c 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/07 21:09 linux-6.6.y 5139929c698c 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/07 18:24 linux-6.6.y 5139929c698c 5cecaf1f .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/02 01:48 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/11 21:46 linux-6.6.y 5139929c698c e56a968c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/10 08:17 linux-6.6.y 5139929c698c 70ec0380 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/09 21:09 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/09 05:56 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/09 04:32 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/09 02:13 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/09 01:47 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/08 14:10 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/08 02:44 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/07 16:26 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/07 16:19 linux-6.6.y 5139929c698c 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 17:31 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 17:13 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 17:01 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 17:01 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:57 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:55 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:54 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:48 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:47 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:45 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:44 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/06 16:42 linux-6.6.y b5a1dc3ad482 5cecaf1f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/05 14:34 linux-6.6.y b5a1dc3ad482 2ee8459f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/05 14:33 linux-6.6.y b5a1dc3ad482 2ee8459f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/05 14:33 linux-6.6.y b5a1dc3ad482 2ee8459f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/05 14:32 linux-6.6.y b5a1dc3ad482 2ee8459f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/05 14:28 linux-6.6.y b5a1dc3ad482 2ee8459f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:29 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:29 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:28 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:28 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:27 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:26 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:25 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:24 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:24 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/04 22:24 linux-6.6.y b5a1dc3ad482 73438ed0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/02 23:11 linux-6.6.y b5a1dc3ad482 6969b601 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/02 23:10 linux-6.6.y b5a1dc3ad482 6969b601 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/02 23:03 linux-6.6.y b5a1dc3ad482 6969b601 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/02 22:54 linux-6.6.y b5a1dc3ad482 6969b601 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/01 13:45 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/01 13:43 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/01 13:42 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/01 13:40 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/01 13:37 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/11/01 13:34 linux-6.6.y b5a1dc3ad482 25a0ae84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
2026/10/31 01:01 linux-6.6.y b5a1dc3ad482 0ec395f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-6-kasan WARNING in btrfs_space_info_update_bytes_may_use
* Struck through repros no longer work on HEAD.