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: 1056d, last: 21d
Cause bisection: failed (error log, bisect log)
  
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 854d 1677d 22/28 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 1038d 1171d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 1104d 1171d 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 C 9 31d 602d 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 C error 44 36d 798d 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 149d 551d 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 895d 956d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 807d 1554d 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 13d 719d 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 510d 808d 25/28 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 9 79d 844d 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 894d 1479d 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 9d18h 471d 0/28 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:772!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5908 Comm: syz-executor265 Not tainted 5.10.236-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:ext4_write_inline_data_end+0x7c3/0x7e0 fs/ext4/inline.c:772
Code: 54 24 20 e9 ce fc ff ff 44 89 e9 80 e1 07 fe c1 38 c1 0f 8c dd fc ff ff 4c 89 ef e8 d7 cd d0 ff e9 d0 fc ff ff e8 ad e7 96 ff <0f> 0b e8 a6 e7 96 ff 0f 0b e8 9f e7 96 ff 0f 0b e8 98 e7 96 ff 0f
RSP: 0018:ffffc90004d2f140 EFLAGS: 00010293
RAX: ffffffff81cca393 RBX: ffff88812025ebe8 RCX: ffff8881128fcf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004d2f268 R08: dffffc0000000000 R09: ffffed102404bd55
R10: ffffed102404bd55 R11: 1ffff1102404bd54 R12: dffffc0000000000
R13: ffff88812025eaa0 R14: 0000000000000000 R15: ffffc90004d2f1e0
FS:  00007fecff34d6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 0000000112a0a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_write_end+0x4af/0xed0 fs/ext4/inode.c:1333
 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_iter_write+0x7d/0xa0 fs/read_write.c:907
 iter_file_splice_write+0x650/0xc30 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0xe9/0x120 fs/splice.c:936
 splice_direct_to_actor+0x4c0/0xb10 fs/splice.c:891
 do_splice_direct+0x1b3/0x2c0 fs/splice.c:979
 do_sendfile+0x8ca/0xf90 fs/read_write.c:1257
 __do_sys_sendfile64 fs/read_write.c:1318 [inline]
 __se_sys_sendfile64 fs/read_write.c:1304 [inline]
 __x64_sys_sendfile64+0x18f/0x1f0 fs/read_write.c:1304
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fecff39e7a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 1d 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:00007fecff34d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fecff4254a8 RCX: 00007fecff39e7a9
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000005
RBP: 00007fecff4254a0 R08: 00007fecff34d6c0 R09: 0000000000000000
R10: 0000000000040001 R11: 0000000000000246 R12: 00007fecff4254ac
R13: 000000000000000b R14: 00007fff1cb11c40 R15: 00007fff1cb11d28
Modules linked in:
---[ end trace f2695be15e8e0011 ]---
RIP: 0010:ext4_write_inline_data_end+0x7c3/0x7e0 fs/ext4/inline.c:772
Code: 54 24 20 e9 ce fc ff ff 44 89 e9 80 e1 07 fe c1 38 c1 0f 8c dd fc ff ff 4c 89 ef e8 d7 cd d0 ff e9 d0 fc ff ff e8 ad e7 96 ff <0f> 0b e8 a6 e7 96 ff 0f 0b e8 9f e7 96 ff 0f 0b e8 98 e7 96 ff 0f
RSP: 0018:ffffc90004d2f140 EFLAGS: 00010293
RAX: ffffffff81cca393 RBX: ffff88812025ebe8 RCX: ffff8881128fcf00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90004d2f268 R08: dffffc0000000000 R09: ffffed102404bd55
R10: ffffed102404bd55 R11: 1ffff1102404bd54 R12: dffffc0000000000
R13: ffff88812025eaa0 R14: 0000000000000000 R15: ffffc90004d2f1e0
FS:  00007fecff34d6c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff1cb29750 CR3: 0000000112a0a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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/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.