syzbot


WARNING in p9pdu_vwritef

Status: upstream: reported on 2024/10/01 16:24
Subsystems: v9fs
[Documentation on labels]
Reported-by: syzbot+94b73a3e8ea625efcd05@syzkaller.appspotmail.com
First crash: 7d06h, last: 1h16m
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [v9fs?] WARNING in p9pdu_vwritef 0 (1) 2024/10/01 16:24

Sample crash report:
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000001 R14: 00007f3efb536058 R15: 00007ffde89ce8a8
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 2 PID: 15537 at lib/iov_iter.c:255 _copy_from_iter+0x391/0x1540 lib/iov_iter.c:255
Modules linked in:
CPU: 2 UID: 0 PID: 15537 Comm: syz.2.2328 Not tainted 6.12.0-rc1-syzkaller-00125-g0c559323bbaa #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:_copy_from_iter+0x391/0x1540 lib/iov_iter.c:255
Code: 60 fd 0f 01 cb 48 89 d9 4c 89 f7 48 89 ee f3 a4 0f 1f 00 48 89 cd 0f 01 ca 49 89 df 49 29 cf e9 2d ff ff ff e8 90 75 ff fc 90 <0f> 0b 90 e9 bd fd ff ff e8 82 75 ff fc 89 ee bf 01 00 00 00 e8 56
RSP: 0018:ffffc900044b6fd8 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000007fec RCX: ffffffff848e0fb8
RDX: ffff888020a42440 RSI: ffffffff848e1290 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888026ff4060
R13: ffffc900044b73c0 R14: ffff888026ff4060 R15: dffffc0000000000
FS:  00007f3efc2016c0(0000) GS:ffff88806a800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f192d5d7f98 CR3: 00000000435ba000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 copy_from_iter include/linux/uio.h:219 [inline]
 copy_from_iter_full include/linux/uio.h:236 [inline]
 pdu_write_u net/9p/protocol.c:234 [inline]
 p9pdu_vwritef+0x2d0/0x1cf0 net/9p/protocol.c:614
 p9_client_prepare_req+0x244/0x4d0 net/9p/client.c:651
 p9_client_rpc+0x1c3/0xc10 net/9p/client.c:691
 p9_client_write+0x31f/0x680 net/9p/client.c:1635
 v9fs_issue_write+0xe2/0x180 fs/9p/vfs_addr.c:59
 netfs_do_issue_write+0x92/0x110 fs/netfs/write_issue.c:233
 netfs_issue_write fs/netfs/write_issue.c:260 [inline]
 netfs_advance_write fs/netfs/write_issue.c:301 [inline]
 netfs_advance_write+0x384/0xc80 fs/netfs/write_issue.c:269
 netfs_write_folio+0xc19/0x1930 fs/netfs/write_issue.c:485
 netfs_writepages+0x29a/0x9d0 fs/netfs/write_issue.c:581
 do_writepages+0x1a3/0x7f0 mm/page-writeback.c:2683
 filemap_fdatawrite_wbc mm/filemap.c:398 [inline]
 filemap_fdatawrite_wbc+0x148/0x1c0 mm/filemap.c:388
 __filemap_fdatawrite_range+0xb3/0xf0 mm/filemap.c:431
 v9fs_vfs_getattr+0x305/0x400 fs/9p/vfs_inode.c:956
 vfs_getattr_nosec+0x297/0x390 fs/stat.c:166
 vfs_getattr+0x6e/0xb0 fs/stat.c:207
 vfs_statx_path+0x36/0x390 fs/stat.c:251
 vfs_statx+0x145/0x1e0 fs/stat.c:315
 vfs_fstatat+0x9f/0x160 fs/stat.c:341
 vfs_lstat include/linux/fs.h:3357 [inline]
 __do_sys_newlstat+0x9e/0x120 fs/stat.c:491
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f3efb37dff9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f3efc201038 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 00007f3efb536058 RCX: 00007f3efb37dff9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200002c0
RBP: 00007f3efc201090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000001 R14: 00007f3efb536058 R15: 00007ffde89ce8a8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/04 21:45 upstream 0c559323bbaa d7906eff .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in p9pdu_vwritef
2024/10/04 17:07 upstream 0c559323bbaa d7906eff .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in p9pdu_vwritef
2024/09/27 16:19 upstream 075dbe9f6e3c 2b1784d6 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING in p9pdu_vwritef
* Struck through repros no longer work on HEAD.