syzbot


kernel BUG in ext4_write_inline_data_end (2)

Status: upstream: reported syz repro on 2023/01/25 15:39
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+ba461b83903ea68a8198@syzkaller.appspotmail.com
First crash: 455d, last: 22h46m
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 465d 1289d 22/26 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 649d 783d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 716d 783d 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 29d 214d 0/2 upstream: reported C repro on 2023/09/24 12:05
android-5-10 kernel BUG in ext4_write_inline_data_end (2) C error 13 22h46m 667d 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 36 7d02h 409d 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 14d 163d 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 507d 568d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 419d 1165d 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 17d 331d 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 122d 419d 26/26 fixed on 2024/01/30 23:26
linux-4.14 kernel BUG in ext4_write_inline_data_end C error 4 505d 1091d 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 23 41m 83d 0/26 upstream: reported C repro on 2024/02/02 09:24
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/02/17 14:13 11m retest repro android12-5.4 report log
2023/12/09 12:47 13m retest repro android12-5.4 report log
2023/09/30 12:24 11m retest repro android12-5.4 report log
2023/07/22 11:20 36m retest repro android12-5.4 report log
2023/05/13 11:00 17m retest repro android12-5.4 report log

Sample crash report:
EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:235!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 407 Comm: syz-executor.0 Not tainted 5.4.268-syzkaller-00003-g2d5d8240a7cb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline]
RIP: 0010:ext4_write_inline_data_end+0x81e/0x820 fs/ext4/inline.c:781
Code: ff e8 26 82 ce ff e9 d9 fc ff ff e8 7c 66 75 ff e8 47 ae 9e ff 0f 0b e8 40 ae 9e ff 0f 0b e8 39 ae 9e ff 0f 0b e8 32 ae 9e ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec
RSP: 0018:ffff8881e2c07700 EFLAGS: 00010293
RAX: ffffffff81c598ee RBX: 000000000000003c RCX: ffff8881f31d6e40
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000078
RBP: ffff8881e2c07840 R08: ffffffff81c593ee R09: ffffed103de1804f
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881dcd855a0 R14: 0000000000000078 R15: 0000000000000078
FS:  00007f5938c666c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f593920f000 CR3: 00000001ed777000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_da_write_inline_data_end+0x32/0x240 fs/ext4/inline.c:978
 ext4_da_write_end+0x81d/0xb90 fs/ext4/inode.c:3268
 generic_perform_write+0x3d3/0x560 mm/filemap.c:3461
 __generic_file_write_iter+0x224/0x530 mm/filemap.c:3579
 ext4_file_write_iter+0x499/0x10e0 fs/ext4/file.c:270
 call_write_iter include/linux/fs.h:1983 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0x5d3/0x750 fs/read_write.c:496
 vfs_write+0x206/0x4e0 fs/read_write.c:558
 ksys_write+0x199/0x2c0 fs/read_write.c:611
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 295d3b359679eba7 ]---
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline]
RIP: 0010:ext4_write_inline_data_end+0x81e/0x820 fs/ext4/inline.c:781
Code: ff e8 26 82 ce ff e9 d9 fc ff ff e8 7c 66 75 ff e8 47 ae 9e ff 0f 0b e8 40 ae 9e ff 0f 0b e8 39 ae 9e ff 0f 0b e8 32 ae 9e ff <0f> 0b 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec
RSP: 0018:ffff8881e2c07700 EFLAGS: 00010293
RAX: ffffffff81c598ee RBX: 000000000000003c RCX: ffff8881f31d6e40
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000078
RBP: ffff8881e2c07840 R08: ffffffff81c593ee R09: ffffed103de1804f
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881dcd855a0 R14: 0000000000000078 R15: 0000000000000078
FS:  00007f5938c666c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f593920f000 CR3: 00000001ed777000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/24 13:41 android12-5.4 2d5d8240a7cb 21339d7b .config strace log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_write_inline_data_end
2023/01/25 16:20 android12-5.4 95647568244a 9dfcf09c .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_write_inline_data_end
2024/04/22 20:55 android12-5.4 2d5d8240a7cb 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_write_inline_data_end
2023/08/03 06:01 android12-5.4 d8e4fb522fec 39a91c18 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_write_inline_data_end
2023/02/10 11:10 android12-5.4 6a5ec6cea0cd 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_write_inline_data_end
2023/01/25 15:39 android12-5.4 95647568244a 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.