syzbot has found a reproducer for the following issue on:
HEAD commit: 8a7f2a5c5aa1 Linux 5.15.110
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=10cfe5f4280000
kernel config:
https://syzkaller.appspot.com/x/.config?x=7e93d602da27af41
userspace arch: arm64
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=16cb3522280000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=11cd72b8280000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/16bea75b636d/disk-8a7f2a5c.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/3b169e33dcf2/vmlinux-8a7f2a5c.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/190d08a00950/Image-8a7f2a5c.gz.xz
mounted in repro:
https://storage.googleapis.com/syzbot-assets/01381288ce5d/mount_0.gz
BTRFS info (device loop0): using free space tree
BTRFS info (device loop0): has skinny extents
BTRFS info (device loop0): enabling ssd optimizations
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3968 at fs/read_write.c:525 __kernel_write+0x734/0x8b0
Modules linked in:
CPU: 1 PID: 3968 Comm: syz-executor352 Not tainted 5.15.110-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __kernel_write+0x734/0x8b0
lr : __kernel_write+0x730/0x8b0 fs/read_write.c:525
sp : ffff800018dc74e0
x29: ffff800018dc7650 x28: ffff7000031b8ea8 x27: ffff0000c92168e8
x26: 0000000000000011 x25: dfff800000000000 x24: 1fffe0001a272860
x23: ffff800018dc7560 x22: fffffffffffffff7 x21: ffff0000d1394304
x20: ffff800018dc7540 x19: ffff0000d1394280 x18: ffff800018dc7520
x17: 1fffe00036903d8e x16: ffff800011941c2c x15: 000000000000c369
x14: 1ffff0000291a06a x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000896c37c x10: 0000000000000000 x9 : ffff80000896c37c
x8 : ffff0000c8c8b580 x7 : 0000000000000000 x6 : 0000000000000000
x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020
x2 : 0000000000000008 x1 : 0000000000000000 x0 : 0000000000000000
Call trace:
__kernel_write+0x734/0x8b0
kernel_write+0xe0/0x1ec fs/read_write.c:568
write_buf fs/btrfs/send.c:565 [inline]
send_header fs/btrfs/send.c:684 [inline]
send_subvol+0x164/0x37cc fs/btrfs/send.c:7385
btrfs_ioctl_send+0x15b0/0x1a50 fs/btrfs/send.c:7711
_btrfs_ioctl_send+0x340/0x498 fs/btrfs/ioctl.c:4882
btrfs_ioctl+0x5e0/0xa5c
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl fs/ioctl.c:860 [inline]
__arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:860
__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: 86118
hardirqs last enabled at (86117): [<ffff800008268c94>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline]
hardirqs last enabled at (86117): [<ffff800008268c94>] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4780
hardirqs last disabled at (86118): [<ffff80001193d130>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387
softirqs last enabled at (86052): [<ffff800008030068>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31
softirqs last disabled at (86050): [<ffff800008030034>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18
---[ end trace d3bd68682de7c9d7 ]---
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.