syzbot


kernel BUG in insert_state_fast

Status: upstream: reported C repro on 2023/04/08 08:40
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+a82fd6d6c6330d9f4b32@syzkaller.appspotmail.com
First crash: 437d, last: 26d
Bug presence (1)
Date Name Commit Repro Result
2023/05/28 upstream (ToT) 4e893b5aa4ac C [report] kernel BUG in insert_state_fast
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in insert_state_fast btrfs C done 145 7d22h 567d 0/27 upstream: reported C repro on 2022/11/29 21:10
Fix bisection attempts (7)
Created Duration User Patch Repo Result
2024/05/23 14:25 1h16m bisect fix linux-6.1.y job log (0) log
2024/04/19 12:59 1h40m bisect fix linux-6.1.y job log (0) log
2024/03/17 03:22 1h43m bisect fix linux-6.1.y job log (0) log
2024/02/12 00:29 1h29m bisect fix linux-6.1.y job log (0) log
2024/01/05 08:01 1h26m bisect fix linux-6.1.y job log (0) log
2023/12/06 03:39 1h19m bisect fix linux-6.1.y job log (0) log
2023/10/09 01:10 1h35m bisect fix linux-6.1.y job log (0) log

Sample crash report:
 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
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:381!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4222 Comm: syz-executor334 Not tainted 6.1.61-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
pc : insert_state_fast+0x220/0x224 fs/btrfs/extent-io-tree.c:439
lr : set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
lr : insert_state_fast+0x220/0x224 fs/btrfs/extent-io-tree.c:439
sp : ffff80001ddf73b0
x29: ffff80001ddf73b0 x28: ffff0000e24880c0 x27: 0000000000000000
x26: dfff800000000000 x25: 0000000000000fff x24: 00000000fffffff4
x23: 0000000000001000 x22: 0000000000000000 x21: ffff0000e24880c0
x20: ffff0000e24880c0 x19: ffff0000d7126540 x18: ffff80001ddf68e0
x17: 0000000000000000 x16: ffff80001213619c x15: 0000000000000000
x14: 0000000000000000 x13: 0000000000000001 x12: 0000000000000001
x11: ff8080000a332f9c x10: 0000000000000000 x9 : ffff80000a332f9c
x8 : ffff0000d4e90000 x7 : 0000000000000001 x6 : 0000000000000001
x5 : 00000000ffffffff x4 : 0000000000000a20 x3 : 0000000000000a20
x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000
Call trace:
 set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
 insert_state_fast+0x220/0x224 fs/btrfs/extent-io-tree.c:439
 __set_extent_bit+0x10f4/0x1650 fs/btrfs/extent-io-tree.c:1000
 set_record_extent_bits+0x68/0x98 fs/btrfs/extent-io-tree.c:1607
 qgroup_reserve_data+0x214/0x90c fs/btrfs/qgroup.c:3781
 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3824
 btrfs_check_data_free_space+0x130/0x20c fs/btrfs/delalloc-space.c:152
 btrfs_buffered_write+0x4ac/0xfec fs/btrfs/file.c:1242
 btrfs_do_write_iter+0x348/0xf80 fs/btrfs/file.c:1678
 btrfs_file_write_iter+0x2c/0x3c fs/btrfs/file.c:1699
 call_write_iter include/linux/fs.h:2205 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x610/0x914 fs/read_write.c:584
 ksys_write+0x15c/0x26c fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __arm64_sys_write+0x7c/0x90 fs/read_write.c:646
 __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
Code: aa1903e0 97990a10 17ffffa0 978728e4 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/05 18:32 linux-6.1.y 4a61839152cc 500bfdc4 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/05/27 22:53 linux-6.1.y a343b0dd87b4 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/11/05 18:12 linux-6.1.y 4a61839152cc 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/08/17 21:06 linux-6.1.y 6c44e13dc284 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/07/07 14:43 linux-6.1.y 61fd484b2cf6 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/06/24 15:04 linux-6.1.y e84a4e368abe 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/06/22 09:57 linux-6.1.y e84a4e368abe 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/05/27 22:35 linux-6.1.y a343b0dd87b4 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/05/27 22:35 linux-6.1.y a343b0dd87b4 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/04/25 07:58 linux-6.1.y f17b0ab65d17 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/04/22 18:47 linux-6.1.y f17b0ab65d17 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/04/21 23:42 linux-6.1.y f17b0ab65d17 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/04/14 21:56 linux-6.1.y 0102425ac76b ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2023/04/08 08:39 linux-6.1.y 543aff194ab6 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
* Struck through repros no longer work on HEAD.