syzbot


WARNING in __mpage_writepage

Status: upstream: reported C repro on 2023/01/31 10:05
Subsystems: hfs (incorrect?)
Reported-by: syzbot+707bba7f823c7b02fa43@syzkaller.appspotmail.com
Fix commit: mpage-convert-__mpage_writepage-to-use-a-folio-more-fully-fix
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 54d, last: 49d

Cause bisection: failed (error log, bisect log)

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 5085 at fs/mpage.c:570 __mpage_writepage+0x138b/0x16f0 fs/mpage.c:570
Modules linked in:
CPU: 1 PID: 5085 Comm: syz-executor403 Not tainted 6.2.0-rc5-next-20230127-syzkaller-08766-ge2f86c02fdc9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:__mpage_writepage+0x138b/0x16f0 fs/mpage.c:570
Code: 00 00 48 89 ef e8 15 24 df ff 48 8b 44 24 38 f0 80 88 c0 01 00 00 02 48 c7 44 24 10 00 00 00 00 e9 3c f0 ff ff e8 c5 25 90 ff <0f> 0b 48 8b 44 24 08 48 83 c0 10 48 89 44 24 20 e9 78 ef ff ff e8
RSP: 0018:ffffc90003bff4e8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: fffffffffffe2000 RCX: 0000000000000000
RDX: ffff888021b11d40 RSI: ffffffff81f48f5b RDI: 0000000000000006
RBP: 000000000001e000 R08: 0000000000000006 R09: 0000000000000000
R10: 000000000001e000 R11: 0000000000000000 R12: 0000000000000004
R13: ffff88801b930000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f5bbe1fd700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffee627fdc0 CR3: 000000001c713000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 write_cache_pages+0x4cc/0xe70 mm/page-writeback.c:2473
 mpage_writepages+0xc6/0x170 fs/mpage.c:652
 do_writepages+0x1a8/0x640 mm/page-writeback.c:2551
 filemap_fdatawrite_wbc mm/filemap.c:388 [inline]
 filemap_fdatawrite_wbc+0x147/0x1b0 mm/filemap.c:378
 __filemap_fdatawrite_range+0xb8/0xf0 mm/filemap.c:421
 file_write_and_wait_range+0xce/0x140 mm/filemap.c:779
 hfsplus_file_fsync+0xc3/0x5d0 fs/hfsplus/inode.c:313
 vfs_fsync_range+0x13e/0x230 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2452 [inline]
 generic_file_write_iter+0x25a/0x350 mm/filemap.c:3934
 call_write_iter include/linux/fs.h:1851 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x9ed/0xe10 fs/read_write.c:584
 ksys_write+0x12b/0x250 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f5bbe258be9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 18 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:00007f5bbe1fd2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f5bbe2d56c0 RCX: 00007f5bbe258be9
RDX: 000000000208e280 RSI: 0000000020001980 RDI: 0000000000000004
RBP: 00007f5bbe2a2640 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5bbe2a22e0
R13: 0030656c69662f2e R14: 0073756c70736668 R15: 00007f5bbe2d56c8
 </TASK>

Crashes (81):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-linux-next-kasan-gce-root 2023/01/27 21:34 linux-next e2f86c02fdc9 9dfcf09c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/02/01 02:40 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/31 15:32 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/31 12:00 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/31 08:33 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/31 07:22 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/31 05:21 linux-next 80bd9028feca 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/31 03:03 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 22:31 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 19:20 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 15:48 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 13:56 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 09:46 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 08:18 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 05:40 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/30 04:35 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/29 23:44 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/29 21:21 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/29 11:55 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/29 10:22 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/29 08:48 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/29 01:21 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 22:06 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 21:33 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 18:11 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 18:10 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 17:08 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 16:01 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 11:41 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 10:54 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 08:35 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 06:40 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 06:12 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 03:07 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 00:56 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/28 00:24 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 22:19 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 20:46 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 20:43 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 20:02 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 18:44 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 17:22 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
ci-upstream-linux-next-kasan-gce-root 2023/01/27 17:17 linux-next e2f86c02fdc9 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] WARNING in __mpage_writepage
* Struck through repros no longer work on HEAD.