syzbot


WARNING in __kernel_write_iter

Status: fixed on 2024/01/03 19:02
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+78d9dc0d718d214e0bf2@syzkaller.appspotmail.com
Fix commit: 4fc9c61c02c0 btrfs: send: ensure send_fd is writable
First crash: 626d, last: 368d
Fix bisection: fixed by (bisect log) :
commit 4fc9c61c02c0a59d2f273933c32776d403202c09
Author: Jann Horn <jannh@google.com>
Date: Fri Nov 24 16:48:31 2023 +0000

  btrfs: send: ensure send_fd is writable

  
Bug presence (1)
Date Name Commit Repro Result
2023/05/08 upstream (ToT) ac9a78681b92 C [report] WARNING in __kernel_write_iter
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __kernel_write_iter btrfs C inconclusive 1149 371d 788d 25/28 fixed on 2024/01/20 21:18

Sample crash report:
BTRFS info (device loop0): using sha256 (sha256-ce) checksum algorithm
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): enabling ssd optimizations
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4221 at fs/read_write.c:504 __kernel_write_iter+0x508/0x5f8
Modules linked in:
CPU: 0 PID: 4221 Comm: syz-executor322 Not tainted 6.1.53-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __kernel_write_iter+0x508/0x5f8
lr : __kernel_write_iter+0x504/0x5f8 fs/read_write.c:504
sp : ffff80001dbd74c0
x29: ffff80001dbd75a0 x28: ffff700003b7aea0 x27: ffff80001dbd7640
x26: dfff800000000000 x25: fffffffffffffff7 x24: 1fffe0001a27668f
x23: ffff0000d13b347c x22: ffff0000da824c08 x21: dfff800000000000
x20: ffff0000d13b3400 x19: 00000000000a801d x18: ffff80001dbd7560
x17: ffff80000a1be6b4 x16: ffff800012075c40 x15: 000000000000c23c
x14: 1ffff00002b160b0 x13: dfff800000000000 x12: 0000000000000005
x11: ff80800008a3b648 x10: 0000000000000000 x9 : ffff800008a3b648
x8 : ffff0000d6173780 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000011 x3 : 0000000000000001
x2 : ffff0000da824c08 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
 __kernel_write_iter+0x508/0x5f8
 __kernel_write fs/read_write.c:537 [inline]
 kernel_write+0x1b0/0x2f0 fs/read_write.c:558
 write_buf fs/btrfs/send.c:591 [inline]
 send_header fs/btrfs/send.c:709 [inline]
 send_subvol+0x174/0x3f0c fs/btrfs/send.c:7675
 btrfs_ioctl_send+0x1c40/0x21b4 fs/btrfs/send.c:8041
 _btrfs_ioctl_send+0x314/0x468 fs/btrfs/ioctl.c:5242
 btrfs_ioctl+0x638/0xb08
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2c0 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x64/0x218 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 87780
hardirqs last  enabled at (87779): [<ffff800012209d34>] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline]
hardirqs last  enabled at (87779): [<ffff800012209d34>] _raw_spin_unlock_irqrestore+0x48/0xac kernel/locking/spinlock.c:194
hardirqs last disabled at (87780): [<ffff8000121244c4>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last  enabled at (87726): [<ffff80000803305c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (87724): [<ffff800008033028>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---

Crashes (224):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/09/18 01:15 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/05/07 23:47 linux-6.1.y ca48fc16c493 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/06/04 12:37 linux-6.1.y d2869ace6eeb a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/05/05 09:52 linux-6.1.y ca48fc16c493 518a39a6 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/06/07 04:44 linux-6.1.y 76ba310227d2 a4ae4f42 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/12/03 16:08 linux-6.1.y c6114c845984 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/12/02 02:17 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/30 19:39 linux-6.1.y 6ac30d748bb0 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/21 23:11 linux-6.1.y 69e434a1cb21 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/21 06:36 linux-6.1.y 69e434a1cb21 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/14 11:24 linux-6.1.y fb2635ac69ab cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/07 11:56 linux-6.1.y 4a61839152cc 83211397 .config console log report info ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/03 03:40 linux-6.1.y 4a61839152cc c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/28 01:56 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/26 06:46 linux-6.1.y 32c9cdbe383c 72e794c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/19 23:35 linux-6.1.y adc4d740ad9e 42e1d524 .config console log report info ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/12 03:22 linux-6.1.y 082280fe94a0 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/10 01:22 linux-6.1.y ecda77b46871 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/07 14:11 linux-6.1.y ecda77b46871 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/10/04 23:51 linux-6.1.y d23900f974e0 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/09/20 02:50 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/09/04 06:26 linux-6.1.y c2cbfe5f5122 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/09/01 07:45 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/11/25 12:52 linux-6.1.y 69e434a1cb21 5b429f39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/11/23 13:35 linux-6.1.y 69e434a1cb21 fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/11/14 12:49 linux-6.1.y fb2635ac69ab cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/11/08 20:37 linux-6.1.y fb2635ac69ab b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/11/05 20:44 linux-6.1.y 4a61839152cc 500bfdc4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/28 03:08 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/20 07:25 linux-6.1.y 7d24402875c7 a42250d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/19 15:56 linux-6.1.y adc4d740ad9e 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/15 08:39 linux-6.1.y 082280fe94a0 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/13 22:59 linux-6.1.y 082280fe94a0 f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/12 00:27 linux-6.1.y 082280fe94a0 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/09 19:12 linux-6.1.y ecda77b46871 3c53c7d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/10/05 01:28 linux-6.1.y d23900f974e0 b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/09/26 04:49 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/09/19 18:34 linux-6.1.y a356197db198 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/09/18 00:53 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/09/02 21:45 linux-6.1.y c2cbfe5f5122 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/31 23:32 linux-6.1.y a2943d2d9a00 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/29 16:49 linux-6.1.y 024f76bca9d0 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/08/25 18:48 linux-6.1.y 802aacbbffe2 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/08/22 23:32 linux-6.1.y 6c44e13dc284 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan WARNING in __kernel_write_iter
2023/08/29 21:44 linux-6.1.y 024f76bca9d0 ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/28 13:50 linux-6.1.y 024f76bca9d0 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/28 09:33 linux-6.1.y 024f76bca9d0 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/28 02:05 linux-6.1.y 024f76bca9d0 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/27 00:31 linux-6.1.y cd363bb9548e 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/08/25 18:55 linux-6.1.y 802aacbbffe2 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
2023/03/20 18:35 linux-6.1.y 7eaef76fbc46 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 WARNING in __kernel_write_iter
* Struck through repros no longer work on HEAD.