syzbot


kernel BUG in set_state_bits

Status: upstream: reported C repro on 2023/04/03 19:24
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+ad704c01c5da34051e01@syzkaller.appspotmail.com
First crash: 732d, last: 6d09h
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/05/28 upstream (ToT) 416839029e38 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 set_state_bits btrfs C done done 97 272d 855d 0/28 upstream: reported C repro on 2022/12/01 12:20
Last patch testing requests (8)
Created Duration User Patch Repo Result
2025/03/29 10:41 12m retest repro linux-5.15.y report log
2025/03/29 10:41 14m retest repro linux-5.15.y report log
2025/03/29 10:41 11m retest repro linux-5.15.y report log
2025/03/29 10:41 27m retest repro linux-5.15.y report log
2025/02/08 21:16 11m retest repro linux-5.15.y report log
2024/12/28 00:10 13m retest repro linux-5.15.y report log
2024/12/28 00:10 22m retest repro linux-5.15.y report log
2024/12/28 00:10 10m retest repro linux-5.15.y report log

Sample crash report:
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent_io.c:939!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 4026 Comm: syz-executor615 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939
lr : set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939
sp : ffff80001df37120
x29: ffff80001df37120 x28: 0000000000000000 x27: 0000000000001000
x26: dfff800000000000 x25: 0000000000000001 x24: 0000000000000104
x23: 0000000000000000 x22: 0000000000000fff x21: 0000000000001000
x20: 00000000fffffff4 x19: ffff0000c7a0e578 x18: 0000000000000002
x17: 0000000000000000 x16: ffff800011b4e3fc x15: 00000000ffffffff
x14: ffff0000c958b680 x13: 0000000000000001 x12: 0000000000000001
x11: 0000000000000001 x10: 0000000000000000 x9 : ffff0000c958b680
x8 : ffff80000a12b600 x7 : 0000000000000000 x6 : 0000000000000001
x5 : ffff80001df36538 x4 : 0000000000000100 x3 : 0000000000000a20
x2 : 0000000000000038 x1 : 00000000fffffff4 x0 : 0000000000000000
Call trace:
 set_state_bits+0x370/0x374 fs/btrfs/extent_io.c:939
 set_extent_bit+0x47c/0x1464 fs/btrfs/extent_io.c:1049
 set_record_extent_bits+0x70/0x94 fs/btrfs/extent_io.c:1422
 qgroup_reserve_data+0x214/0x878 fs/btrfs/qgroup.c:3727
 btrfs_qgroup_reserve_data+0x40/0xec fs/btrfs/qgroup.c:3770
 btrfs_check_data_free_space+0x208/0x2f4 fs/btrfs/delalloc-space.c:145
 btrfs_delalloc_reserve_space+0x48/0x1e0 fs/btrfs/delalloc-space.c:451
 btrfs_page_mkwrite+0x3f4/0xde8 fs/btrfs/inode.c:8937
 do_page_mkwrite+0x144/0x37c mm/memory.c:2920
 wp_page_shared+0x14c/0x398 mm/memory.c:3257
 do_wp_page+0x7cc/0x9c4 mm/memory.c:3358
 handle_pte_fault mm/memory.c:4666 [inline]
 __handle_mm_fault mm/memory.c:4783 [inline]
 handle_mm_fault+0x1bdc/0x33a8 mm/memory.c:4881
 __do_page_fault arch/arm64/mm/fault.c:505 [inline]
 do_page_fault+0x700/0xb60 arch/arm64/mm/fault.c:605
 do_mem_abort+0x70/0x1d8 arch/arm64/mm/fault.c:819
 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:358
 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:418
 el1h_64_sync+0x78/0x7c arch/arm64/kernel/entry.S:522
 __arch_copy_to_user+0xbc/0x218 arch/arm64/lib/copy_template.S:111
 __do_sys_pipe2 fs/pipe.c:1032 [inline]
 __se_sys_pipe2 fs/pipe.c:1030 [inline]
 __arm64_sys_pipe2+0x5c/0x74 fs/pipe.c:1030
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: 979ea7bd f9400fa8 17ffff54 978e63ab (d4210000) 
---[ end trace 2f67877bff0a1e7c ]---

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/03 05:29 linux-5.15.y c16c81c81336 c3901742 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2024/11/16 19:59 linux-5.15.y d98fd109f827 cfe3a04a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2024/07/14 23:45 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/10/11 10:53 linux-5.15.y 02e21884dcf2 83165b57 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/05/28 02:20 linux-5.15.y 1fe619a7d252 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2025/03/14 18:40 linux-5.15.y 0c935c049b5c e2826670 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2025/03/08 06:26 linux-5.15.y c16c81c81336 7e3bd60d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2025/03/03 04:48 linux-5.15.y c16c81c81336 c3901742 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2025/02/23 00:33 linux-5.15.y c16c81c81336 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2024/11/16 19:20 linux-5.15.y d98fd109f827 cfe3a04a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2024/09/01 16:13 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2024/07/14 22:41 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/10/11 05:43 linux-5.15.y 02e21884dcf2 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/08/12 07:47 linux-5.15.y 24c4de4069cb 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/06/23 22:19 linux-5.15.y f67653019430 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/04/20 06:34 linux-5.15.y 4fdad925aa1a a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/04/14 03:07 linux-5.15.y 4fdad925aa1a 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
2023/04/03 19:24 linux-5.15.y c957cbb87315 41147e3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in set_state_bits
* Struck through repros no longer work on HEAD.