syzbot


WARNING in btrfs_replace_file_extents

Status: upstream: reported C repro on 2023/04/10 02:43
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+72c30bbc638e9af84f61@syzkaller.appspotmail.com
First crash: 553d, last: 1d21h
Bug presence (2)
Date Name Commit Repro Result
2023/05/21 linux-5.15.y (ToT) 9d6bde853685 C [report] WARNING in btrfs_replace_file_extents
2023/05/21 upstream (ToT) 0dd2a6fb1e34 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in btrfs_replace_file_extents btrfs syz error error 2 708d 708d 0/28 auto-obsoleted due to no activity on 2023/05/14 20:31
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/10/12 20:33 12m retest repro linux-5.15.y report log
2024/10/12 20:33 13m retest repro linux-5.15.y report log
2024/10/12 20:33 16m retest repro linux-5.15.y report log
2024/10/12 20:33 13m retest repro linux-5.15.y report log
Fix bisection attempts (8)
Created Duration User Patch Repo Result
2024/08/14 09:11 1m fix candidate upstream error job log
2024/05/17 11:58 3m fix candidate upstream error job log
2024/03/20 17:22 1m fix candidate upstream error job log
2024/02/09 03:07 3m fix candidate upstream error job log
2023/12/30 19:35 0m fix candidate upstream error job log
2023/11/24 09:39 1m fix candidate upstream error job log
2023/10/11 15:05 0m fix candidate upstream error job log
2023/08/25 04:43 18m fix candidate upstream error job log

Sample crash report:
RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007ffdab7dab30 R08: 0000000000000002 R09: 00007ffdab7dab40
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffdab7dab70 R14: 00007ffdab7dab50 R15: 0000000000000005
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3610 at fs/btrfs/file.c:2958 btrfs_replace_file_extents+0x11d7/0x17f0 fs/btrfs/file.c:2958
Modules linked in:
CPU: 0 PID: 3610 Comm: syz-executor163 Not tainted 5.15.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:btrfs_replace_file_extents+0x11d7/0x17f0 fs/btrfs/file.c:2958
Code: e8 8e 94 1d fe 4c 8b 6c 24 08 0f 1f 44 00 00 e8 7f 94 1d fe eb 16 e8 78 94 1d fe 48 c7 c7 40 cd c9 8a 44 89 e6 e8 d9 67 e9 fd <0f> 0b 4c 89 ef 48 c7 c6 20 cf c9 8a ba 8e 0b 00 00 44 89 e1 e8 b4
RSP: 0018:ffffc9000327f2e0 EFLAGS: 00010246
RAX: bd1c8b068abe5700 RBX: 0000000000000000 RCX: ffff88802293bb80
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000327f490 R08: ffffffff8166491c R09: ffffed1017344f24
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000fffffff4
R13: ffff888074bbd4d0 R14: ffff888074bbd528 R15: 1ffff1100e977aa5
FS:  0000555555936300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005556231532f0 CR3: 000000001b1f7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 insert_prealloc_file_extent fs/btrfs/inode.c:10336 [inline]
 __btrfs_prealloc_file_range+0x782/0x1440 fs/btrfs/inode.c:10404
 btrfs_prealloc_file_range+0x3c/0x50 fs/btrfs/inode.c:10494
 btrfs_fallocate+0x1a5e/0x1dd0 fs/btrfs/file.c:3603
 vfs_fallocate+0x54a/0x6b0 fs/open.c:308
 do_vfs_ioctl+0x2317/0x2b70 fs/ioctl.c:853
 __do_sys_ioctl fs/ioctl.c:872 [inline]
 __se_sys_ioctl+0x81/0x160 fs/ioctl.c:860
 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+0x61/0xcb
RIP: 0033:0x7fe213e25a59
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:00007ffdab7dab08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fe213e25a59
RDX: 0000000020000080 RSI: 0000000040305828 RDI: 0000000000000004
RBP: 00007ffdab7dab30 R08: 0000000000000002 R09: 00007ffdab7dab40
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005
R13: 00007ffdab7dab70 R14: 00007ffdab7dab50 R15: 0000000000000005
 </TASK>

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/09 07:06 linux-5.15.y d7af3e5ba454 058b3a5a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in btrfs_replace_file_extents
2024/09/24 01:10 linux-5.15.y 3a5928702e71 89298aad .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/09/26 04:12 linux-5.15.y b911329317b4 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/05/18 23:12 linux-5.15.y 9d6bde853685 3bb7af1d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2024/09/24 00:31 linux-5.15.y 3a5928702e71 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/11/20 20:47 linux-5.15.y 2a910f4af54d cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/09/26 03:33 linux-5.15.y b911329317b4 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/08/28 06:03 linux-5.15.y 5ddfe5cc8716 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/08/20 10:27 linux-5.15.y f6f7927ac664 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/08/06 14:46 linux-5.15.y 38d4ca22a528 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/08/04 11:45 linux-5.15.y 38d4ca22a528 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/07/29 16:46 linux-5.15.y 09996673e313 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/07/17 08:34 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/04/23 23:41 linux-5.15.y 3299fb36854f 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
2023/04/10 02:43 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in btrfs_replace_file_extents
* Struck through repros no longer work on HEAD.