syzbot


kernel BUG in ext4_write_inline_data_end (2)

Status: upstream: reported C repro on 2023/09/24 12:05
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+2087f3e0c87c7a3f4247@syzkaller.appspotmail.com
First crash: 817d, last: 8d21h
Bug presence (2)
Date Name Commit Repro Result
2024/11/08 lts (merge base) 3a5928702e71 C [report] kernel BUG in ext4_writepages
2024/11/08 upstream (ToT) 906bd684e4b1 C [report] kernel BUG in ext4_do_writepages
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at fs/ext4/inline.c:LINE! ext4 C done done 76 904d 1727d 22/29 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 1088d 1221d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 1154d 1221d 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 16 71d 1106d 2/2 upstream: reported C repro on 2022/06/27 15:18
linux-6.1 kernel BUG in ext4_write_inline_data_end origin:upstream C error 44 86d 848d 0/3 upstream: reported C repro on 2023/03/12 18:03
android-6-1 kernel BUG in ext4_write_inline_data_end origin:lts C error done 2 198d 601d 0/2 auto-obsoleted due to no activity on 2025/03/30 21:55
android-5-15 kernel BUG in ext4_write_inline_data_end C error 11 945d 1006d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 857d 1604d 0/1 upstream: reported C repro on 2021/02/14 13:39
linux-5.15 kernel BUG in ext4_write_inline_data_end origin:upstream C error 8 45d 769d 0/3 upstream: reported C repro on 2023/05/30 10:48
upstream kernel BUG in ext4_write_inline_data_end ext4 C error done 32 560d 858d 25/29 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 9 129d 894d 0/2 upstream: reported syz repro on 2023/01/25 15:39
linux-4.14 kernel BUG in ext4_write_inline_data_end C error 4 944d 1529d 0/1 upstream: reported C repro on 2021/04/30 02:18
upstream kernel BUG in ext4_write_inline_data_end (2) ext4 C inconclusive error 173 59d 521d 0/29 upstream: reported C repro on 2024/02/02 09:24
Last patch testing requests (5)
Created Duration User Patch Repo Result
2025/06/28 23:42 14m retest repro android13-5.15-lts report log
2025/06/14 02:20 6m retest repro android13-5.15-lts report log
2025/06/14 02:20 11m retest repro android13-5.15-lts report log
2025/05/01 20:57 6m retest repro android13-5.15-lts report log
2025/04/17 13:36 10m retest repro android13-5.15-lts report log
Fix bisection attempts (9)
Created Duration User Patch Repo Result
2025/05/20 10:48 4h04m bisect fix android13-5.15-lts OK (0) job log log
2025/03/08 07:51 52m bisect fix android13-5.15-lts OK (0) job log log
2024/12/31 21:19 1h16m bisect fix android13-5.15-lts OK (0) job log log
2024/10/29 21:52 1h10m bisect fix android13-5.15-lts OK (0) job log log
2024/09/29 19:51 43m bisect fix android13-5.15-lts OK (0) job log log
2024/04/27 18:48 2h03m bisect fix android13-5.15-lts OK (0) job log log
2024/02/26 07:08 53m bisect fix android13-5.15-lts OK (0) job log log
2023/12/28 22:41 37m bisect fix android13-5.15-lts OK (0) job log log
2023/11/08 06:16 1h51m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
loop0: detected capacity change from 0 to 1024
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue. Quota mode: none.
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:236!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 585 Comm: syz-executor558 Tainted: G        W         5.15.184-syzkaller-00129-g4032a894ccb2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:236 [inline]
RIP: 0010:ext4_write_inline_data_end+0xdc6/0xdd0 fs/ext4/inline.c:791
Code: fa ff ff 4c 89 f7 e8 09 af d0 ff e9 ff f9 ff ff e8 af 3d 92 ff 0f 0b e8 a8 3d 92 ff 0f 0b e8 a1 3d 92 ff 0f 0b e8 9a 3d 92 ff <0f> 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54
RSP: 0000:ffffc90001157720 EFLAGS: 00010293
RAX: ffffffff81d66746 RBX: 000000000000003c RCX: ffff88811ae30000
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000001000
RBP: ffffc90001157870 R08: dffffc0000000000 R09: ffffed1023641c4b
R10: ffffed1023641c4b R11: 1ffff11023641c4a R12: 0000000000001000
R13: dffffc0000000000 R14: ffff888122a7cd50 R15: dffffc0000000000
FS:  00007f8d5866a6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000040 CR3: 00000001250f6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_da_write_end+0x1d8/0x9e0 fs/ext4/inode.c:3092
 generic_perform_write+0x34c/0x670 mm/filemap.c:3868
 ext4_buffered_write_iter+0x4ed/0x670 fs/ext4/file.c:270
 ext4_dio_write_iter fs/ext4/file.c:489 [inline]
 ext4_file_write_iter+0x458/0x14c0 fs/ext4/file.c:662
 call_write_iter include/linux/fs.h:2204 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x802/0xf70 fs/read_write.c:594
 ksys_write+0x140/0x240 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:656
 x64_sys_call+0x8ef/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:2
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f8d586b9509
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 1f 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:00007f8d5866a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8d58741488 RCX: 00007f8d586b9509
RDX: 0000000000001006 RSI: 0000200000006c00 RDI: 0000000000000004
RBP: 00007f8d58741480 R08: 00007f8d5866a6c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8d5874148c
R13: 000000000000000b R14: 00007ffd4f1f6d40 R15: 00007ffd4f1f6e28
 </TASK>
Modules linked in:
---[ end trace a1f4781e7d3d26d8 ]---
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:236 [inline]
RIP: 0010:ext4_write_inline_data_end+0xdc6/0xdd0 fs/ext4/inline.c:791
Code: fa ff ff 4c 89 f7 e8 09 af d0 ff e9 ff f9 ff ff e8 af 3d 92 ff 0f 0b e8 a8 3d 92 ff 0f 0b e8 a1 3d 92 ff 0f 0b e8 9a 3d 92 ff <0f> 0b 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55 41 54
RSP: 0000:ffffc90001157720 EFLAGS: 00010293
RAX: ffffffff81d66746 RBX: 000000000000003c RCX: ffff88811ae30000
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000001000
RBP: ffffc90001157870 R08: dffffc0000000000 R09: ffffed1023641c4b
R10: ffffed1023641c4b R11: 1ffff11023641c4a R12: 0000000000001000
R13: dffffc0000000000 R14: ffff888122a7cd50 R15: dffffc0000000000
FS:  00007f8d5866a6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000040 CR3: 00000001250f6000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/30 00:20 android13-5.15-lts 4032a894ccb2 3d2f584d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2024/05/15 04:32 android13-5.15-lts 5d96939590c0 fdb4c10c .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2024/01/21 14:33 android13-5.15-lts 1c3a1f32bcbd 9bd8dcda .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2024/05/29 02:17 android13-5.15-lts 424f92bcbe8f 34889ee3 .config console log report syz / log [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2024/05/16 13:33 android13-5.15-lts 5d96939590c0 ef5d53ed .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2023/11/14 13:11 android13-5.15-lts 61cfd264993d cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2023/09/24 15:04 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2023/09/24 12:01 android13-5.15-lts ea586874d2f9 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2023/07/02 19:53 android13-5.15-lts 241da2ad5601 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2023/04/12 18:31 android13-5.15-lts 7364b7abbafb 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.