syzbot


WARNING in ext4_dio_write_end_io

Status: fixed on 2024/01/20 21:18
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+47479b71cdfc78f56d30@syzkaller.appspotmail.com
Fix commit: 619f75dae2cf ext4: fix warning in ext4_dio_write_end_io()
First crash: 157d, last: 157d
Cause bisection: introduced by (bisect log) :
commit 91562895f8030cb9a0470b1db49de79346a69f91
Author: Jan Kara <jack@suse.cz>
Date: Fri Oct 13 12:13:50 2023 +0000

  ext4: properly sync file size update after O_SYNC direct IO

Crash: WARNING in ext4_dio_write_end_io (log)
Repro: C syz .config
  
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] ext4: Fix warning in ext4_dio_write_end_io() 3 (3) 2023/12/01 14:46
[PATCH] ext4: Fix warning in ext4_dio_write_end_io() 5 (5) 2023/11/30 09:55
[syzbot] [ext4?] WARNING in ext4_dio_write_end_io 1 (2) 2023/11/22 17:11

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4481 at fs/ext4/file.c:391 ext4_dio_write_end_io+0x1db/0x220 fs/ext4/file.c:391
Modules linked in:
CPU: 1 PID: 4481 Comm: kworker/1:2 Not tainted 6.7.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Workqueue: dio/sda1 iomap_dio_complete_work
RIP: 0010:ext4_dio_write_end_io+0x1db/0x220 fs/ext4/file.c:391
Code: e8 6a 37 56 ff 4c 89 e2 4c 89 f6 48 89 ef e8 8c f6 ff ff 89 c3 eb 92 4c 89 ff e8 70 c7 ac ff e9 66 ff ff ff e8 46 37 56 ff 90 <0f> 0b 90 e9 34 ff ff ff e8 58 c7 ac ff e9 e9 fe ff ff 4c 89 ff e8
RSP: 0018:ffffc9000dd97c40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000000081fd RCX: ffffffff8231521e
RDX: ffff88802a403b80 RSI: ffffffff823152ea RDI: 0000000000000006
RBP: ffff88807cf83eb0 R08: 0000000000000006 R09: 0000000000004000
R10: 00000000000081fd R11: 0000000000000001 R12: 0000000000004000
R13: 0000000000004000 R14: 0000000000000000 R15: ffff88807cf83e10
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbc3a9779ee CR3: 0000000077984000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 iomap_dio_complete+0x149/0x9f0 fs/iomap/direct-io.c:91
 iomap_dio_complete_work+0x56/0x80 fs/iomap/direct-io.c:146
 process_one_work+0x886/0x15d0 kernel/workqueue.c:2630
 process_scheduled_works kernel/workqueue.c:2703 [inline]
 worker_thread+0x8b9/0x1290 kernel/workqueue.c:2784
 kthread+0x2c6/0x3a0 kernel/kthread.c:388
 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/21 17:26 upstream 98b1cc82c4af cb976f63 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in ext4_dio_write_end_io
2023/11/21 15:53 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in ext4_dio_write_end_io
* Struck through repros no longer work on HEAD.