syzbot


kernel BUG in __set_extent_bit

Status: upstream: reported C repro on 2023/01/11 10:51
Subsystems: btrfs
[Documentation on labels]
Reported-by: syzbot+89700d262ed1fb9f9351@syzkaller.appspotmail.com
First crash: 724d, last: 132d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: the issue occurs on the latest tested release (bisect log)
  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [btrfs?] kernel BUG in __set_extent_bit 1 (2) 2024/05/16 15:15
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 kernel BUG in __set_extent_bit origin:upstream C error 5 82d 567d 0/3 upstream: reported C repro on 2023/05/14 15:41
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/11/21 17:56 12m retest repro upstream report log
2024/10/22 01:46 15m retest repro upstream report log
2024/10/01 08:35 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/10/01 08:35 36m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/10/01 07:33 18m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
2024/09/12 14:28 11m retest repro upstream report log
2024/08/29 07:15 23m retest repro upstream OK log
2024/08/13 00:50 17m retest repro upstream report log
2024/08/13 00:50 29m retest repro upstream OK log
2024/07/23 07:04 19m retest repro git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2024/04/11 22:37 3h14m bisect fix upstream OK (0) job log
2023/08/19 02:25 3h04m bisect fix upstream OK (0) job log log
2023/03/25 12:20 44m bisect fix upstream OK (0) job log log
Cause bisection attempts (2)
Created Duration User Patch Repo Result
2023/08/04 03:51 12h01m bisect upstream error job log
2023/01/11 22:59 8h11m bisect upstream error job log
marked invalid by nogikh@google.com

Sample crash report:
R10: 0000000000000002 R11: 0000000000000246 R12: 00007ffdf425f78c
R13: 0000000000000002 R14: 431bde82d7b634db R15: 00007ffdf425f7d0
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:379!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5077 Comm: syz-executor134 Not tainted 6.6.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:379 [inline]
RIP: 0010:__set_extent_bit+0x188d/0x1b00 fs/btrfs/extent-io-tree.c:1057
Code: 30 fe e9 db fc ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c ff fd ff ff 4c 89 e7 e8 8d 9b 30 fe e9 f2 fd ff ff e8 93 1f d6 fd <0f> 0b e8 8c 1f d6 fd 48 8b 44 24 18 48 83 c0 08 48 89 c3 48 c1 e8
RSP: 0018:ffffc900043cf5d8 EFLAGS: 00010293
RAX: ffffffff83b7ec1d RBX: 00000000fffffff4 RCX: ffff88802520bb80
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffff88807eb5a7fc R08: ffffffff83b7da39 R09: 1ffffffff1a84df6
R10: dffffc0000000000 R11: fffffbfff1a84df7 R12: ffff88807eb5a7fc
R13: ffff88807eb5a780 R14: 0000000000000000 R15: 1ffff1100fd6b4ff
FS:  000055555571f380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffc35ccb58 CR3: 000000007718e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 set_record_extent_bits+0x51/0x90 fs/btrfs/extent-io-tree.c:1705
 qgroup_reserve_data+0x260/0x8e0 fs/btrfs/qgroup.c:3803
 btrfs_qgroup_reserve_data+0x2e/0xc0 fs/btrfs/qgroup.c:3846
 btrfs_fallocate+0x12f8/0x1fe0 fs/btrfs/file.c:3142
 vfs_fallocate+0x551/0x6b0 fs/open.c:324
 do_vfs_ioctl+0x22da/0x2b40 fs/ioctl.c:850
 __do_sys_ioctl fs/ioctl.c:869 [inline]
 __se_sys_ioctl+0x81/0x170 fs/ioctl.c:857
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fbe40e492a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 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:00007ffdf425f768 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffdf425f790 RCX: 00007fbe40e492a9
RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 0000000000000002 R08: 00007ffdf425f506 R09: 00007ffdf425f7b0
R10: 0000000000000002 R11: 0000000000000246 R12: 00007ffdf425f78c
R13: 0000000000000002 R14: 431bde82d7b634db R15: 00007ffdf425f7d0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:379 [inline]
RIP: 0010:__set_extent_bit+0x188d/0x1b00 fs/btrfs/extent-io-tree.c:1057
Code: 30 fe e9 db fc ff ff 44 89 e1 80 e1 07 80 c1 03 38 c1 0f 8c ff fd ff ff 4c 89 e7 e8 8d 9b 30 fe e9 f2 fd ff ff e8 93 1f d6 fd <0f> 0b e8 8c 1f d6 fd 48 8b 44 24 18 48 83 c0 08 48 89 c3 48 c1 e8
RSP: 0018:ffffc900043cf5d8 EFLAGS: 00010293
RAX: ffffffff83b7ec1d RBX: 00000000fffffff4 RCX: ffff88802520bb80
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: ffff88807eb5a7fc R08: ffffffff83b7da39 R09: 1ffffffff1a84df6
R10: dffffc0000000000 R11: fffffbfff1a84df7 R12: ffff88807eb5a7fc
R13: ffff88807eb5a780 R14: 0000000000000000 R15: 1ffff1100fd6b4ff
FS:  000055555571f380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fffc35ccb58 CR3: 000000007718e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (38):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/02 11:46 upstream 8a749fd1a872 8e26a358 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in __set_extent_bit
2023/05/14 16:36 upstream bb7c241fae62 2b9ba477 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/12/10 17:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d46efae31672 28b24332 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/05/14 14:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/01/11 10:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 358a161a6a9e 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/07/13 10:49 upstream eb26cbb1a754 86081196 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in __set_extent_bit
2023/01/11 16:34 upstream 7dd4b804e080 96166539 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in __set_extent_bit
2024/02/19 04:24 upstream b401b621758e 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/12/10 10:04 upstream b10a3ccaf6e3 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/06/18 14:58 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/05/17 23:44 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/04/15 03:40 upstream 95abc817ab3a ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/02/14 16:13 upstream f6feea56f66d 93ae7e0a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/02/03 21:40 upstream 66a87fff1a87 1b2f701a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/01/30 23:07 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2023/01/30 17:48 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in __set_extent_bit
2024/03/10 12:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2024/03/09 08:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 96d142e7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2024/02/06 15:56 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 41bccc98fb79 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2024/01/27 17:48 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 __set_extent_bit
2024/01/27 14:08 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 __set_extent_bit
2024/01/26 06:10 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 __set_extent_bit
2024/01/11 21:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 0802e17d9aca 00f3cc59 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/12/27 22:06 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 __set_extent_bit
2023/12/11 13:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d46efae31672 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/12/08 05:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d46efae31672 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/11/02 09:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 8de1e7afcc1c 69904c9f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/09/08 00:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe4469582053 72324844 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/06/13 14:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d8b213732169 749afb64 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/05/14 14:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/04/18 01:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 327bf9bb94cf 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/02/23 12:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a9b06ec42c0f 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/02/16 19:11 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 7338e3c4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/02/11 02:39 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2d3827b3f393 95871dcc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/02/06 12:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci ca72d58361ee be607b78 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/01/27 02:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1dc22be1f91f 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2023/01/11 10:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 358a161a6a9e 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
2022/12/08 15:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in __set_extent_bit
* Struck through repros no longer work on HEAD.