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: 662d, last: 156d
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 460d 1283d 22/26 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 644d 777d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 710d 777d 0/2 closed as dup on 2022/03/04 15:25
android-5-15 kernel BUG in ext4_write_inline_data_end (2) origin:lts C 6 23d 208d 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 36 1d09h 404d 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 1 9d02h 157d 0/2 upstream: reported C repro on 2023/11/14 10:56
android-5-15 kernel BUG in ext4_write_inline_data_end C error 11 501d 562d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 413d 1160d 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 3 12d 325d 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 116d 414d 26/26 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 4 62d 450d 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 500d 1085d 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 14 6d13h 77d 0/26 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:
EXT4-fs error (device loop0): ext4_fill_super:4955: inode #2: comm syz-executor129: casefold flag without casefold feature
EXT4-fs (loop0): warning: mounting fs with errors, running e2fsck is recommended
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:772!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1101 Comm: syz-executor129 Not tainted 5.10.199-syzkaller-00307-gd30b996835c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
RIP: 0010:ext4_write_inline_data_end+0x809/0x820 fs/ext4/inline.c:772
Code: fc ff ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c e6 fc ff ff 4c 89 ff e8 d6 d6 cc ff e9 d9 fc ff ff e8 bc 0a d0 02 e8 47 66 8f ff <0f> 0b e8 40 66 8f ff 0f 0b e8 39 66 8f ff 0f 0b e8 32 66 8f ff 0f
RSP: 0018:ffffc90001fe7660 EFLAGS: 00010293
RAX: ffffffff81db3d49 RBX: 0000000000000000 RCX: ffff88810efe8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001fe77a0 R08: ffffffff81db36f6 R09: ffffed102381f9a4
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88811c0fce60 R14: 0000004c00000000 R15: ffff88811c0fcd18
FS:  00007faea78da6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000010f245000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_write_end+0x288/0xe90 fs/ext4/inode.c:1310
 ext4_da_write_end+0xbe/0xbb0 fs/ext4/inode.c:3150
 generic_perform_write+0x3d9/0x570 mm/filemap.c:3520
 ext4_buffered_write_iter+0x482/0x610 fs/ext4/file.c:271
 ext4_file_write_iter+0x193/0x1c80 fs/ext4/file.c:685
 call_write_iter include/linux/fs.h:1976 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0xb55/0xe70 fs/read_write.c:605
 ksys_write+0x199/0x2c0 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:667
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7faea791ded9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 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:00007faea78da218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007faea79a66c8 RCX: 00007faea791ded9
RDX: 0000000000000007 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 0000000000000017 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007faea79a66c0
R13: 00007faea79a4100 R14: 00007faea7972650 R15: 00007faea797206b
Modules linked in:
---[ end trace 00fcf998cfb41588 ]---
RIP: 0010:ext4_write_inline_data_end+0x809/0x820 fs/ext4/inline.c:772
Code: fc ff ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c e6 fc ff ff 4c 89 ff e8 d6 d6 cc ff e9 d9 fc ff ff e8 bc 0a d0 02 e8 47 66 8f ff <0f> 0b e8 40 66 8f ff 0f 0b e8 39 66 8f ff 0f 0b e8 32 66 8f ff 0f
RSP: 0018:ffffc90001fe7660 EFLAGS: 00010293
RAX: ffffffff81db3d49 RBX: 0000000000000000 RCX: ffff88810efe8000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001fe77a0 R08: ffffffff81db36f6 R09: ffffed102381f9a4
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88811c0fce60 R14: 0000004c00000000 R15: ffff88811c0fcd18
FS:  00007faea78da6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000180 CR3: 000000010f245000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

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