syzbot


kernel BUG in ext4_write_inline_data_end

Status: upstream: reported C repro on 2023/11/14 10:56
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+8116d2c9a7677fd7d3f3@syzkaller.appspotmail.com
First crash: 441d, last: 39d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit 02bcb6d00a11ff0252ee54ec20f757e7bc858a9f
Author: Eric Biggers <ebiggers@google.com>
Date: Mon Aug 14 18:29:01 2023 +0000

  ext4: reject casefold inode flag without casefold feature

  
Bug presence (3)
Date Name Commit Repro Result
2023/11/14 lts (merge base) 52a953d0934b C [report] kernel BUG in __block_commit_write
2024/11/15 lts (merge base) aa4cd140bba5 C Didn't crash
2023/11/14 upstream (ToT) 9bacdd8996c7 C Didn't crash
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 744d 1567d 22/28 fixed on 2023/02/24 13:50
android-54 kernel BUG in ext4_write_inline_data_end C 4 928d 1061d 2/2 fixed on 2022/09/27 22:24
android-5-10 kernel BUG in ext4_write_inline_data_end C error 3 994d 1061d 0/2 closed as dup on 2022/03/04 15:25
android-5-15 kernel BUG in ext4_write_inline_data_end (2) origin:upstream C 9 6d03h 492d 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 14 22d 946d 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 error 43 71d 688d 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 785d 846d 2/2 fixed on 2023/02/02 00:40
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 697d 1444d 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 4 114d 609d 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 400d 698d 25/28 fixed on 2024/01/30 23:26
android-54 kernel BUG in ext4_write_inline_data_end (2) ext4 syz 9 112d 734d 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 784d 1369d 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 164 2d20h 361d 0/28 upstream: reported C repro on 2024/02/02 09:24
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/11/28 11:23 6m retest repro android14-6.1 report log
Fix bisection attempts (10)
Created Duration User Patch Repo Result
2024/11/17 00:56 4h57m bisect fix android14-6.1 OK (1) job log
2024/10/11 05:13 2h39m bisect fix android14-6.1 OK (0) job log log
2024/08/26 23:09 1h08m bisect fix android14-6.1 OK (0) job log log
2024/07/25 12:28 59m bisect fix android14-6.1 OK (0) job log log
2024/06/11 01:53 43m bisect fix android14-6.1 OK (0) job log log
2024/05/11 16:28 1h13m bisect fix android14-6.1 OK (0) job log log
2024/04/10 14:34 2h06m bisect fix android14-6.1 OK (0) job log log
2024/03/09 17:07 42m bisect fix android14-6.1 OK (0) job log log
2024/02/01 11:10 1h30m bisect fix android14-6.1 OK (0) job log log
2023/12/29 16:39 41m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
EXT4-fs (loop3): mounted filesystem without journal. Quota mode: writeback.
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:767!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 21126 Comm: syz.3.5869 Not tainted 6.1.118-syzkaller-00074-g3e3f2b9e9fca #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/25/2024
RIP: 0010:ext4_write_inline_data_end+0xa85/0xa90 fs/ext4/inline.c:767
Code: f8 ff ff 44 89 e9 80 e1 07 fe c1 38 c1 0f 8c 17 fb ff ff 4c 89 ef e8 fa 52 ca ff e9 0a fb ff ff e8 50 e2 28 03 e8 cb df 82 ff <0f> 0b e8 c4 df 82 ff 0f 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc9000ddff160 EFLAGS: 00010246
RAX: ffffffff81f2a6e5 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000633d000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000ddff278 R08: ffffffff81f29ed3 R09: ffffed102172d50c
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000001c00080000
R13: ffff888113f06540 R14: ffff88810b96a858 R15: ffff88810b96a970
FS:  00007fc4d11056c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000280 CR3: 0000000127040000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_write_end+0x395/0x910 fs/ext4/inode.c:1346
 generic_perform_write+0x416/0x780 mm/filemap.c:3888
 ext4_buffered_write_iter+0x360/0x640 fs/ext4/file.c:285
 ext4_file_write_iter+0x194/0x1570
 do_iter_write+0x6e6/0xc40 fs/read_write.c:861
 vfs_iter_write+0x7c/0xa0 fs/read_write.c:902
 iter_file_splice_write+0x7f8/0xf90 fs/splice.c:685
 do_splice_from fs/splice.c:763 [inline]
 direct_splice_actor+0xff/0x130 fs/splice.c:930
 splice_direct_to_actor+0x4b4/0xbb0 fs/splice.c:885
 do_splice_direct+0x27f/0x3c0 fs/splice.c:973
 do_sendfile+0x613/0xfe0 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1309
 x64_sys_call+0x140/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:41
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc4d0385d29
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc4d1105038 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fc4d0575fa0 RCX: 00007fc4d0385d29
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000007
RBP: 00007fc4d0401aa8 R08: 0000000000000000 R09: 0000000000000000
R10: 000000000003ffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc4d0575fa0 R15: 00007ffd2e1a1728
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data_end+0xa85/0xa90 fs/ext4/inline.c:767
Code: f8 ff ff 44 89 e9 80 e1 07 fe c1 38 c1 0f 8c 17 fb ff ff 4c 89 ef e8 fa 52 ca ff e9 0a fb ff ff e8 50 e2 28 03 e8 cb df 82 ff <0f> 0b e8 c4 df 82 ff 0f 0b 66 90 55 48 89 e5 41 57 41 56 41 55 41
RSP: 0018:ffffc9000ddff160 EFLAGS: 00010246
RAX: ffffffff81f2a6e5 RBX: 0000000000000000 RCX: 0000000000080000
RDX: ffffc9000633d000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc9000ddff278 R08: ffffffff81f29ed3 R09: ffffed102172d50c
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000001c00080000
R13: ffff888113f06540 R14: ffff88810b96a858 R15: ffff88810b96a970
FS:  00007fc4d11056c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3f41dfef98 CR3: 0000000127040000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/12/20 21:54 android14-6.1 3e3f2b9e9fca 0f61b415 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_write_inline_data_end
2023/11/14 10:54 android14-6.1 a59b32866cd4 cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-6-1 kernel BUG in ext4_write_inline_data_end
* Struck through repros no longer work on HEAD.