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: 877d, last: 11d
Fix bisection: failed (error log, bisect log)
  
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 Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in insert_state_fast btrfs -1 C done done 151 388d 1006d 0/29 upstream: reported C repro on 2022/11/29 21:10
Fix bisection attempts (13)
Created Duration User Patch Repo Result
2025/02/18 05:37 13m bisect fix linux-6.1.y error job log
2025/01/18 15:25 1h31m bisect fix linux-6.1.y OK (0) job log log
2024/10/19 02:03 3h01m bisect fix linux-6.1.y OK (0) job log log
2024/09/17 11:10 2h00m bisect fix linux-6.1.y OK (0) job log log
2024/08/13 07:30 2h26m bisect fix linux-6.1.y OK (0) job log log
2024/07/01 19:28 2h56m bisect fix linux-6.1.y OK (0) job log log
2024/05/23 14:25 1h16m bisect fix linux-6.1.y OK (0) job log log
2024/04/19 12:59 1h40m bisect fix linux-6.1.y OK (0) job log log
2024/03/17 03:22 1h43m bisect fix linux-6.1.y OK (0) job log log
2024/02/12 00:29 1h29m bisect fix linux-6.1.y OK (0) job log log
2024/01/05 08:01 1h26m bisect fix linux-6.1.y OK (0) job log log
2023/12/06 03:39 1h19m bisect fix linux-6.1.y OK (0) job log log
2023/10/09 01:10 1h35m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x138 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: 1 PID: 4465 Comm: syz.0.17 Not tainted 6.1.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025
pstate: 82400005 (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 : ffff800020e770a0
x29: ffff800020e770a0 x28: ffff0000e9ad8a60 x27: 0000000000000000
x26: dfff800000000000 x25: 0000000000000fff x24: 00000000fffffff4
x23: 0000000000001000 x22: 0000000000000000 x21: ffff0000e9ad8a60
x20: ffff0000e9ad8a60 x19: ffff0000d2d30e40 x18: 0000000000000000
x17: 0000000000000000 x16: ffff8000082d2370 x15: 0000000000000000
x14: 00000000ffffffff x13: 0000000000000001 x12: 0000000000ff0100
x11: ff0080000a149658 x10: 0000000000000000 x9 : ffff80000a149658
x8 : ffff0000d0d69bc0 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+0x1388/0x18f8 fs/btrfs/extent-io-tree.c:1000
 set_record_extent_bits+0x68/0x98 fs/btrfs/extent-io-tree.c:1607
 qgroup_reserve_data+0x20c/0x8a4 fs/btrfs/qgroup.c:3795
 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3838
 btrfs_check_data_free_space+0x12c/0x208 fs/btrfs/delalloc-space.c:152
 btrfs_delalloc_reserve_space+0x4c/0x1ec fs/btrfs/delalloc-space.c:470
 btrfs_page_mkwrite+0x32c/0xb78 fs/btrfs/inode.c:8599
 do_page_mkwrite+0x13c/0x358 mm/memory.c:3011
 wp_page_shared+0x148/0x550 mm/memory.c:3360
 do_wp_page+0xca0/0xef0 mm/memory.c:3510
 handle_pte_fault mm/memory.c:5049 [inline]
 __handle_mm_fault mm/memory.c:5173 [inline]
 handle_mm_fault+0x133c/0x2fd4 mm/memory.c:5294
 __do_page_fault arch/arm64/mm/fault.c:499 [inline]
 do_page_fault+0x310/0x99c arch/arm64/mm/fault.c:583
 do_mem_abort+0x70/0x194 arch/arm64/mm/fault.c:803
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367
 el1h_64_sync_handler+0x80/0xcc arch/arm64/kernel/entry-common.c:427
 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:580
 __uaccess_mask_ptr arch/arm64/include/asm/uaccess.h:217 [inline]
 move_addr_to_user+0x2d0/0x40c net/socket.c:297
 __sys_getsockname+0x1d0/0x278 net/socket.c:2065
 __do_sys_getsockname net/socket.c:2076 [inline]
 __se_sys_getsockname net/socket.c:2073 [inline]
 __arm64_sys_getsockname+0x7c/0x94 net/socket.c:2073
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x138 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 979e342e 17ffffa0 978d613c (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/17 13:38 linux-6.1.y 0bc96de781b4 1804e95e .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2025/03/31 07:00 linux-6.1.y 8e60a714ba3b d3999433 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2024/11/04 01:20 linux-6.1.y 7c15117f9468 f00eed24 .config console log report syz / log 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: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
2025/08/21 09:46 linux-6.1.y 0bc96de781b4 0b9605c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2025/08/17 13:08 linux-6.1.y 0bc96de781b4 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2025/04/02 23:39 linux-6.1.y 8e60a714ba3b c799dfdd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2025/03/31 06:26 linux-6.1.y 8e60a714ba3b d3999433 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2024/12/08 02:19 linux-6.1.y e4d90d63d385 9ac0fdc6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in insert_state_fast
2024/11/04 00:41 linux-6.1.y 7c15117f9468 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] 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.