syzbot


kernel BUG in insert_state_fast

Status: upstream: reported C repro on 2022/11/29 21:10
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+9ce4a36127ca92b59677@syzkaller.appspotmail.com
First crash: 462d, last: 1d00h
Cause bisection: introduced by (bisect log) :
commit 05fd9564e9faf0f23b4676385e27d9405cef6637
Author: Darrick J. Wong <djwong@kernel.org>
Date: Mon Mar 14 17:55:32 2022 +0000

  btrfs: fix fallocate to use file_modified to update permissions consistently

Crash: kernel BUG in set_state_bits (log)
Repro: C syz .config
  
Discussions (5)
Title Replies (including bot) Last reply
[syzbot] Monthly btrfs report (Feb 2024) 2 (3) 2024/02/12 12:15
[syzbot] Monthly btrfs report (Jan 2024) 0 (1) 2024/01/10 09:16
[syzbot] Monthly btrfs report (Dec 2023) 0 (1) 2023/12/06 10:05
[syzbot] Monthly btrfs report (Oct 2023) 0 (1) 2023/10/04 14:48
[syzbot] kernel BUG in insert_state_fast 0 (2) 2023/01/05 19:31
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in insert_state_fast origin:upstream C 14 18d 328d 0/3 upstream: reported C repro on 2023/04/08 08:40
Last patch testing requests (7)
Created Duration User Patch Repo Result
2023/10/16 04:07 14m retest repro upstream report log
2023/10/16 04:07 15m retest repro upstream report log
2023/10/16 04:07 14m retest repro upstream report log
2023/09/10 11:45 14m retest repro upstream report log
2023/09/10 11:45 13m retest repro upstream report log
2023/09/10 11:45 14m retest repro upstream report log
2023/09/10 11:45 9m retest repro upstream report log

Sample crash report:
R10: 0000000000000001 R11: 0000000000000246 R12: 00007fffbcd7ed50
R13: 00007fffbcd7ef78 R14: 431bde82d7b634db R15: 00007f87d08f601d
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:419!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 5064 Comm: syz-executor237 Not tainted 6.8.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:419 [inline]
RIP: 0010:insert_state_fast+0x29a/0x2a0 fs/btrfs/extent-io-tree.c:503
Code: fe e9 59 ff ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 4f fe ff ff 4c 89 e7 e8 81 da 29 fe e9 42 fe ff ff e8 17 04 cb fd 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000447f648 EFLAGS: 00010293
RAX: ffffffff83c86839 RBX: dffffc0000000000 RCX: ffff88807c8ebb80
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 00000000fffffff4 R08: ffffffff83c86738 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c462a3 R12: 0000000000000000
R13: ffff88802d9db608 R14: ffff888021fb30d0 R15: 0000000000000800
FS:  00005555567a6380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffefb0f4fb8 CR3: 0000000024e22000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __set_extent_bit+0x14e9/0x1de0 fs/btrfs/extent-io-tree.c:1106
 set_record_extent_bits+0x51/0x90 fs/btrfs/extent-io-tree.c:1818
 qgroup_reserve_data+0x27c/0x8b0 fs/btrfs/qgroup.c:4019
 btrfs_qgroup_reserve_data+0x2e/0xb0 fs/btrfs/qgroup.c:4062
 btrfs_check_data_free_space+0x149/0x240 fs/btrfs/delalloc-space.c:154
 btrfs_buffered_write+0x5c6/0x1380 fs/btrfs/file.c:1258
 btrfs_do_write_iter+0x2bb/0x1190 fs/btrfs/file.c:1690
 call_write_iter include/linux/fs.h:2087 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa81/0xcb0 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 do_syscall_64+0xf9/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f87d08aced9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffbcd7ed18 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fffbcd7ed30 RCX: 00007f87d08aced9
