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: 388d, last: 164d
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 543d 543d 0/26 auto-obsoleted due to no activity on 2023/05/14 20:31
Fix bisection attempts (6)
Created Duration User Patch Repo Result
2024/03/20 17:22 1m fix candidate upstream error job log (0)
2024/02/09 03:07 3m fix candidate upstream error job log (0)
2023/12/30 19:35 0m fix candidate upstream error job log (0)
2023/11/24 09:39 1m fix candidate upstream error job log (0)
2023/10/11 15:05 0m fix candidate upstream error job log (0)
2023/08/25 04:43 18m fix candidate upstream error job log (0)

Sample crash report:
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4005 at fs/btrfs/file.c:2958 btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958
Modules linked in:
CPU: 1 PID: 4005 Comm: syz-executor330 Not tainted 5.15.133-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958
lr : btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958
sp : ffff80001cae72c0
x29: ffff80001cae7420 x28: ffff0000cbe45500 x27: 0000000000000000
x26: dfff800000000000 x25: ffff0000dc766370 x24: ffff0000df0493a0
x23: 000000000000ffff x22: 00000000fffffff4 x21: 0000000000000000
x20: 1fffe0001b8ecc79 x19: ffff0000dc7663c8 x18: 0000000000000001
x17: ff80800008334ddc x16: 0000000000000000 x15: ffff800008334ddc
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832c8d0 x10: 0000000000000000 x9 : 80706453f6775700
x8 : 80706453f6775700 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff80001cae6a38 x4 : ffff8000149dfb80 x3 : ffff800008334f28
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026
Call trace:
 btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958
 btrfs_clone+0xe28/0x2318 fs/btrfs/reflink.c:492
 btrfs_clone_files+0x278/0x31c fs/btrfs/reflink.c:740
 btrfs_remap_file_range+0x4c8/0xc08 fs/btrfs/reflink.c:888
 vfs_copy_file_range+0xd9c/0x1130 fs/read_write.c:1510
 __do_sys_copy_file_range fs/read_write.c:1588 [inline]
 __se_sys_copy_file_range fs/read_write.c:1551 [inline]
 __arm64_sys_copy_file_range+0x5f8/0x9d8 fs/read_write.c:1551
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
irq event stamp: 72868
hardirqs last  enabled at (72867): [<ffff80000832aa68>] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257
hardirqs last disabled at (72868): [<ffff80001195f638>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last  enabled at (72844): [<ffff800008020ccc>] softirq_handle_end kernel/softirq.c:401 [inline]
softirqs last  enabled at (72844): [<ffff800008020ccc>] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587
softirqs last disabled at (72817): [<ffff8000081b56d4>] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline]
softirqs last disabled at (72817): [<ffff8000081b56d4>] invoke_softirq kernel/softirq.c:439 [inline]
softirqs last disabled at (72817): [<ffff8000081b56d4>] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637
---[ end trace 51d6abfd88f2f84e ]---
BTRFS: error (device loop0) in btrfs_replace_file_extents:2958: errno=-12 Out of memory
BTRFS info (device loop0): forced readonly

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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
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.