syzbot


WARNING in iomap_page_release

Status: upstream: reported C repro on 2024/02/19 08:31
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+c0ffed3897231d71f047@syzkaller.appspotmail.com
First crash: 73d, last: 73d
Fix commit to backport (bisect log) :
tree: upstream
commit e9c3a8e820ed0eeb2be05072f29f80d1b79f053b
Author: Darrick J. Wong <djwong@kernel.org>
Date: Mon May 16 22:27:38 2022 +0000

  iomap: don't invalidate folios after writeback errors

  
Bug presence (2)
Date Name Commit Repro Result
2024/02/19 linux-5.15.y (ToT) 6139f2a02fe0 C [report] WARNING in iomap_page_release
2024/02/19 upstream (ToT) b401b621758e C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in iomap_page_release iomap 1 1028d 1024d 0/26 auto-closed as invalid on 2021/09/07 21:11
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/02/20 18:41 4h24m fix candidate upstream job log (1)

Sample crash report:
XFS (loop0): Corruption of in-memory data (0x8) detected at xfs_defer_finish_noroll+0x1750/0x1df0 fs/xfs/libxfs/xfs_defer.c:504 (fs/xfs/libxfs/xfs_defer.c:504).  Shutting down filesystem.
XFS (loop0): Please unmount the filesystem and rectify the problem(s)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3507 at fs/iomap/buffered-io.c:80 iomap_page_release+0x305/0x3b0
Modules linked in:
CPU: 1 PID: 3507 Comm: syz-executor895 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:iomap_page_release+0x305/0x3b0 fs/iomap/buffered-io.c:79
Code: e8 00 d8 8c ff 0f 0b e9 bc fe ff ff e8 f4 d7 8c ff 0f 0b e9 ec fe ff ff e8 e8 d7 8c ff 48 ff cb e9 49 ff ff ff e8 db d7 8c ff <0f> 0b eb bc 44 89 f1 80 e1 07 38 c1 0f 8c 23 fe ff ff 4c 89 f7 e8
RSP: 0018:ffffc90002e77838 EFLAGS: 00010293
RAX: ffffffff81f355e5 RBX: 0000000000000000 RCX: ffff888013fad940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 0000000000000001 R08: ffffffff81f3559c R09: fffff940003fa7d1
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffea0001fd3e80
R13: 0000000000000001 R14: ffff888023060800 R15: 1ffffd40003fa7d1
FS:  0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4c942730b8 CR3: 000000000c68e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 do_invalidatepage mm/truncate.c:157 [inline]
 truncate_cleanup_page+0x179/0x440 mm/truncate.c:176
 truncate_inode_pages_range+0x2e7/0x1290 mm/truncate.c:325
 evict+0x2b7/0x620 fs/inode.c:589
 dispose_list fs/inode.c:620 [inline]
 evict_inodes+0x601/0x6a0 fs/inode.c:670
 generic_shutdown_super+0x99/0x2c0 fs/super.c:454
 kill_block_super+0x7a/0xe0 fs/super.c:1414
 deactivate_locked_super+0xa0/0x110 fs/super.c:335
 cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:872
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f4c94228d49
Code: Unable to access opcode bytes at RIP 0x7f4c94228d1f.
RSP: 002b:00007ffe081ad478 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f4c94228d49
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007f4c942ae2d0 R08: ffffffffffffffb8 R09: 00007f4c942a85f0
R10: 00007ffe081ad4d0 R11: 0000000000000246 R12: 00007f4c942ae2d0
R13: 0000000000000000 R14: 00007f4c942af040 R15: 00007f4c941f7060
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/19 09:57 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan WARNING in iomap_page_release
2024/02/19 11:33 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 WARNING in iomap_page_release
2024/02/19 08:54 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in iomap_page_release
2024/02/19 08:30 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in iomap_page_release
* Struck through repros no longer work on HEAD.