RDX: 0000000000000002 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 0000000000000001 R08: 00007fffbcd7eab7 R09: 00005555567a7378
R10: 0000000000000001 R11: 0000000000000246 R12: 00007fffbcd7ed50
R13: 00007fffbcd7ef78 R14: 431bde82d7b634db R15: 00007f87d08f601d
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:419 [inline]
RIP: 0010:insert_state_fast+0x29a/0x2a0 fs/btrfs/extent-io-tree.c:503
Code: fe e9 59 ff ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c 4f fe ff ff 4c 89 e7 e8 81 da 29 fe e9 42 fe ff ff e8 17 04 cb fd 90 <0f> 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000447f648 EFLAGS: 00010293
RAX: ffffffff83c86839 RBX: dffffc0000000000 RCX: ffff88807c8ebb80
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 00000000fffffff4 R08: ffffffff83c86738 R09: 00000000ffffffff
R10: dffffc0000000000 R11: fffffbfff1c462a3 R12: 0000000000000000
R13: ffff88802d9db608 R14: ffff888021fb30d0 R15: 0000000000000800
FS:  00005555567a6380(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffefb0f4fb8 CR3: 0000000024e22000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (142):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/27 02:10 upstream d206a76d7d27 da36a36b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2023/11/10 04:36 upstream 4bbdb725a36b 56230772 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2023/11/04 09:12 upstream 6bdfe2d88b9f 500bfdc4 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2023/10/26 05:17 upstream 611da07b89fd 72e794c4 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2023/07/11 08:03 upstream 3f01e9fed845 52ae002a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in insert_state_fast
2023/03/23 13:22 upstream fff5a5e7f528 f94b4a29 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in insert_state_fast
2023/03/20 06:28 upstream 5cdfdd6da323 7939252e .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in insert_state_fast
2023/03/06 00:25 upstream f915322fe014 f8902b57 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2023/01/09 16:36 upstream 1fe4fd6f5cad 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2022/11/27 02:48 upstream 644e9524388a f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2022/11/25 21:57 upstream 08ad43d554ba f4470a7b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in insert_state_fast
2023/11/24 23:16 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 5b429f39 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/11/09 14:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 4862372a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/10/26 02:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 850ffb9bb2bd 72e794c4 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/05/27 23:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci eb0f1697d729 cf184559 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/01/09 16:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ae87308093bc 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/29 21:53 upstream 805d849d7c3c 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/02/27 08:24 upstream 45ec2f5f6ed3 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/02/16 00:01 upstream 4f5e5092fdbf fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/02/11 06:59 upstream a5b6244cf87c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/02/11 01:43 upstream a5b6244cf87c 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/02/10 21:18 upstream 4a7bbe7519b6 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/02/07 03:54 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/01/17 13:05 upstream 052d534373b7 c9a1c95b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/01/15 00:21 upstream 052d534373b7 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in insert_state_fast
2024/01/12 02:47 upstream 3e7aeb78ab01 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in insert_state_fast
2024/01/10 04:35 upstream 6c1dd1fe5d8a b438bd66 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root kernel BUG in insert_state_fast
2024/01/08 00:06 upstream 0dd3ee311255 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/01/06 11:51 upstream a4ab2706bb12 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/30 15:48 upstream f016f7547aee fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/29 17:26 upstream 8735c7c84d1b fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/20 15:15 upstream 55cb5f43689d 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/20 00:06 upstream 55cb5f43689d 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/16 20:19 upstream c8e97fc6b4c0 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/06 16:24 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/06 10:44 upstream bee0e7762ad2 858d62d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/02 06:51 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/12/01 16:00 upstream 994d5c58e50e f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2023/11/25 23:21 upstream b46ae77f6787 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2022/11/25 20:58 upstream 08ad43d554ba f4470a7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in insert_state_fast
2024/03/01 01:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 381f163531d8 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/27 16:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/24 17:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9abbc24128bc 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/21 19:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e6ac7c55d3ec 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/20 10:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 83d49ede4b18 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/20 06:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 83d49ede4b18 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/19 06:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 905b00721763 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/19 02:09 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 905b00721763 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/17 21:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 905b00721763 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/17 06:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 905b00721763 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/02/06 05:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 41bccc98fb79 4e988e80 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/01/28 16:54 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/01/26 10:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/01/21 01:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 9bd8dcda .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2024/01/08 04:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/28 06:55 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/27 14:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/23 16:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/19 16:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aafe7ad77b91 3ad490ea .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/18 06:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0bcda4cd6851 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/18 04:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0bcda4cd6851 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
2023/12/05 21:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d46efae31672 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in insert_state_fast
* Struck through repros no longer work on HEAD.