syzbot has found a reproducer for the following issue on: HEAD commit: 99bd3cb0d12e Merge tag 'bcachefs-2024-02-05' of https://ev.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14b32118180000 kernel config: https://syzkaller.appspot.com/x/.config?x=89a5d896b14c4565 dashboard link: https://syzkaller.appspot.com/bug?extid=0c89d865531d053abb2d compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16cffe18180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15e0d68fe80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/73aa72bd3577/disk-99bd3cb0.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/6c6bf1614995/vmlinux-99bd3cb0.xz kernel image: https://storage.googleapis.com/syzbot-assets/7df252d11788/bzImage-99bd3cb0.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/584587b5a4f4/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+0c89d865531d053abb2d@xxxxxxxxxxxxxxxxxxxxxxxxx ------------[ cut here ]------------ kernel BUG at fs/ext4/inline.c:235! invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5172 Comm: syz-executor299 Not tainted 6.8.0-rc3-syzkaller-00005-g99bd3cb0d12e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline] RIP: 0010:ext4_write_inline_data_end+0xea1/0x1020 fs/ext4/inline.c:773 Code: 31 ff e8 92 d9 44 ff 48 89 d8 48 25 ff 0f 00 00 74 70 e8 a2 d4 44 ff e9 12 f8 ff ff e8 98 d4 44 ff 90 0f 0b e8 90 d4 44 ff 90 <0f> 0b 48 8b 5c 24 18 48 89 df be 08 00 00 00 e8 bb a4 a3 ff 48 c1 RSP: 0018:ffffc90004957300 EFLAGS: 00010293 RAX: ffffffff824e91a0 RBX: 0000000000000042 RCX: ffff888029e48000 RDX: 0000000000000000 RSI: 0000000000000042 RDI: 0000000000000043 RBP: ffffc90004957428 R08: ffffffff824e86f9 R09: 1ffff11005ffe070 R10: dffffc0000000000 R11: ffffed1005ffe071 R12: ffff888067134e6a R13: 0000000000000042 R14: 0000000000000043 R15: 0000000000000001 FS: 00007f92340b76c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9234096d58 CR3: 000000007218c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> generic_perform_write+0x424/0x640 mm/filemap.c:3941 ext4_buffered_write_iter+0xc6/0x350 fs/ext4/file.c:299 ext4_file_write_iter+0x1dc/0x19c0 call_write_iter include/linux/fs.h:2085 [inline] iter_file_splice_write+0xbd6/0x14e0 fs/splice.c:743 do_splice_from fs/splice.c:941 [inline] direct_splice_actor+0x11e/0x220 fs/splice.c:1164 splice_direct_to_actor+0x58d/0xc80 fs/splice.c:1108 do_splice_direct_actor fs/splice.c:1207 [inline] do_splice_direct+0x28c/0x3e0 fs/splice.c:1233 do_sendfile+0x56d/0xdc0 fs/read_write.c:1295 __do_sys_sendfile64 fs/read_write.c:1362 [inline] __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1348 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f9234102a39 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 91 1b 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f92340b7218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f9234183708 RCX: 00007f9234102a39 RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004 RBP: 00007f9234183700 R08: 0000000000000000 R09: 0000000000000000 R10: 000080001d00c0d0 R11: 0000000000000246 R12: 00007f923414f6e0 R13: 00007f923414f180 R14: 0031656c69662f2e R15: 8088e3ad122bc192 </TASK> Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline] RIP: 0010:ext4_write_inline_data_end+0xea1/0x1020 fs/ext4/inline.c:773 Code: 31 ff e8 92 d9 44 ff 48 89 d8 48 25 ff 0f 00 00 74 70 e8 a2 d4 44 ff e9 12 f8 ff ff e8 98 d4 44 ff 90 0f 0b e8 90 d4 44 ff 90 <0f> 0b 48 8b 5c 24 18 48 89 df be 08 00 00 00 e8 bb a4 a3 ff 48 c1 RSP: 0018:ffffc90004957300 EFLAGS: 00010293 RAX: ffffffff824e91a0 RBX: 0000000000000042 RCX: ffff888029e48000 RDX: 0000000000000000 RSI: 0000000000000042 RDI: 0000000000000043 RBP: ffffc90004957428 R08: ffffffff824e86f9 R09: 1ffff11005ffe070 R10: dffffc0000000000 R11: ffffed1005ffe071 R12: ffff888067134e6a R13: 0000000000000042 R14: 0000000000000043 R15: 0000000000000001 FS: 00007f92340b76c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f92340b8000 CR3: 000000007218c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- 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.