syzbot


WARNING in iomap_iter

Status: fixed on 2023/06/12 19:24
Subsystems: iomap
[Documentation on labels]
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
First crash: 1113d, last: 683d
Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in iomap_apply (log)
Repro: C syz .config
  
Discussions (16)
Title Replies (including bot) Last reply
[PATCH linux-5.4.y 7/8] loop: Check for overflow while configuring loop 1 (1) 2024/03/07 04:14
[PATCH 4.19.y 8/9] loop: Check for overflow while configuring loop 1 (1) 2024/03/01 01:30
[PATCH AUTOSEL 6.1 01/35] ARM: dts: imx: Fix pca9547 i2c-mux node name 42 (42) 2023/02/01 15:21
[PATCH AUTOSEL 5.15 01/14] ARM: dts: imx: Fix pca9547 i2c-mux node name 15 (15) 2023/01/24 13:44
[PATCH v2] erofs/zmap.c: Fix incorrect offset calculation 3 (3) 2023/01/09 10:35
[RFC PATCH] erofs/zmap.c: Bail out when no further region remains 6 (6) 2022/12/09 08:29
[syzbot] WARNING in iomap_iter 19 (26) 2022/11/14 11:50
[PATCH 4.19 00/56] 4.19.257-rc1 review 62 (62) 2022/09/05 07:44
[PATCH 4.9 00/31] 4.9.327-rc1 review 37 (37) 2022/09/05 07:42
[PATCH 4.14 00/42] 4.14.292-rc1 review 45 (45) 2022/09/03 13:14
[PATCH 5.4 00/77] 5.4.212-rc1 review 83 (83) 2022/09/03 13:11
[PATCH 5.19 000/158] 5.19.6-rc1 review 173 (173) 2022/09/02 18:16
[PATCH 5.15 000/136] 5.15.64-rc1 review 155 (155) 2022/09/01 18:33
[PATCH 5.10 00/86] 5.10.140-rc1 review 96 (96) 2022/08/30 11:56
[PATCH v2] loop: Check for overflow while configuring loop 5 (5) 2022/08/24 12:53
[PATCH] loop: Correct UAPI definitions to match with driver 2 (2) 2022/08/21 11:23
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in iomap_iter (4) iomap erofs C done 1 10d 6d21h 20/28 upstream: reported C repro on 2024/11/15 12:18
linux-6.1 WARNING in iomap_iter origin:lts-only C done 18 167d 235d 0/3 upstream: reported C repro on 2024/04/01 07:45
upstream WARNING in iomap_iter (3) erofs C done 29 39d 38d 0/28 closed as invalid on 2024/10/15 10:39
upstream WARNING in iomap_iter (2) iomap C 4 207d 203d 25/28 fixed on 2024/06/05 13:52
Last patch testing requests (5)
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
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2022/06/15 18:50 32m bisect fix upstream OK (0) job log log
2022/05/15 07:56 30m bisect fix upstream OK (0) job log log
2022/04/15 04:03 18m bisect fix upstream OK (0) job log 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>

Crashes (141):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/10 20:00 upstream 4899a36f91a9 aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-kasan-gce-root WARNING in iomap_iter
2022/09/26 02:06 upstream 105a36f3694e 0042f2b4 .config strace log report syz C [disk image] [vmlinux] ci2-upstream-fs WARNING in iomap_iter
2022/07/29 17:53 upstream 6e2c0490769e fef302b1 .config strace log report syz C ci-upstream-kasan-gce-root WARNING in iomap_iter
2022/06/21 12:51 upstream 78ca55889a54 0fc5c330 .config strace log report syz C ci-upstream-kasan-gce WARNING in iomap_iter
2022/03/16 01:03 upstream 56e337f2cf13 9e8eaa75 .config console log report syz C ci-upstream-kasan-gce-selinux-root WARNING in iomap_iter
2022/02/12 20:40 upstream 83e396641110 8b9ca619 .config console log report syz C ci-upstream-kasan-gce-smack-root WARNING in iomap_iter
2022/07/02 01:56 upstream a175eca0f3d7 1434eec0 .config console log report syz C ci-upstream-kasan-gce-386 WARNING in iomap_iter
2022/11/06 13:13 linux-next 0cdb3579f1ee 6d752409 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root WARNING in iomap_iter
2022/02/20 08:03 linux-next ef6b35306dd8 3cd800e4 .config console log report syz C ci-upstream-linux-next-kasan-gce-root WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
2022/07/22 09:03 upstream 68e77ffbfd06 5e6028b9 .config console log report syz ci-upstream-kasan-gce-root WARNING in iomap_iter
2023/01/09 09:17 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in iomap_iter
2023/01/03 20:50 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in iomap_iter
2023/01/01 07:12 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in iomap_iter
2022/12/29 04:13 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in iomap_iter
2022/10/30 07:21 upstream b229b6ca5abb 2a71366b .config console log report info ci-upstream-kasan-gce WARNING in iomap_iter
2022/10/24 12:03 upstream a70385240892 23bf86af .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root WARNING in iomap_iter
2022/10/24 02:37 upstream d47136c28015 23bf86af .config console log report info ci2-upstream-fs WARNING in iomap_iter
2022/10/20 06:21 upstream 55be6084c8e0 b31320fc .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root WARNING in iomap_iter
2022/10/15 22:01 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-root WARNING in iomap_iter
2022/10/15 13:08 upstream 493ffd6605b2 67cb024c .config console log report info ci2-upstream-fs WARNING in iomap_iter
2022/10/15 07:54 upstream 493ffd6605b2 67cb024c .config console log report info ci2-upstream-fs WARNING in iomap_iter
2022/09/24 15:24 upstream a63f2e7cb110 0042f2b4 .config console log report info ci-qemu-upstream WARNING in iomap_iter
2022/09/16 00:16 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-kasan-gce-smack-root WARNING in iomap_iter
2022/08/07 08:29 upstream 200e340f2196 88e3a122 .config console log report info ci-upstream-kasan-gce-386 WARNING in iomap_iter
2021/11/12 13:45 upstream 5833291ab6de 75b04091 .config console log report info ci-qemu-upstream-386 WARNING in iomap_iter
2021/11/04 23:43 upstream 7ddb58cb0eca 4c1be0be .config console log report info ci-upstream-kasan-gce-386 WARNING in iomap_iter
2023/01/05 02:43 linux-next c76083fac3ba 1dac8c7a .config console log report info ci-upstream-linux-next-kasan-gce-root WARNING in iomap_iter
2022/10/30 13:05 linux-next 4d48f589d294 2a71366b .config console log report info [disk image] [vmlinux] ci-upstream-linux-next-kasan-gce-root WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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 ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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 ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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 ci-upstream-gce-arm64 WARNING in iomap_iter
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 ci-upstream-gce-arm64 WARNING in iomap_iter
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 ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
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] ci-upstream-gce-arm64 WARNING in iomap_iter
* Struck through repros no longer work on HEAD.