syzbot


WARNING in iomap_iter

Status: upstream: reported C repro on 2021/11/08 23:46
Reported-by: syzbot+a8e049cd3abd342936b6@syzkaller.appspotmail.com
Fix commit: 6acd87d50998 erofs/zmap.c: Fix incorrect offset calculation c490a0b5a4f3 loop: Check for overflow while configuring loop
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte 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-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 458d, last: 28d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in iomap_apply (log)
Repro: C syz .config
Last patch testing requests:
Created Duration User Patch Repo Result
2022/08/23 15:36 15m code@siddh.me patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/08/23 15:21 15m code@siddh.me patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/08/21 11:48 15m code@siddh.me patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/08/18 11:12 16m code@siddh.me patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/08/18 11:01 10m code@siddh.me patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log

Sample crash report:
loop0: detected capacity change from 0 to 131072
erofs: (device loop0): mounted with root inode @ nid 36.
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3604 at fs/iomap/iter.c:34 iomap_iter_done fs/iomap/iter.c:34 [inline]
WARNING: CPU: 1 PID: 3604 at fs/iomap/iter.c:34 iomap_iter+0xd80/0x1100 fs/iomap/iter.c:78
Modules linked in:
CPU: 1 PID: 3604 Comm: syz-executor126 Not tainted 6.0.0-syzkaller-09413-g4899a36f91a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:iomap_iter_done fs/iomap/iter.c:34 [inline]
RIP: 0010:iomap_iter+0xd80/0x1100 fs/iomap/iter.c:78
Code: f8 ff ff e8 e2 9f d3 ff e9 34 f8 ff ff e8 c8 89 86 ff 0f 0b e9 f1 f9 ff ff e8 bc 89 86 ff 0f 0b e9 86 f7 ff ff e8 b0 89 86 ff <0f> 0b e9 5e f7 ff ff e8 a4 89 86 ff 0f 0b e9 1a f7 ff ff e8 98 89
RSP: 0018:ffffc90003dcfa88 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc90003dcfb98 RCX: 0000000000000000
RDX: ffff8880269fbb00 RSI: ffffffff81f4bd80 RDI: 0000000000000007
RBP: 000000009566a926 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 000000000008c07c R12: 0000000000000000
R13: 000000009566a929 R14: ffffc90003dcfbc0 R15: ffffc90003dcfc08
FS:  0000555555cbc300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000a82258 CR3: 00000000263ea000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 iomap_fiemap+0x1e8/0x360 fs/iomap/fiemap.c:80
 erofs_fiemap+0x6d/0xa0 fs/erofs/data.c:341
 ioctl_fiemap fs/ioctl.c:219 [inline]
 do_vfs_ioctl+0x466/0x15c0 fs/ioctl.c:810
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl fs/ioctl.c:856 [inline]
 __x64_sys_ioctl+0x108/0x200 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9af13b7d89
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:00007ffc6ed83828 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9af13b7d89
RDX: 0000000020000380 RSI: 00000000c020660b RDI: 0000000000000005
RBP: 00007f9af1377580 R08: 0000555555cbc2c0 R09: 0000000000000000
R10: 00007ffc6ed836e0 R11: 0000000000000246 R12: 00007f9af1377610
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-selinux-root 2022/06/15 19:22 upstream 979086f5e006 9e8eaa75 .config console log report syz C
ci-upstream-kasan-gce-selinux-root 2022/05/15 08:26 upstream 2fe1020d73ca 9e8eaa75 .config console log report syz C
ci-upstream-kasan-gce-selinux-root 2022/04/15 04:21 upstream 028192fea1de 9e8eaa75 .config console log report syz C
* Struck through repros no longer work on HEAD.
Crashes (141):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/10/10 20:00 upstream 4899a36f91a9 aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] WARNING in iomap_iter
ci2-upstream-fs 2022/09/26 02:06 upstream 105a36f3694e 0042f2b4 .config strace log report syz C [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-kasan-gce-root 2022/07/29 17:53 upstream 6e2c0490769e fef302b1 .config strace log report syz C WARNING in iomap_iter
ci-upstream-kasan-gce 2022/06/21 12:51 upstream 78ca55889a54 0fc5c330 .config strace log report syz C WARNING in iomap_iter
ci-upstream-kasan-gce-selinux-root 2022/03/16 01:03 upstream 56e337f2cf13 9e8eaa75 .config console log report syz C WARNING in iomap_iter
ci-upstream-kasan-gce-smack-root 2022/02/12 20:40 upstream 83e396641110 8b9ca619 .config console log report syz C WARNING in iomap_iter
ci-upstream-kasan-gce-386 2022/07/02 01:56 upstream a175eca0f3d7 1434eec0 .config console log report syz C WARNING in iomap_iter
ci-upstream-linux-next-kasan-gce-root 2022/11/06 13:13 linux-next 0cdb3579f1ee 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] WARNING in iomap_iter
ci-upstream-linux-next-kasan-gce-root 2022/02/20 08:03 linux-next ef6b35306dd8 3cd800e4 .config console log report syz C WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/04 03:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report syz C [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/09/25 06:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 0042f2b4 .config console log report syz C [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-kasan-gce-root 2022/07/22 09:03 upstream 68e77ffbfd06 5e6028b9 .config console log report syz WARNING in iomap_iter
ci2-upstream-fs 2023/01/09 09:17 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci2-upstream-fs 2023/01/03 20:50 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci2-upstream-fs 2023/01/01 07:12 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-kasan-gce-selinux-root 2022/12/29 04:13 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-kasan-gce 2022/10/30 07:21 upstream b229b6ca5abb 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-kasan-gce-root 2022/10/24 12:03 upstream a70385240892 23bf86af .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci2-upstream-fs 2022/10/24 02:37 upstream d47136c28015 23bf86af .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-kasan-gce-root 2022/10/20 06:21 upstream 55be6084c8e0 b31320fc .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-kasan-gce-root 2022/10/15 22:01 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci2-upstream-fs 2022/10/15 13:08 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci2-upstream-fs 2022/10/15 07:54 upstream 493ffd6605b2 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-qemu-upstream 2022/09/24 15:24 upstream a63f2e7cb110 0042f2b4 .config console log report info WARNING in iomap_iter
ci-upstream-kasan-gce-smack-root 2022/09/16 00:16 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-kasan-gce-386 2022/08/07 08:29 upstream 200e340f2196 88e3a122 .config console log report info WARNING in iomap_iter
ci-qemu-upstream-386 2021/11/12 13:45 upstream 5833291ab6de 75b04091 .config console log report info WARNING in iomap_iter
ci-upstream-kasan-gce-386 2021/11/04 23:43 upstream 7ddb58cb0eca 4c1be0be .config console log report info WARNING in iomap_iter
ci-upstream-linux-next-kasan-gce-root 2023/01/05 02:43 linux-next c76083fac3ba 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-linux-next-kasan-gce-root 2022/10/30 13:05 linux-next 4d48f589d294 2a71366b .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/12/20 07:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/13 23:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/11 17:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/11 15:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/10 16:32 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 3ead01ad .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/10 09:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/10 04:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 b2488a87 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/10 02:33 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 1621b6eaebf7 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/09 07:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 56751c56c2a2 5fa28208 .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/09 04:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 56751c56c2a2 060f945e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/08 19:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 56751c56c2a2 060f945e .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/08 05:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 3577a7611842 881db35d .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/07 13:29 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci f0c4d9fc9cc9 a779b11a .config console log report info [disk image] [vmlinux] [kernel image] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/06 09:44 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/05 01:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/04 20:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/11/04 06:13 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 6d752409 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/26 09:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 1984aebd .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/16 13:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/16 08:46 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/16 02:18 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/15 01:05 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/14 19:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/14 05:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/14 03:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4954e4b2 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/14 00:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/13 20:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/13 10:20 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 adf90437 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/13 03:14 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 3f6b40a1 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/12 16:30 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 89b5a509 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/12 15:42 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 89b5a509 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/12 11:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 16a9c9e0 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/12 03:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 16a9c9e0 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
ci-upstream-gce-arm64 2022/10/11 14:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 1353c374 .config console log report info [disk image] [vmlinux] WARNING in iomap_iter
* Struck through repros no longer work on HEAD.