syzbot


kernel BUG in ext4_write_inline_data_end (2)

Status: upstream: reported C repro on 2024/02/02 09:24
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+0c89d865531d053abb2d@syzkaller.appspotmail.com
First crash: 77d, last: 6d07h
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: kernel BUG in ext4_write_inline_data (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[syzbot] Monthly ext4 report (Apr 2024) 0 (1) 2024/04/12 13:18
[syzbot] [ext4?] kernel BUG in ext4_write_inline_data_end (2) 0 (2) 2024/02/06 22:48
Re: [syzbot] [ext4?] kernel BUG in ext4_write_inline_data_end (2) 1 (1) 2024/02/06 15:44
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 459d 1283d 22/26 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 643d 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
android-5-10 kernel BUG in ext4_write_inline_data_end (2) C error 12 156d 661d 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 1d03h 403d 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 8d20h 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 1159d 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 11d 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 413d 26/26 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 4 61d 449d 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 499d 1085d 0/1 upstream: reported C repro on 2021/04/30 02:18
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/03/23 23:19 18m retest repro upstream report log
2024/02/29 20:35 11m retest repro upstream report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:235!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 1 PID: 7357 Comm: syz-executor250 Not tainted 6.8.0-rc4-syzkaller-00034-g8d3dea210042 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline]
RIP: 0010:ext4_write_inline_data_end+0xea1/0x1020 fs/ext4/inline.c:773
Code: 31 ff e8 32 82 41 ff 48 89 d8 48 25 ff 0f 00 00 74 70 e8 42 7d 41 ff e9 12 f8 ff ff e8 38 7d 41 ff 90 0f 0b e8 30 7d 41 ff 90 <0f> 0b 48 8b 5c 24 18 48 89 df be 08 00 00 00 e8 fb 9c a3 ff 48 c1
RSP: 0018:ffffc9000bf1f800 EFLAGS: 00010293
RAX: ffffffff8251ef10 RBX: 000000000000003c RCX: ffff88801afbbb80
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000000084c
RBP: ffffc9000bf1f928 R08: ffffffff8251e469 R09: 1ffff1100edc1470
R10: dffffc0000000000 R11: ffffed100edc1471 R12: ffff88807510626a
R13: 000000000000000c R14: 000000000000084c R15: 0000000000000ff4
FS:  00007f8d012816c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020049000 CR3: 000000001e1ba000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 generic_perform_write+0x426/0x640 mm/filemap.c:3941
 ext4_buffered_write_iter+0xc6/0x350 fs/ext4/file.c:299
 ext4_file_write_iter+0x1dc/0x19c0
 call_write_iter include/linux/fs.h:2085 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa83/0xcb0 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 do_syscall_64+0xfb/0x240
 entry_SYSCALL_64_after_hwframe+0x6f/0x77
RIP: 0033:0x7f8d012e5c89
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:00007f8d01281218 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8d0136e6d8 RCX: 00007f8d012e5c89
RDX: 000000000208e24b RSI: 00000000200007c0 RDI: 0000000000000005
RBP: 00007f8d0136e6d0 R08: 00007ffc62adbdc7 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f8d0133a840
R13: 00007f8d0133a0c0 R14: 0030656c69662f2e R15: 6f73762f7665642f
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:235 [inline]
RIP: 0010:ext4_write_inline_data_end+0xea1/0x1020 fs/ext4/inline.c:773
Code: 31 ff e8 32 82 41 ff 48 89 d8 48 25 ff 0f 00 00 74 70 e8 42 7d 41 ff e9 12 f8 ff ff e8 38 7d 41 ff 90 0f 0b e8 30 7d 41 ff 90 <0f> 0b 48 8b 5c 24 18 48 89 df be 08 00 00 00 e8 fb 9c a3 ff 48 c1
RSP: 0018:ffffc9000bf1f800 EFLAGS: 00010293
RAX: ffffffff8251ef10 RBX: 000000000000003c RCX: ffff88801afbbb80
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000000084c
RBP: ffffc9000bf1f928 R08: ffffffff8251e469 R09: 1ffff1100edc1470
R10: dffffc0000000000 R11: ffffed100edc1471 R12: ffff88807510626a
R13: 000000000000000c R14: 000000000000084c R15: 0000000000000ff4
FS:  00007f8d012816c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8d012a3000 CR3: 000000001e1ba000 CR4: 0000000000350ef0

Crashes (14):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/15 19:18 upstream 8d3dea210042 d9b1cdd5 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data_end
2024/02/13 03:29 upstream 716f4aaa7b48 77b23aa1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root kernel BUG in ext4_write_inline_data_end
2024/02/06 22:48 upstream 99bd3cb0d12e 6404acf9 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs kernel BUG in ext4_write_inline_data_end
2024/03/09 23:18 upstream 09e5c48fea17 6ee49f2e .config console log report syz C [disk image (non-bootable)] [vmlinux] [kernel image] [mounted in repro] ci-qemu-upstream kernel BUG in ext4_write_inline_data_end
2024/04/03 04:35 upstream fe46a7dd189e 7925100d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in ext4_write_inline_data_end
2024/04/01 02:36 upstream fe46a7dd189e 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in ext4_write_inline_data_end
2024/03/24 15:41 upstream fe46a7dd189e 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in ext4_write_inline_data_end
2024/02/06 22:07 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in ext4_write_inline_data_end
2024/02/06 14:39 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs kernel BUG in ext4_write_inline_data_end
2024/02/02 01:47 upstream 6764c317b6bb 81024119 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root kernel BUG in ext4_write_inline_data_end
2024/04/13 05:40 linux-next 9ed46da14b9b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root kernel BUG in ext4_write_inline_data_end
2024/04/06 11:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
2024/03/31 13:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
2024/03/28 01:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 707081b61156 454571b6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.