syzbot


WARNING in ext4_iomap_begin

Status: upstream: reported C repro on 2022/07/14 12:08
Reported-by: syzbot+c97a5f91bbd6de05e1c2@syzkaller.appspotmail.com
First crash: 138d, last: 109d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in ext4_iomap_begin (log)
Repro: C syz .config

Fix bisection: failed (bisect log)

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8422 at fs/ext4/inode.c:3418 ext4_iomap_begin+0x1aa/0x780 fs/ext4/inode.c:3418
Modules linked in:
CPU: 0 PID: 8422 Comm: syz-executor260 Not tainted 5.19.0-rc6-syzkaller-00115-g4a57a8400075 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:ext4_iomap_begin+0x1aa/0x780 fs/ext4/inode.c:3418
Code: 83 c0 01 38 d0 7c 08 84 d2 0f 85 d8 05 00 00 41 0f b7 9f c2 05 00 00 31 ff 89 de e8 70 72 5b ff 66 85 db 74 5c e8 46 76 5b ff <0f> 0b 41 bd de ff ff ff e8 39 76 5b ff 48 b8 00 00 00 00 00 fc ff
RSP: 0018:ffffc9000d87f260 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000000000bc RCX: 0000000000000000
RDX: ffff88807a848100 RSI: ffffffff821e24ea RDI: 0000000000000003
RBP: 0000000000000180 R08: 0000000000000003 R09: 0000000000000000
R10: 00000000000000bc R11: 0000000000000001 R12: 000000000000000c
R13: ffff88806f0aa6fa R14: ffffc9000d87f550 R15: ffff88806f0aa630
FS:  00007fcf662ec700(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fcf662cb718 CR3: 0000000021572000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 iomap_iter+0x454/0x1110 fs/iomap/iter.c:74
 __iomap_dio_rw+0x6b6/0x1a80 fs/iomap/direct-io.c:600
 iomap_dio_rw+0x3c/0xa0 fs/iomap/direct-io.c:689
 ext4_dio_write_iter fs/ext4/file.c:566 [inline]
 ext4_file_write_iter+0xe50/0x1520 fs/ext4/file.c:677
 call_write_iter include/linux/fs.h:2058 [inline]
 do_iter_readv_writev+0x3d1/0x640 fs/read_write.c:742
 do_iter_write+0x182/0x700 fs/read_write.c:868
 vfs_iter_write+0x70/0xa0 fs/read_write.c:909
 iter_file_splice_write+0x6fa/0xc10 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x110/0x180 fs/splice.c:936
 splice_direct_to_actor+0x34b/0x8c0 fs/splice.c:891
 do_splice_direct+0x1a7/0x270 fs/splice.c:979
 do_sendfile+0xae0/0x1240 fs/read_write.c:1262
 __do_sys_sendfile64 fs/read_write.c:1327 [inline]
 __se_sys_sendfile64 fs/read_write.c:1313 [inline]
 __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1313
 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:0x7fcf6633fe79
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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcf662ec2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fcf663c54c0 RCX: 00007fcf6633fe79
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004
RBP: 00007fcf663920bc R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffdffa R11: 0000000000000246 R12: 00007fcf663910b8
R13: 0030656c69662f2e R14: e5d26e84aa4cf3c6 R15: 00007fcf663c54c8
 </TASK>

Crashes (16):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-selinux-root 2022/07/14 04:08 upstream 4a57a8400075 5d921b08 .config log report syz C WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-smack-root 2022/08/09 03:53 upstream 200e340f2196 da700653 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-smack-root 2022/08/06 22:14 upstream 200e340f2196 88e3a122 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-selinux-root 2022/08/01 01:29 upstream 334c0ef6429f fef302b1 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-root 2022/07/29 14:41 upstream 6e2c0490769e fef302b1 .config log report info WARNING in ext4_iomap_begin
ci-qemu-upstream 2022/07/28 21:05 upstream 33ea1340bafe fb95c74d .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-root 2022/07/26 03:38 upstream e0dccc3b76fb 34795c51 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-root 2022/07/24 18:41 upstream af2c9ac24019 22343af4 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-selinux-root 2022/07/22 00:09 upstream 68e77ffbfd06 5e6028b9 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-smack-root 2022/07/21 02:07 upstream 353f7988dd84 88cb1383 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-root 2022/07/16 03:15 upstream 9b59ec8d50a1 95cb00d1 .config log report info WARNING in ext4_iomap_begin
ci-upstream-kasan-gce-selinux-root 2022/07/13 21:55 upstream 4a57a8400075 5d921b08 .config log report info WARNING in ext4_iomap_begin
ci-qemu-upstream-386 2022/08/10 23:47 upstream 200e340f2196 a6201f11 .config log report info WARNING in ext4_iomap_begin
ci-qemu-upstream-386 2022/08/06 23:24 upstream 200e340f2196 88e3a122 .config log report info WARNING in ext4_iomap_begin
ci-qemu-upstream-386 2022/07/13 10:49 upstream b047602d579b 5d921b08 .config log report info WARNING in ext4_iomap_begin
ci-upstream-linux-next-kasan-gce-root 2022/07/21 07:34 linux-next cb71b93c2dc3 6e67af9d .config log report info WARNING in ext4_iomap_begin
* Struck through repros no longer work on HEAD.