[syzbot] [iomap?] WARNING in iomap_iter (2)

8 views
Skip to first unread message

syzbot

unread,
May 2, 2024, 6:44:24 AMMay 2
to bra...@kernel.org, djw...@kernel.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2c8159388952 Merge tag 'rust-fixes-6.9' of https://github...
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=157da5e8980000
kernel config: https://syzkaller.appspot.com/x/.config?x=7edc7330e976610e
dashboard link: https://syzkaller.appspot.com/bug?extid=0a3683a0a6fecf909244
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14c1a97f180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1538a228980000

Downloadable assets:
disk image (non-bootable): https://storage.googleapis.com/syzbot-assets/7bc7510fe41f/non_bootable_disk-2c815938.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/3f7792ed3c5c/vmlinux-2c815938.xz
kernel image: https://storage.googleapis.com/syzbot-assets/28870b4ff18a/bzImage-2c815938.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/f3da29bab42a/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0a3683...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 3 PID: 5183 at fs/iomap/iter.c:51 iomap_iter_done fs/iomap/iter.c:51 [inline]
WARNING: CPU: 3 PID: 5183 at fs/iomap/iter.c:51 iomap_iter+0xe1e/0x10b0 fs/iomap/iter.c:95
Modules linked in:
CPU: 3 PID: 5183 Comm: syz-executor200 Not tainted 6.9.0-rc5-syzkaller-00355-g2c8159388952 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
RIP: 0010:iomap_iter_done fs/iomap/iter.c:51 [inline]
RIP: 0010:iomap_iter+0xe1e/0x10b0 fs/iomap/iter.c:95
Code: 0f 0b 90 e9 e2 f8 ff ff e8 5f 42 73 ff 90 0f 0b 90 e9 b1 f7 ff ff e8 51 42 73 ff 90 0f 0b 90 e9 38 f7 ff ff e8 43 42 73 ff 90 <0f> 0b 90 e9 4b f7 ff ff e8 35 42 73 ff 90 0f 0b 90 e9 e5 f6 ff ff
RSP: 0018:ffffc90003367a38 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc90003367b60 RCX: ffffffff821a7538
RDX: ffff888021e1c880 RSI: ffffffff821a7ded RDI: 0000000000000006
RBP: 0000000000fffc80 R08: 0000000000000006 R09: 0000000000fffc80
R10: 0000000000fffc80 R11: 0000000000000000 R12: 0000000000fffc80
R13: ffffc90003367ba2 R14: ffffc90003367b98 R15: 0000000000fffc00
FS: 00007f52540656c0(0000) GS:ffff88806b500000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000021000000 CR3: 0000000022e6c000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
iomap_file_buffered_write+0x202/0x9c0 fs/iomap/buffered-io.c:1014
blkdev_buffered_write block/fops.c:658 [inline]
blkdev_write_iter+0x4f3/0xc90 block/fops.c:708
call_write_iter include/linux/fs.h:2110 [inline]
new_sync_write fs/read_write.c:497 [inline]
vfs_write+0x6db/0x1100 fs/read_write.c:590
ksys_write+0x12f/0x260 fs/read_write.c:643
do_syscall_x64 arch/x86/entry/common.c:52 [inline]
do_syscall_64+0xcf/0x260 arch/x86/entry/common.c:83
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f52540af509
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f5254065168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f525413b608 RCX: 00007f52540af509
RDX: 0000000001670e68 RSI: 0000000020000380 RDI: 0000000000000005
RBP: 00007f525413b600 R08: 00007f52540656c0 R09: 0000000000000000
R10: 00007f52540656c0 R11: 0000000000000246 R12: 00007f525413b60c
R13: 0000000000000006 R14: 00007ffeeef47cd0 R15: 00007ffeeef47db8
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

Christoph Hellwig

unread,
May 3, 2024, 1:52:30 AM (14 days ago) May 3
to syzbot, syzkall...@googlegroups.com
#syz test: git://git.infradead.org/users/hch/block.git blkdev_iomap_begin-fix

syzbot

unread,
May 3, 2024, 2:18:08 AM (14 days ago) May 3
to h...@infradead.org, linux-...@vger.kernel.org, syzkall...@googlegroups.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+0a3683...@syzkaller.appspotmail.com

Tested on:

commit: 5875772e block: refine the EOF check in blkdev_iomap_b..
git tree: git://git.infradead.org/users/hch/block.git blkdev_iomap_begin-fix
console output: https://syzkaller.appspot.com/x/log.txt?x=109d76c4980000
kernel config: https://syzkaller.appspot.com/x/.config?x=3310e643b6ef5d69
dashboard link: https://syzkaller.appspot.com/bug?extid=0a3683a0a6fecf909244
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.
Note: testing is done by a robot and is best-effort only.

Christoph Hellwig

unread,
May 3, 2024, 4:12:45 AM (14 days ago) May 3
to syzbot, bra...@kernel.org, djw...@kernel.org, linux-...@vger.kernel.org, linux-...@vger.kernel.org, linu...@vger.kernel.org, syzkall...@googlegroups.com
For the fsdevel and xfs lists: this is a bug in blkdev_iomap_begin,
I just sent the fix:

https://lore.kernel.org/linux-block/20240503081042...@lst.de/T/#u
Reply all
Reply to author
Forward
0 new messages