syzbot


WARNING in iomap_apply

Status: fixed on 2020/07/20 12:39
Subsystems: iomap
[Documentation on labels]
Reported-by: syzbot+77fa5bdb65cc39711820@syzkaller.appspotmail.com
Fix commit: 175efa81feb8 ext4: fix EXT4_MAX_LOGICAL_BLOCK macro ext4: fix EXT4_MAX_LOGICAL_BLOCK macro
First crash: 1478d, last: 1434d
Cause bisection: introduced by (bisect log) :
commit d3b6f23f71670007817a5d59f3fbafab2b794e8c
Author: Ritesh Harjani <riteshh@linux.ibm.com>
Date: Fri Feb 28 09:26:58 2020 +0000

  ext4: move ext4_fiemap to use iomap framework

Crash: WARNING in iomap_apply (log)
Repro: C syz .config
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 5.4 00/61] 5.4.143-rc1 review 67 (67) 2021/08/25 22:36
[PATCH 5.4.y 0/0] missing upstream commit 175efa8 causing: WARNING in iomap_apply 3 (3) 2021/08/18 07:47
[PATCH 0/5] ext4/overlayfs: fiemap related fixes 27 (27) 2020/05/22 04:56
[PATCH 01/11] ext4: fix EXT4_MAX_LOGICAL_BLOCK macro 1 (1) 2020/05/05 15:43
[PATCH 01/11] ext4: fix EXT4_MAX_LOGICAL_BLOCK macro 1 (1) 2020/04/27 18:19
[PATCH 1/8] ext4: fix EXT4_MAX_LOGICAL_BLOCK macro 1 (1) 2020/04/27 09:58
[PATCHv2 1/1] ext4: Fix overflow case for map.m_len in ext4_iomap_begin_* 2 (2) 2020/04/22 12:26
Re: WARNING in iomap_apply 1 (1) 2020/04/16 14:58
WARNING in iomap_apply 6 (7) 2020/04/16 07:38
Re: WARNING in iomap_apply 1 (1) 2020/04/12 16:12
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in iomap_apply xfs 1 435d 435d 0/1 upstream: reported on 2023/02/14 11:53
Last patch testing requests (3)
Created Duration User Patch Repo Result
2020/04/16 12:05 16m riteshh@linux.ibm.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7e63420847ae5f1036e4f7c42f0b3282e73efbc2 OK
2020/04/16 08:06 9m riteshh@linux.ibm.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7e63420847ae5f1036e4f7c42f0b3282e73efbc2 report log
2020/04/16 05:20 9m riteshh@linux.ibm.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 7e63420847ae5f1036e4f7c42f0b3282e73efbc2 report log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7016 at fs/iomap/apply.c:51 iomap_apply+0x406/0x460 fs/iomap/apply.c:51
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7016 Comm: syz-executor030 Not tainted 5.7.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1e9/0x30e lib/dump_stack.c:118
 panic+0x264/0x7a0 kernel/panic.c:221
 __warn+0x209/0x210 kernel/panic.c:582
 report_bug+0x1ac/0x2d0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 do_error_trap+0xca/0x1c0 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:iomap_apply+0x406/0x460 fs/iomap/apply.c:51
Code: 48 89 e8 48 81 c4 d0 00 00 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ca a8 98 ff 0f 0b 48 c7 c5 fb ff ff ff eb c8 e8 ba a8 98 ff <0f> 0b 48 c7 c5 fb ff ff ff eb b8 48 8d 4c 24 50 80 e1 07 fe c1 38
RSP: 0018:ffffc90001c9fb98 EFLAGS: 00010293
RAX: ffffffff81dab8b6 RBX: 0000000000000000 RCX: ffff88808df123c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff81dab626 R09: ffffed1015d27074
R10: ffffed1015d27074 R11: 0000000000000000 R12: 0000000000000004
R13: 1ffff92000393f85 R14: ffffffff8866b8c0 R15: ffff8880876788b8
 iomap_fiemap+0x1b0/0x470 fs/iomap/fiemap.c:88
 _ext4_fiemap+0x4b2/0x590 fs/ext4/extents.c:4860
 ovl_fiemap+0x154/0x190 fs/overlayfs/inode.c:468
 ioctl_fiemap fs/ioctl.c:226 [inline]
 do_vfs_ioctl+0x14db/0x1910 fs/ioctl.c:715
 ksys_ioctl fs/ioctl.c:761 [inline]
 __do_sys_ioctl fs/ioctl.c:772 [inline]
 __se_sys_ioctl+0x81/0x160 fs/ioctl.c:770
 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x440369
Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffd5f62f358 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440369
RDX: 00000000200003c0 RSI: 00000000c020660b RDI: 0000000000000004
RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401bf0
R13: 0000000000401c80 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/30 16:39 upstream 1d2cc5ac6f66 3698959a .config console log report syz C ci-upstream-kasan-gce-smack-root
2020/04/29 02:07 upstream 3f777e19d171 e3ecea2e .config console log report syz C ci-upstream-kasan-gce-root
2020/04/07 07:59 upstream 7e63420847ae 99a96044 .config console log report syz C ci-upstream-kasan-gce-selinux-root
2020/05/21 08:10 linux-next ac935d227366 c61086ab .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/05/20 19:53 upstream 115a54162a6c 1255f02a .config console log report ci-upstream-kasan-gce-root
2020/05/17 06:38 upstream 3d1c1e5931ce 37bccd4e .config console log report ci-upstream-kasan-gce-selinux-root
2020/05/05 17:09 upstream 47cf1b422e60 4b76dd25 .config console log report ci-upstream-kasan-gce-smack-root
2020/05/02 04:00 upstream 052c467cb587 bc734e7a .config console log report ci-upstream-kasan-gce-smack-root
2020/05/02 03:59 upstream 052c467cb587 bc734e7a .config console log report ci-upstream-kasan-gce-root
2020/05/02 03:59 upstream 052c467cb587 bc734e7a .config console log report ci-upstream-kasan-gce-root
2020/05/02 03:59 upstream 052c467cb587 bc734e7a .config console log report ci-upstream-kasan-gce-smack-root
2020/05/02 03:57 upstream 052c467cb587 bc734e7a .config console log report ci-upstream-kasan-gce-selinux-root
2020/04/18 03:20 upstream 95988fbc7c31 435c6d53 .config console log report ci-upstream-kasan-gce-root
2020/04/13 16:13 upstream 8f3d9f354286 17a986e5 .config console log report ci-upstream-kasan-gce-smack-root
2020/04/11 17:36 upstream 5b8b9d0c6d0e a8c6a3f8 .config console log report ci-upstream-kasan-gce-selinux-root
2020/04/08 21:22 upstream f5e94d10e4c4 db9bcd4b .config console log report ci-upstream-kasan-gce-root
2020/04/08 21:12 upstream f5e94d10e4c4 db9bcd4b .config console log report ci-upstream-kasan-gce-smack-root
2020/04/07 07:32 upstream 7e63420847ae 99a96044 .config console log report ci-upstream-kasan-gce-selinux-root
2020/05/17 06:50 linux-next ac935d227366 37bccd4e .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/09 23:10 linux-next ac935d227366 88cb3e92 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/02 04:02 linux-next ac935d227366 bc734e7a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/02 04:02 linux-next ac935d227366 bc734e7a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/04/13 05:11 linux-next d2a22790db70 36b0b050 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/04/12 18:58 linux-next d2a22790db70 36b0b050 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/04/11 13:57 linux-next 11ecafc691e1 a8c6a3f8 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.