syzbot


kernel BUG in ext4_write_inline_data_end

Status: upstream: reported C repro on 2023/03/02 15:48
Labels: ext4 (incorrect?)
Reported-by: syzbot+198e7455f3a4f38b838a@syzkaller.appspotmail.com
First crash: 96d, last: 26d

Cause bisection: failed (error log, bisect log)
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] kernel BUG in ext4_write_inline_data_end 0 (1) 2023/03/02 15:48
Similar bugs (11)
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 138d 961d 24/24 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 322d 455d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 388d 455d 0/2 closed as dup on 2022/03/04 15:25
android-5-15 kernel BUG in ext4_write_inline_data_end (2) 1 51d 51d 0/2 premoderation: reported on 2023/04/12 18:32
android-5-10 kernel BUG in ext4_write_inline_data_end (2) C error 1 340d 340d 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 2 1d17h 82d 0/3 upstream: reported C repro on 2023/03/12 18:03
android-5-15 kernel BUG in ext4_write_inline_data_end C error 11 179d 240d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 91d 838d 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 1 3d12h 3d12h 0/3 upstream: reported C repro on 2023/05/30 10:48
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 3 20d 128d 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 178d 763d 0/1 upstream: reported C repro on 2021/04/30 02:18

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:225!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5170 Comm: syz-executor546 Not tainted 6.3.0-syzkaller-13466-gfc4354c6e5c2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:225 [inline]
RIP: 0010:ext4_write_inline_data_end+0xf7f/0x1170 fs/ext4/inline.c:765
Code: e8 46 41 51 ff 48 89 d8 48 25 ff 0f 00 00 0f 84 c3 00 00 00 e8 f2 3c 51 ff e9 d3 01 00 00 e8 e8 3c 51 ff 0f 0b e8 e1 3c 51 ff <0f> 0b 48 8b 44 24 10 48 8d 58 48 48 89 d8 48 c1 e8 03 48 b9 00 00
RSP: 0018:ffffc90004707220 EFLAGS: 00010293
RAX: ffffffff823a2a5f RBX: 000000000000003c RCX: ffff888024b33b80
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000006c000
RBP: ffffc90004707348 R08: ffffffff823a1f2c R09: ffffed100e559c71
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000006c000
R13: ffffc900047072c0 R14: ffff888072acc678 R15: 0000000000001000
FS:  00007f1d1645b700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000040 CR3: 0000000024056000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 generic_perform_write+0x3ed/0x5e0 mm/filemap.c:3934
 ext4_buffered_write_iter+0x122/0x3a0 fs/ext4/file.c:289
 ext4_file_write_iter+0x1d6/0x1930
 do_iter_write+0x7b1/0xcb0 fs/read_write.c:860
 iter_file_splice_write+0x843/0xfe0 fs/splice.c:795
 do_splice_from fs/splice.c:873 [inline]
 direct_splice_actor+0xe7/0x1c0 fs/splice.c:1039
 splice_direct_to_actor+0x4c4/0xbd0 fs/splice.c:994
 do_splice_direct+0x283/0x3d0 fs/splice.c:1082
 do_sendfile+0x620/0xff0 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1322 [inline]
 __se_sys_sendfile64+0x17c/0x1e0 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f1d1e7d0ec9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1d1645b2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f1d1e8577b0 RCX: 00007f1d1e7d0ec9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f1d1e823ae0 R08: 00007f1d1645b700 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 00007f1d1e823360
R13: 0000000020000f40 R14: 0030656c69662f2e R15: 00007f1d1e8577b8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:225 [inline]
RIP: 0010:ext4_write_inline_data_end+0xf7f/0x1170 fs/ext4/inline.c:765
Code: e8 46 41 51 ff 48 89 d8 48 25 ff 0f 00 00 0f 84 c3 00 00 00 e8 f2 3c 51 ff e9 d3 01 00 00 e8 e8 3c 51 ff 0f 0b e8 e1 3c 51 ff <0f> 0b 48 8b 44 24 10 48 8d 58 48 48 89 d8 48 c1 e8 03 48 b9 00 00
RSP: 0018:ffffc90004707220 EFLAGS: 00010293
RAX: ffffffff823a2a5f RBX: 000000000000003c RCX: ffff888024b33b80
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000006c000
RBP: ffffc90004707348 R08: ffffffff823a1f2c R09: ffffed100e559c71
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000006c000
R13: ffffc900047072c0 R14: ffff888072acc678 R15: 0000000000001000
FS:  00007f1d1645b700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1d1e8220b8 CR3: 0000000024056000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (8):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Manager Title
2023/05/07 12:50 upstream fc4354c6e5c2 90c93c40 .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
2023/05/07 04:02 upstream 994e2419f1e7 90c93c40 .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
2023/03/30 04:02 upstream ffe78bbd5121 f325deb0 .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
2023/02/26 15:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
2023/04/26 20:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 14f8db1c0f9a 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
2023/04/18 13:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 327bf9bb94cf 436577a9 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
2023/04/17 19:50 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 327bf9bb94cf c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in ext4_write_inline_data_end
2023/04/15 18:03 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1f5b16c51aef ec410564 .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.