syzbot


kernel BUG in set_extent_bit

Status: upstream: reported C repro on 2024/08/03 22:02
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+b3393a0771fee844d1d0@syzkaller.appspotmail.com
First crash: 139d, last: 1d02h
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: kernel BUG in set_extent_bit (log)
Repro: C syz .config
  
Bug presence (2)
Date Name Commit Repro Result
2024/08/04 linux-5.15.y (ToT) 7e89efd3ae1c C [report] kernel BUG in set_extent_bit
2024/08/04 upstream (ToT) defaf1a2113a C Didn't crash
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/12/20 09:16 9m retest repro linux-5.15.y report log
2024/11/17 01:40 10m retest repro linux-5.15.y report log
2024/10/25 22:17 11m retest repro linux-5.15.y report log
2024/10/11 06:45 9m retest repro linux-5.15.y report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2024/10/15 00:15 0m fix candidate upstream error job log
2024/09/07 21:52 1h38m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
RAX: ffffffffffffffda RBX: 00007f7990772728 RCX: 00007f79906ed2b9
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00007f7990772720 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000002000 R11: 0000000000000246 R12: 00007f799073f880
R13: 00007f7990660210 R14: 0000000000000001 R15: 0030656c69662f2e
 </TASK>
------------[ cut here ]------------
kernel BUG at fs/btrfs/extent_io.c:1163!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3613 Comm: syz-executor325 Not tainted 5.15.164-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:set_extent_bit+0x15e8/0x15f0 fs/btrfs/extent_io.c:1163
Code: fe 48 8b 7c 24 18 89 de e8 65 e4 ff ff e8 c0 d4 18 fe 0f 0b e9 cc fe ff ff e8 b4 d4 18 fe e8 07 00 99 fd eb c1 e8 a8 d4 18 fe <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28
RSP: 0018:ffffc900030675e0 EFLAGS: 00010293
RAX: ffffffff83678cb8 RBX: 0000000000000000 RCX: ffff888018a09dc0
RDX: 0000000000000000 RSI: ffffffff8ad8f7e0 RDI: ffffffff8ad8f7a0
RBP: ffffc90003067718 R08: 00000000000000c8 R09: fffffbfff193ec07
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: dffffc0000000000 R14: 000000000001a000 R15: dffffc0000000000
FS:  00007f79906606c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f799065ffe8 CR3: 0000000073a6d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lock_extent_bits+0xc9/0x1e0 fs/btrfs/extent_io.c:1465
 lock_and_cleanup_extent_if_need+0x10b/0x6f0 fs/btrfs/file.c:1458
 btrfs_buffered_write+0x768/0x1270 fs/btrfs/file.c:1779
 btrfs_direct_write fs/btrfs/file.c:2038 [inline]
 btrfs_file_write_iter+0x975/0xc60 fs/btrfs/file.c:2086
 do_iter_readv_writev+0x594/0x7a0
 do_iter_write+0x1e6/0x760 fs/read_write.c:855
 vfs_writev fs/read_write.c:928 [inline]
 do_pwritev+0x219/0x360 fs/read_write.c:1025
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f79906ed2b9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 1b 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f79906601f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f7990772728 RCX: 00007f79906ed2b9
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000004
RBP: 00007f7990772720 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000002000 R11: 0000000000000246 R12: 00007f799073f880
R13: 00007f7990660210 R14: 0000000000000001 R15: 0030656c69662f2e
 </TASK>
Modules linked in:
---[ end trace 84c13ff248fc201f ]---
RIP: 0010:set_extent_bit+0x15e8/0x15f0 fs/btrfs/extent_io.c:1163
Code: fe 48 8b 7c 24 18 89 de e8 65 e4 ff ff e8 c0 d4 18 fe 0f 0b e9 cc fe ff ff e8 b4 d4 18 fe e8 07 00 99 fd eb c1 e8 a8 d4 18 fe <0f> 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 28
RSP: 0018:ffffc900030675e0 EFLAGS: 00010293
RAX: ffffffff83678cb8 RBX: 0000000000000000 RCX: ffff888018a09dc0
RDX: 0000000000000000 RSI: ffffffff8ad8f7e0 RDI: ffffffff8ad8f7a0
RBP: ffffc90003067718 R08: 00000000000000c8 R09: fffffbfff193ec07
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000002
R13: dffffc0000000000 R14: 000000000001a000 R15: dffffc0000000000
FS:  00007f79906606c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f799065ffe8 CR3: 0000000073a6d000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/04 01:49 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in set_extent_bit
2024/08/04 00:19 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in set_extent_bit
2024/08/03 23:35 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in set_extent_bit
2024/08/03 22:01 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in set_extent_bit
* Struck through repros no longer work on HEAD.