syzbot


kernel BUG at fs/ext4/inline.c:LINE!

Status: upstream: reported C repro on 2020/10/14 12:01
Reported-by: syzbot+4faa160fa96bfba639f8@syzkaller.appspotmail.com
Fix commit: 5c099c4fdc43 ext4: fix kernel BUG in 'ext4_write_inline_data_end()'
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 848d, last: 21d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: kernel BUG at fs/ext4/inline.c:LINE! (log)
Repro: syz .config

Fix bisection: fixed by (bisect log) :
commit 1045a06724f322ed61f1ffb994427c7bdbe64647
Author: Christoph Hellwig <hch@lst.de>
Date: Wed Jun 29 15:01:02 2022 +0000

  remove CONFIG_ANDROID

similar bugs (10):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 kernel BUG in ext4_write_inline_data_end C 4 205d 338d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 271d 338d 0/2 closed as dup on 2022/03/04 15:25
android-5-10 kernel BUG in ext4_write_inline_data_end (2) C error 1 223d 223d 2/2 upstream: reported C repro on 2022/06/27 15:18
android-5-15 kernel BUG in ext4_write_inline_data_end C error 11 62d 123d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 9 11d 721d 0/1 upstream: reported C repro on 2021/02/14 13:39
linux-4.14 kernel BUG in ext4_write_inline_data_end C error 4 61d 646d 0/1 upstream: reported C repro on 2021/04/30 02:18
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 2 11d 11d 0/2 upstream: reported syz repro on 2023/01/25 15:39
linux-4.14 kernel BUG in ext4_write_inline_data ext4 C 4 27d 93d 0/1 upstream: reported C repro on 2022/11/04 18:44
android-5-10 kernel BUG in ext4_write_inline_data C error 2 13d 91d 0/2 upstream: reported C repro on 2022/11/06 08:16
android-54 kernel BUG in ext4_write_inline_data C 3 53d 91d 0/2 upstream: reported C repro on 2022/11/06 08:33
Last patch testing requests:
Created Duration User Patch Repo Result
2022/05/01 09:39 10m (218) phil@philpotter.co.uk https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:226!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5081 Comm: syz-executor444 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ext4_write_inline_data+0x360/0x370 fs/ext4/inline.c:226
Code: ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 30 ff ff ff 48 89 df e8 01 b7 a8 ff e9 23 ff ff ff e8 17 1b 53 ff 0f 0b e8 10 1b 53 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 41 57
RSP: 0018:ffffc90003d2f200 EFLAGS: 00010293
RAX: ffffffff8238bab0 RBX: 000000000000003c RCX: ffff88801f168000
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000000003f
RBP: 0000000000000009 R08: ffffffff8238b87b R09: ffffed10056b0471
R10: ffffed10056b0471 R11: 1ffff110056b0470 R12: 000000000000003f
R13: ffffc90003d2f2e0 R14: dffffc0000000000 R15: 0000000000000036
FS:  00007f464f97a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200001c0 CR3: 000000007843c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_write_inline_data_end+0x2c1/0xcd0 fs/ext4/inline.c:767
 generic_perform_write+0x3dc/0x5e0 mm/filemap.c:3783
 ext4_buffered_write_iter+0x122/0x3a0 fs/ext4/file.c:285
 ext4_file_write_iter+0x1d0/0x18f0
 do_iter_write+0x6c2/0xc20 fs/read_write.c:861
 iter_file_splice_write+0x7fc/0xfc0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0xe6/0x1c0 fs/splice.c:931
 splice_direct_to_actor+0x4e4/0xc00 fs/splice.c:886
 do_splice_direct+0x279/0x3d0 fs/splice.c:974
 do_sendfile+0x5fb/0xf80 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64+0x14f/0x1b0 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f464f9ce6f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f464f97a2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f464fa537a0 RCX: 00007f464f9ce6f9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f464fa2084c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000080000041 R11: 0000000000000246 R12: 00007f464fa200e0
R13: 0030656c69662f2e R14: 7974742f7665642f R15: 00007f464fa537a8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data+0x360/0x370 fs/ext4/inline.c:226
Code: ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 30 ff ff ff 48 89 df e8 01 b7 a8 ff e9 23 ff ff ff e8 17 1b 53 ff 0f 0b e8 10 1b 53 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 41 57
RSP: 0018:ffffc90003d2f200 EFLAGS: 00010293

