syzbot


WARNING in cow_file_range_inline

Status: upstream: reported on 2025/02/11 18:15
Reported-by: syzbot+c4351d2a5b67bcab380e@syzkaller.appspotmail.com
First crash: 28d, last: 28d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in cow_file_range_inline btrfs C done done 4 864d 868d 0/28 auto-obsoleted due to no activity on 2023/05/17 19:00

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 11559 at fs/btrfs/inode.c:396 cow_file_range_inline+0x7f5/0xa90 fs/btrfs/inode.c:396
Modules linked in:
CPU: 0 PID: 11559 Comm: syz.2.2365 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:cow_file_range_inline+0x7f5/0xa90 fs/btrfs/inode.c:396
Code: 00 e8 af 0b 13 fe 4c 8b 6c 24 08 0f 1f 44 00 00 e8 a0 0b 13 fe eb 15 e8 99 0b 13 fe 48 c7 c7 40 2d eb 8a 89 de e8 2b a5 de fd <0f> 0b 48 8b 7c 24 10 48 c7 c6 e0 3b eb 8a ba 8c 01 00 00 89 d9 e8
RSP: 0018:ffffc900038be960 EFLAGS: 00010246
RAX: b389e7091e8d3d00 RBX: 00000000ffffffe4 RCX: 0000000000080000
RDX: ffffc900067d9000 RSI: 000000000003b485 RDI: 000000000003b486
RBP: ffffc900038bea90 R08: ffffffff8166aa8c R09: ffffed10171e4f24
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100bf9f73f
R13: 1ffff92000717d38 R14: 0000000000000000 R15: ffff88805fcfb9f8
FS:  00007fc8ab6536c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e31aff8 CR3: 000000002b9e0000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 cow_file_range+0x4aa/0xe10 fs/btrfs/inode.c:1123
 btrfs_run_delalloc_range+0x38b/0x1500 fs/btrfs/inode.c:2018
 writepage_delalloc+0x283/0x5a0 fs/btrfs/extent_io.c:3802
 __extent_writepage+0x57d/0xbc0 fs/btrfs/extent_io.c:4108
 extent_write_cache_pages fs/btrfs/extent_io.c:5030 [inline]
 extent_writepages+0xbbd/0x1590 fs/btrfs/extent_io.c:5157
 do_writepages+0x481/0x730 mm/page-writeback.c:2386
 filemap_fdatawrite_wbc+0x1d6/0x230 mm/filemap.c:400
 __filemap_fdatawrite_range mm/filemap.c:433 [inline]
 filemap_fdatawrite_range+0x158/0x1b0 mm/filemap.c:451
 btrfs_fdatawrite_range fs/btrfs/file.c:3917 [inline]
 start_ordered_ops+0xe6/0x210 fs/btrfs/file.c:2144
 btrfs_sync_file+0x418/0x1140 fs/btrfs/file.c:2227
 generic_write_sync include/linux/fs.h:2991 [inline]
 btrfs_file_write_iter+0x69b/0xd00 fs/btrfs/file.c:2101
 __kernel_write+0x5b1/0xa60 fs/read_write.c:539
 do_acct_process+0x11ef/0x1880 kernel/acct.c:521
 acct_pin_kill+0x27/0x130 kernel/acct.c:174
 pin_kill+0x2db/0x590 fs/fs_pin.c:44
 group_pin_kill+0xbb/0x180 fs/fs_pin.c:95
 reconfigure_super+0x335/0x870 fs/super.c:904
 do_remount fs/namespace.c:2668 [inline]
 path_mount+0xceb/0x10a0 fs/namespace.c:3334
 do_mount fs/namespace.c:3355 [inline]
 __do_sys_mount fs/namespace.c:3563 [inline]
 __se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3540
 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:0x7fc8ad80ade9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc8ab653038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fc8ada24080 RCX: 00007fc8ad80ade9
RDX: 0000000000000000 RSI: 0000400000000100 RDI: 0000000000000000
RBP: 00007fc8ad88c2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000021 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fc8ada24080 R15: 00007fff8ffc05e8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/11 18:14 linux-5.15.y c16c81c81336 f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in cow_file_range_inline
* Struck through repros no longer work on HEAD.