syzbot


kernel BUG in ext4_write_inline_data_end

Status: fixed on 2023/02/02 00:40
Reported-by: syzbot+8234f4fea762dd893f3d@syzkaller.appspotmail.com
Fix commit: 6380a93b57db ext4: fix kernel BUG in 'ext4_write_inline_data_end()'
First crash: 559d, last: 498d
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 456d 1280d 22/26 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 640d 774d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 707d 774d 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 20d 205d 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 153d 658d 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 35 9d16h 400d 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 5d21h 154d 0/2 upstream: reported C repro on 2023/11/14 10:56
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 410d 1157d 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 8d23h 322d 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 113d 410d 26/26 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 4 58d 446d 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 496d 1082d 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 3d08h 74d 0/26 upstream: reported C repro on 2024/02/02 09:24
Last patch testing requests (6)
Created Duration User Patch Repo Result
2022/11/18 05:41 13m jun.nie@linaro.org patch android13-5.15-lts OK log
2022/11/18 05:33 0m jun.nie@linaro.org patch android13-5.15-lts error OK
2022/11/17 07:14 18m jun.nie@linaro.org patch android13-5.15-lts OK log
2022/11/16 04:21 7m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f68f40638559 error OK
2022/11/15 09:12 8m jun.nie@linaro.org git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 094226ad94f471a9f19 report log
2022/11/04 08:32 11m jun.nie@linaro.org https://android.googlesource.com/kernel/common 4d93874b9e9c error OK

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:227!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 480 Comm: syz-executor283 Not tainted 5.15.74-syzkaller-00001-g4ec71a9ec769 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:227 [inline]
RIP: 0010:ext4_write_inline_data_end+0xdff/0xe10 fs/ext4/inline.c:782
Code: f7 e8 05 ac c6 ff e9 20 fa ff ff e8 0b b8 d5 02 e8 86 5f 84 ff 0f 0b e8 7f 5f 84 ff 0f 0b e8 78 5f 84 ff 0f 0b e8 71 5f 84 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41
RSP: 0018:ffffc9000050f100 EFLAGS: 00010293
RAX: ffffffff81ed321f RBX: 0000000000000048 RCX: ffff8881069c0000
RDX: 0000000000000000 RSI: 0000000000000048 RDI: 0000000000000051
RBP: ffffc9000050f250 R08: ffffffff81ed2822 R09: ffffed1020040c4b
R10: ffffed1020040c4b R11: 1ffff11020040c4a R12: 0000000000000051
R13: ffff8881069c0b60 R14: 0000000000000048 R15: dffffc0000000000
FS:  00007f11627c2700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe4dd53098 CR3: 000000011d0d1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_da_write_end+0x3d7/0xa70 fs/ext4/inode.c:3076
 generic_perform_write+0x3c7/0x5d0 mm/filemap.c:3836
 ext4_buffered_write_iter+0x49b/0x630 fs/ext4/file.c:271
 ext4_file_write_iter+0x456/0x1dc0
 do_iter_readv_writev+0x52a/0x720
 do_iter_write+0x1f4/0x760 fs/read_write.c:855
 vfs_iter_write+0x7c/0xa0 fs/read_write.c:896
 iter_file_splice_write+0x810/0xfd0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0xfe/0x130 fs/splice.c:934
 splice_direct_to_actor+0x4d4/0xbd0 fs/splice.c:889
 do_splice_direct+0x2a0/0x3f0 fs/splice.c:977
 do_sendfile+0x63b/0xfd0 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1303
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f11628169a9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 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:00007f11627c2208 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f116289b7a8 RCX: 00007f11628169a9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007f116289b7a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000080000041 R11: 0000000000000246 R12: 00007f116289b7ac
R13: 00007ffe4dd5303f R14: 00007f11627c2300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 9866885b1de74a8b ]---
RIP: 0010:ext4_write_inline_data fs/ext4/inline.c:227 [inline]
RIP: 0010:ext4_write_inline_data_end+0xdff/0xe10 fs/ext4/inline.c:782
Code: f7 e8 05 ac c6 ff e9 20 fa ff ff e8 0b b8 d5 02 e8 86 5f 84 ff 0f 0b e8 7f 5f 84 ff 0f 0b e8 78 5f 84 ff 0f 0b e8 71 5f 84 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41
RSP: 0018:ffffc9000050f100 EFLAGS: 00010293
RAX: ffffffff81ed321f RBX: 0000000000000048 RCX: ffff8881069c0000
RDX: 0000000000000000 RSI: 0000000000000048 RDI: 0000000000000051
RBP: ffffc9000050f250 R08: ffffffff81ed2822 R09: ffffed1020040c4b
R10: ffffed1020040c4b R11: 1ffff11020040c4a R12: 0000000000000051
R13: ffff8881069c0b60 R14: 0000000000000048 R15: dffffc0000000000
FS:  00007f11627c2700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe4dd53098 CR3: 000000011d0d1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/28 16:55 android13-5.15-lts 4ec71a9ec769 247de55b .config console log report syz C [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/11/08 07:01 android13-5.15-lts 7f2e600bf63a 6feb842b .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/11/06 09:16 android13-5.15-lts 7f2e600bf63a 6d752409 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/10/05 15:37 android13-5.15-lts 4305285a3554 267e3bb1 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/10/05 09:08 android13-5.15-lts 4305285a3554 267e3bb1 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/11/04 07:30 android13-5.15-lts 7f2e600bf63a 6d752409 .config console log report syz [disk image] [vmlinux] [mounted in repro] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/12/05 00:17 android13-5.15-lts 92f701cae0bc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/11/06 07:51 android13-5.15-lts 7f2e600bf63a 6d752409 .config console log report info [disk image] [vmlinux] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/10/14 14:02 android13-5.15-lts 44b8b2ac1d96 4954e4b2 .config console log report info ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/10/09 13:28 android13-5.15-lts 43eb03f7ce81 aea5da89 .config console log report info [disk image] [vmlinux] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
2022/10/08 09:48 android13-5.15-lts 43eb03f7ce81 aea5da89 .config console log report info [disk image] [vmlinux] ci2-android-5-15 kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.