syzbot


kernel BUG in __set_extent_bit

Status: upstream: reported C repro on 2023/05/14 15:41
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+3b79bced38bcd18c108b@syzkaller.appspotmail.com
First crash: 348d, last: 9d10h
Bug presence (2)
Date Name Commit Repro Result
2024/01/02 upstream (ToT) 610a9b8f49fb C [report] kernel BUG in __set_extent_bit
2024/04/15 upstream (ToT) cef27048e5c2 C Failed due to an error; will retry later
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in __set_extent_bit btrfs C error inconclusive 38 47d 471d 0/26 upstream: reported C repro on 2023/01/11 10:51
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2024/04/17 04:23 1h38m bisect fix linux-6.1.y job log (0) log
2024/03/13 22:07 1h29m bisect fix linux-6.1.y job log (0) log
2024/02/08 23:10 1h15m bisect fix linux-6.1.y job log (0) log
2024/01/02 01:48 1h22m bisect fix linux-6.1.y job log (0) log
2023/11/26 06:01 1h26m bisect fix linux-6.1.y job log (0) log
2023/10/25 05:23 1h15m bisect fix linux-6.1.y job log (0) log
2023/09/20 02:16 1h17m bisect fix linux-6.1.y job log (0) log
2023/06/13 20:01 45m bisect fix linux-6.1.y job log (0) log

Sample crash report:
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe024d0a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f74f76abac9
RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007fffe024d0d0 R08: 0000000000000002 R09: 00007fffe024d0e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007fffe024d110 R14: 00007fffe024d0f0 R15: 0000000000000003
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent-io-tree.c:381!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 3629 Comm: syz-executor412 Not tainted 6.1.34-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
RIP: 0010:__set_extent_bit+0x1674/0x18c0 fs/btrfs/extent-io-tree.c:1022
Code: 6b 33 fe e9 27 ea ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 27 fe ff ff 48 89 df e8 f6 6a 33 fe e9 1a fe ff ff e8 fc 21 dd fd <0f> 0b e8 f5 21 dd fd 48 8b 44 24 08 48 83 c0 08 48 89 c3 48 c1 e8
RSP: 0018:ffffc90003fcf5e8 EFLAGS: 00010293
RAX: ffffffff83acb354 RBX: 00000000fffffff4 RCX: ffff88801bbc0000
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff83aca404 R09: fffffbfff1a02fa7
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071ec4cc0
R13: ffff888071ec4d3c R14: 1ffff1100e3d89a7 R15: 0000000000000fff
FS:  0000555556d5e300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056438ef9b868 CR3: 000000007ece8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 set_record_extent_bits+0x50/0x80 fs/btrfs/extent-io-tree.c:1607
 qgroup_reserve_data+0x26e/0x960 fs/btrfs/qgroup.c:3767
 btrfs_qgroup_reserve_data+0x2a/0xc0 fs/btrfs/qgroup.c:3810
 btrfs_fallocate+0x1264/0x1f60 fs/btrfs/file.c:3134
 vfs_fallocate+0x547/0x6b0 fs/open.c:323
 do_vfs_ioctl+0x222c/0x2a90 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl+0x81/0x160 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f74f76abac9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe024d0a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f74f76abac9
RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007fffe024d0d0 R08: 0000000000000002 R09: 00007fffe024d0e0
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006
R13: 00007fffe024d110 R14: 00007fffe024d0f0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:set_state_bits fs/btrfs/extent-io-tree.c:381 [inline]
RIP: 0010:__set_extent_bit+0x1674/0x18c0 fs/btrfs/extent-io-tree.c:1022
Code: 6b 33 fe e9 27 ea ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 27 fe ff ff 48 89 df e8 f6 6a 33 fe e9 1a fe ff ff e8 fc 21 dd fd <0f> 0b e8 f5 21 dd fd 48 8b 44 24 08 48 83 c0 08 48 89 c3 48 c1 e8
RSP: 0018:ffffc90003fcf5e8 EFLAGS: 00010293
RAX: ffffffff83acb354 RBX: 00000000fffffff4 RCX: ffff88801bbc0000
RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff83aca404 R09: fffffbfff1a02fa7
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888071ec4cc0
R13: ffff888071ec4d3c R14: 1ffff1100e3d89a7 R15: 0000000000000fff
FS:  0000555556d5e300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056438ef9b868 CR3: 000000007ece8000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	28 00                	sub    %al,(%rax)
   2:	00 00                	add    %al,(%rax)
   4:	75 05                	jne    0xb
   6:	48 83 c4 28          	add    $0x28,%rsp
   a:	c3                   	retq
   b:	e8 11 15 00 00       	callq  0x1521
  10:	90                   	nop
  11:	48 89 f8             	mov    %rdi,%rax
  14:	48 89 f7             	mov    %rsi,%rdi
  17:	48 89 d6             	mov    %rdx,%rsi
  1a:	48 89 ca             	mov    %rcx,%rdx
  1d:	4d 89 c2             	mov    %r8,%r10
  20:	4d 89 c8             	mov    %r9,%r8
  23:	4c 8b 4c 24 08       	mov    0x8(%rsp),%r9
  28:	0f 05                	syscall
* 2a:	48 3d 01 f0 ff ff    	cmp    $0xfffffffffffff001,%rax <-- trapping instruction
  30:	73 01                	jae    0x33
  32:	c3                   	retq
  33:	48 c7 c1 c0 ff ff ff 	mov    $0xffffffffffffffc0,%rcx
  3a:	f7 d8                	neg    %eax
  3c:	64 89 01             	mov    %eax,%fs:(%rcx)
  3f:	48                   	rex.W

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/17 21:06 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in __set_extent_bit
2023/12/02 08:01 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in __set_extent_bit
2023/05/14 15:41 linux-6.1.y bf4ad6fa4e53 2b9ba477 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in __set_extent_bit
2023/12/02 07:36 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in __set_extent_bit
2023/07/09 02:14 linux-6.1.y 61fd484b2cf6 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in __set_extent_bit
* Struck through repros no longer work on HEAD.