syzbot


kernel BUG in ext4_write_inline_data

Status: fixed on 2023/05/04 14:51
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+00f9392c959181b8e1c6@syzkaller.appspotmail.com
Fix commit: 5e92073713f8 UPSTREAM: ext4: fix kernel BUG in 'ext4_write_inline_data_end()'
First crash: 592d, last: 493d
Cause bisection: failed (error log, bisect log)
  
Fix bisection the fix commit could be any of (bisect log):
  0118fb827bc7 Merge branch 'android12-5.10' into branch 'android12-5.10-lts'
  a02b4a8660e1 Revert "nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property"
  
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in ext4_write_inline_data ext4 C 4 497d 593d 0/1 upstream: reported C repro on 2022/11/04 18:44
upstream kernel BUG at fs/ext4/inline.c:LINE! ext4 C done done 76 521d 1344d 22/27 fixed on 2023/02/24 13:50
upstream kernel BUG in ext4_write_inline_data ext4 C error 35 12d 461d 0/27 upstream: reported C repro on 2023/03/17 03:16
android-6-1 kernel BUG in ext4_write_inline_data origin:lts C error 14 14d 353d 0/2 upstream: reported C repro on 2023/07/02 21:30
linux-4.19 kernel BUG in ext4_write_inline_data_end ext4 C error 12 474d 1221d 0/1 upstream: reported C repro on 2021/02/14 13:39
android-54 kernel BUG in ext4_write_inline_data C 3 554d 592d 2/2 fixed on 2023/04/05 17:17
Last patch testing requests (1)
Created Duration User Patch Repo Result
2022/11/22 03:13 16m jun.nie@linaro.org patch android12-5.10-lts OK log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/14 10:38 16m bisect fix android12-5.10-lts job log (2)
2023/01/23 03:14 20m bisect fix android12-5.10-lts job log (0) log

Sample crash report:
EXT4-fs (loop0): dirty_blocks=96
EXT4-fs (loop0): Block reservation details
EXT4-fs (loop0): i_reserved_data_blocks=1
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:226!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 371 Comm: syz-executor104 Not tainted 5.10.149-syzkaller-01350-g0118fb827bc7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:ext4_write_inline_data+0x382/0x390 fs/ext4/inline.c:226
Code: ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 35 ff ff ff 48 89 df e8 4f c5 cc ff e9 28 ff ff ff e8 05 a6 92 ff 0f 0b e8 fe a5 92 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56
RSP: 0018:ffffc90000a0f638 EFLAGS: 00010293
RAX: ffffffff81da4482 RBX: 000000000000003c RCX: ffff8881067e13c0
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000002004c
RBP: ffffc90000a0f690 R08: ffffffff81da424f R09: ffffed10209fae53
R10: ffffed10209fae53 R11: 1ffff110209fae52 R12: 0000000000020026
R13: ffffc90000a0f700 R14: 000000000002004c R15: ffff88811a58dd7c
FS:  0000555555947300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004571f0 CR3: 0000000106bd4000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_write_inline_data_end+0x258/0x4b0 fs/ext4/inline.c:772
 ext4_write_end+0x1e5/0xde0 fs/ext4/inode.c:1304
 ext4_da_write_end+0xb7/0xb40 fs/ext4/inode.c:3144
 generic_perform_write+0x410/0x5b0 mm/filemap.c:3479
 ext4_buffered_write_iter+0x47c/0x610 fs/ext4/file.c:272
 ext4_file_write_iter+0x192/0x1cd0 fs/ext4/file.c:683
 call_write_iter include/linux/fs.h:1952 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0xc4a/0xf80 fs/read_write.c:605
 ksys_write+0x198/0x2c0 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x7b/0x90 fs/read_write.c:667
 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fe02542fa49
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff90bab7d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe02542fa49
RDX: 0000000000000026 RSI: 0000000020000580 RDI: 0000000000000003
RBP: 00007fe0253ef210 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fe0253ef2a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace f80412e140b121f6 ]---
RIP: 0010:ext4_write_inline_data+0x382/0x390 fs/ext4/inline.c:226
Code: ff ff 89 d9 80 e1 07 fe c1 38 c1 0f 8c 35 ff ff ff 48 89 df e8 4f c5 cc ff e9 28 ff ff ff e8 05 a6 92 ff 0f 0b e8 fe a5 92 ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56
RSP: 0018:ffffc90000a0f638 EFLAGS: 00010293
RAX: ffffffff81da4482 RBX: 000000000000003c RCX: ffff8881067e13c0
RDX: 0000000000000000 RSI: 000000000000003c RDI: 000000000002004c
RBP: ffffc90000a0f690 R08: ffffffff81da424f R09: ffffed10209fae53
R10: ffffed10209fae53 R11: 1ffff110209fae52 R12: 0000000000020026
R13: ffffc90000a0f700 R14: 000000000002004c R15: ffff88811a58dd7c
FS:  0000555555947300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000004571f0 CR3: 0000000106bd4000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/06 08:10 android12-5.10-lts 0118fb827bc7 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-10 kernel BUG in ext4_write_inline_data
2023/02/12 10:37 android12-5.10-lts 416c4356f372 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data
2022/11/06 07:37 android12-5.10-lts 0118fb827bc7 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 kernel BUG in ext4_write_inline_data
* Struck through repros no longer work on HEAD.