syzbot


kernel BUG in ext4_write_inline_data_end (2)

Status: upstream: reported C repro on 2022/06/27 15:18
Reported-by: syzbot+6bc6e779d029f0440c75@syzkaller.appspotmail.com
Fix commit: 91f90b571f1a ext4: fix race condition between ext4_write and ext4_convert_inline_data
Patched on: [ci2-android-5-10 ci2-android-5-10-perf], missing on: []
First crash: 1307d, last: 11d
Cause bisection: failed (error log, bisect log)
  
Similar bugs (13)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at fs/ext4/inline.c:LINE! ext4 -1 C done done 76 1105d 1928d 22/29 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end -1 C 4 1289d 1422d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end -1 C error 3 1355d 1422d 0/2 closed as dup on 2022/03/04 15:25
android-5-15 kernel BUG in ext4_write_inline_data_end (2) origin:upstream -1 C 11 9d12h 853d 0/2 upstream: reported C repro on 2023/09/24 12:05
linux-6.1 kernel BUG in ext4_write_inline_data_end origin:upstream -1 C error 44 287d 1049d 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 -1 C error done 2 400d 802d 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 -1 C error 11 1146d 1207d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 -1 C error 12 1058d 1805d 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 -1 C error 8 18d 970d 0/3 upstream: reported C repro on 2023/05/30 10:48
upstream kernel BUG in ext4_write_inline_data_end ext4 -1 C error done 32 761d 1059d 25/29 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 -1 syz 9 330d 1095d 0/2 upstream: reported syz repro on 2023/01/25 15:39
linux-4.14 kernel BUG in ext4_write_inline_data_end -1 C error 4 1145d 1730d 0/1 upstream: reported C repro on 2021/04/30 02:18
upstream kernel BUG in ext4_write_inline_data_end (2) ext4 -1 C inconclusive error 173 50d 722d 0/29 upstream: reported C repro on 2024/02/02 09:24
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/07/12 18:55 16m tadeusz.struk@linaro.org patch android12-5.10-lts OK log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:235!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 504 Comm: syz.1.31 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline]
RIP: 0010:ext4_write_inline_data_end+0x7d8/0x7e0 fs/ext4/inline.c:789
Code: fc ff ff 4c 89 ef e8 a7 9a d0 ff e9 d0 fc ff ff e8 3d ac 96 ff 0f 0b e8 36 ac 96 ff 0f 0b e8 2f ac 96 ff 0f 0b e8 28 ac 96 ff <0f> 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48
RSP: 0018:ffffc90001c07540 EFLAGS: 00010293
RAX: ffffffff81ccf858 RBX: ffff888125b86600 RCX: ffff88810dc6a780
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000006000
RBP: ffffc90001c07680 R08: dffffc0000000000 R09: ffffed1022d78053
R10: ffffed1022d78053 R11: 1ffff11022d78052 R12: dffffc0000000000
R13: ffff888125b864b8 R14: 0000000000006000 R15: 000000000000003c
FS:  00007fe721a406c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9354d26d58 CR3: 0000000112eb9000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_da_write_inline_data_end+0x37/0x290 fs/ext4/inline.c:986
 ext4_da_write_end+0x7d7/0xa70 fs/ext4/inode.c:3195
 generic_perform_write+0x36d/0x510 mm/filemap.c:3520
 ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271
 ext4_file_write_iter+0x536/0x1980 fs/ext4/file.c:-1
 do_iter_readv_writev+0x491/0x600 fs/read_write.c:-1
 do_iter_write+0x189/0x630 fs/read_write.c:866
 vfs_writev+0x293/0x4f0 fs/read_write.c:939
 do_pwritev fs/read_write.c:1036 [inline]
 __do_sys_pwritev2 fs/read_write.c:1095 [inline]
 __se_sys_pwritev2+0x1a9/0x2b0 fs/read_write.c:1086
 __x64_sys_pwritev2+0xbf/0xd0 fs/read_write.c:1086
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe721bd0749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe721a40038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007fe721e26fa0 RCX: 00007fe721bd0749
RDX: 0000000000000001 RSI: 0000200000000100 RDI: 0000000000000004
RBP: 00007fe721c54f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000005405 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fe721e27038 R14: 00007fe721e26fa0 R15: 00007ffd223775d8
Modules linked in:
---[ end trace a50264540091912c ]---
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline]
RIP: 0010:ext4_write_inline_data_end+0x7d8/0x7e0 fs/ext4/inline.c:789
Code: fc ff ff 4c 89 ef e8 a7 9a d0 ff e9 d0 fc ff ff e8 3d ac 96 ff 0f 0b e8 36 ac 96 ff 0f 0b e8 2f ac 96 ff 0f 0b e8 28 ac 96 ff <0f> 0b 66 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48
RSP: 0018:ffffc90001c07540 EFLAGS: 00010293
RAX: ffffffff81ccf858 RBX: ffff888125b86600 RCX: ffff88810dc6a780
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000006000
RBP: ffffc90001c07680 R08: dffffc0000000000 R09: ffffed1022d78053
R10: ffffed1022d78053 R11: 1ffff11022d78052 R12: dffffc0000000000
R13: ffff888125b864b8 R14: 0000000000006000 R15: 000000000000003c
FS:  00007fe721a406c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9354d26d58 CR3: 0000000112eb9000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/01/13 18:53 android13-5.10-lts e253c52bbdfc d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2025/04/27 09:59 android13-5.10-lts ba8b8b193394 c6b4fb39 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/11/15 11:57 android13-5.10-lts d30b996835c0 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/09/13 13:25 android13-5.10-lts a27512601c2d 0b6a67ac .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/07/02 23:01 android13-5.10-lts 28cc6246b5e7 bfc47836 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2022/06/27 15:18 android12-5.10-lts 73c2a811f6d1 a371c43c .config console log report syz C ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2024/04/24 13:42 android13-5.10-lts 70b6ab09a34b 21339d7b .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/09/27 00:01 android13-5.10-lts a27512601c2d 0b6a67ac .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2025/11/10 16:48 android13-5.10-lts ab3e1c0dd1ff 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2025/11/10 16:47 android13-5.10-lts ab3e1c0dd1ff 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2025/02/26 18:19 android13-5.10-lts 3f5f2283d684 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2025/01/06 16:22 android13-5.10-lts 49e8ba0a684f f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/08/17 23:03 android13-5.10-lts 8a427269c016 74b106b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/08/06 20:24 android13-5.10-lts 8a427269c016 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/08/01 11:21 android13-5.10-lts 8a427269c016 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/07/10 02:34 android13-5.10-lts 59b65efafe20 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/06/24 07:29 android13-5.10-lts 571f442f6752 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/06/18 23:02 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
2023/06/16 20:21 android13-5.10-lts 8a30c9beebe8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.