RAX: ffffffff8238bab0 RBX: 000000000000003c RCX: ffff88801f168000
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000000003f
RBP: 0000000000000009 R08: ffffffff8238b87b R09: ffffed10056b0471
R10: ffffed10056b0471 R11: 1ffff110056b0470 R12: 000000000000003f
R13: ffffc90003d2f2e0 R14: dffffc0000000000 R15: 0000000000000036
FS:  00007f464f97a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200001c0 CR3: 000000007843c000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (76):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-fs 2022/12/18 23:44 upstream f9ff5644bcc0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-root 2022/12/18 17:06 upstream f9ff5644bcc0 05494336 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data_end
ci-upstream-kasan-gce-root 2022/11/17 02:47 upstream 59d0d52c30d4 3a127a31 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-root 2022/11/14 23:33 upstream 094226ad94f4 943f4cb8 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-root 2022/11/13 11:39 upstream fef7fd48922d 3ead01ad .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/08 07:23 upstream 59f2f4b8a757 6feb842b .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/07 22:58 upstream 4c86114194e6 79a59635 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/07 11:05 upstream 4c86114194e6 79a59635 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-smack-root 2021/12/28 14:35 upstream a8ad9a2434dc 6b3c5e64 .config console log report syz C kernel BUG in ext4_write_inline_data_end
ci-upstream-kasan-gce-root 2021/12/13 19:00 upstream 2585cf9dfaad 49ca1f59 .config console log report syz C kernel BUG in ext4_write_inline_data_end
ci-upstream-linux-next-kasan-gce-root 2023/01/15 17:04 linux-next 0a093b2893c7 a63719e7 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/11/11 01:28 linux-next 0cdb3579f1ee 3ead01ad .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/11/10 01:33 linux-next 0cdb3579f1ee 5fa28208 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/04 06:52 upstream f2f32f8af2b0 6d752409 .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-smack-root 2020/10/10 21:03 upstream 6f2f486d57c4 4a77ae0b .config console log report syz
ci-upstream-kasan-gce-smack-root 2023/01/09 05:50 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data_end
ci-upstream-kasan-gce-smack-root 2023/01/07 20:42 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data_end
ci-upstream-kasan-gce-selinux-root 2022/12/15 15:44 upstream 041fae9c105a 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-selinux-root 2022/12/11 11:17 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/28 12:23 upstream b7b275e60bcd 247de55b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/21 07:01 upstream eb7081409f94 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/19 11:33 upstream ab290eaddc4c 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/18 08:06 upstream 84368d882b96 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/17 03:51 upstream 59d0d52c30d4 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/14 20:37 upstream 094226ad94f4 943f4cb8 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/04 14:48 upstream ee6050c8af96 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/03 18:19 upstream b229b6ca5abb 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-root 2022/11/01 23:23 upstream b229b6ca5abb edac4fd1 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/11/01 08:37 upstream b229b6ca5abb a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-smack-root 2022/10/31 16:26 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data_end
ci2-upstream-fs 2022/10/30 21:25 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-qemu-upstream 2022/10/30 06:29 upstream 200204f56f3b 2a71366b .config console log report info kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/29 17:47 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/29 06:21 upstream b229b6ca5abb 899d812a .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/28 13:55 upstream b229b6ca5abb 8168b69e .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-smack-root 2022/10/28 10:31 upstream b229b6ca5abb 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data_end
ci2-upstream-fs 2022/10/27 14:04 upstream b229b6ca5abb 5c716ff6 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/27 05:11 upstream 4dc12f37a8e9 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/27 02:28 upstream 4dc12f37a8e9 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/26 16:38 upstream 4dc12f37a8e9 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/26 05:37 upstream 1a2dcbdde82e 2159e4d2 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/25 18:21 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/25 14:46 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/25 00:39 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/24 14:33 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/24 01:46 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/23 18:17 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/23 07:29 upstream 4da34b7d175d c0b80a55 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/22 17:32 upstream 440b7895c990 c0b80a55 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/22 08:32 upstream 440b7895c990 c0b80a55 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/22 02:51 upstream 6d36c728bc2e 63e790dd .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/21 19:10 upstream 6d36c728bc2e 63e790dd .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/21 05:24 upstream 493ffd6605b2 a0fd4dab .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-smack-root 2022/10/20 08:00 upstream 55be6084c8e0 b31320fc .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data_end
ci2-upstream-fs 2022/10/18 01:57 upstream 493ffd6605b2 94744d21 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/17 12:53 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/16 09:20 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/15 17:14 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/15 16:54 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-smack-root 2022/10/15 13:25 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data_end
ci2-upstream-fs 2022/10/15 10:15 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci-upstream-kasan-gce-root 2022/10/13 11:26 upstream 55be6084c8e0 adf90437 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/13 02:15 upstream 493ffd6605b2 3f6b40a1 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/12 09:16 upstream 493ffd6605b2 02b6492e .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/11 04:35 upstream 493ffd6605b2 5bcf0c31 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/10 11:00 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/08 13:16 upstream 62e6e5940c0c aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci2-upstream-fs 2022/10/05 08:49 upstream 0326074ff465 267e3bb1 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci-qemu-upstream-386 2022/12/09 09:15 upstream f3e8416619ce 1034e5fa .config console log report info kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/11/18 12:25 linux-next 15f3bff12cf6 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/11/17 22:50 linux-next 15f3bff12cf6 4ba8ab94 .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/11/10 21:57 linux-next 0cdb3579f1ee 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/11/02 00:42 linux-next 4d48f589d294 edac4fd1 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci-upstream-linux-next-kasan-gce-root 2022/10/26 13:21 linux-next 4d48f589d294 2159e4d2 .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data
ci-upstream-gce-arm64 2022/10/30 09:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 2a71366b .config console log report info [disk image] [vmlinux] kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.