syzbot


WARNING in copy_page_from_iter

Status: upstream: reported C repro on 2023/03/15 03:16
Subsystems: block
[Documentation on labels]
Reported-by: syzbot+63dec323ac56c28e644f@syzkaller.appspotmail.com
Fix commit: 13f3956eb568 block: Fix WARNING in _copy_from_iter
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-net-next-test-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64 ci-upstream-bpf-next-kasan-gce]
First crash: 353d, last: 41d
Cause bisection: introduced by (bisect log) :
commit a41dad905e5a388f88435a517de102e9b2c8e43d
Author: Al Viro <viro@zeniv.linux.org.uk>
Date: Fri Sep 16 00:11:15 2022 +0000

  iov_iter: saner checks for attempt to copy to/from iterator

Crash: WARNING in copy_page_from_iter (log)
Repro: C syz .config
  
Discussions (11)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 6.1 07/15] block: Fix WARNING in _copy_from_iter 1 (1) 2024/02/02 18:40
[PATCH AUTOSEL 6.6 09/21] block: Fix WARNING in _copy_from_iter 1 (1) 2024/02/02 18:39
[PATCH AUTOSEL 6.7 10/23] block: Fix WARNING in _copy_from_iter 1 (1) 2024/02/02 18:39
[PATCH] block: Fix WARNING in _copy_from_iter 3 (3) 2024/01/23 15:57
[syzbot] Monthly block report (Sep 2023) 0 (1) 2023/09/07 09:25
[syzbot] Monthly block report (Aug 2023) 0 (1) 2023/08/07 07:28
[syzbot] Monthly block report (Jul 2023) 0 (1) 2023/07/06 14:17
[syzbot] Monthly block report (Jun 2023) 0 (1) 2023/06/07 09:10
[syzbot] Monthly block report (May 2023) 0 (1) 2023/05/05 08:06
[syzbot] Monthly block report 0 (1) 2023/04/03 16:00
[syzbot] [block?] WARNING in copy_page_from_iter 0 (1) 2023/03/15 03:16
Last patch testing requests (11)
Created Duration User Patch Repo Result
2023/12/03 11:05 22m retest repro upstream report log
2023/12/03 11:05 19m retest repro upstream report log
2023/12/03 11:05 18m retest repro upstream report log
2023/12/03 11:05 18m retest repro upstream report log
2023/12/03 11:05 18m retest repro linux-next report log
2023/12/03 10:49 14m retest repro upstream report log
2023/09/18 16:22 13m retest repro upstream report log
2023/09/18 15:04 16m retest repro upstream report log
2023/09/18 15:04 23m retest repro upstream report log
2023/09/18 15:04 28m retest repro upstream report log
2023/03/15 09:12 19m hdanton@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
Fix bisection attempts (4)
Created Duration User Patch Repo Result
2024/01/20 08:30 2h44m bisect fix upstream job log (0) log
2023/12/20 08:54 1h10m bisect fix upstream job log (0) log
2023/11/19 06:02 4h42m bisect fix upstream job log (0) log
2023/10/15 15:03 1h09m bisect fix upstream job log (0) log

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 5012 at lib/iov_iter.c:385 _copy_from_iter+0x2c2/0x11f0 lib/iov_iter.c:385
Modules linked in:
CPU: 0 PID: 5012 Comm: syz-executor281 Not tainted 6.5.0-rc7-syzkaller-00168-g7d2f353b2682 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
RIP: 0010:_copy_from_iter+0x2c2/0x11f0 lib/iov_iter.c:385
Code: 5d 41 5c 41 5d 41 5e 41 5f c3 e8 69 8c 68 fd be 85 01 00 00 48 c7 c7 c0 99 c7 8a e8 48 45 a6 fd e9 48 fe ff ff e8 4e 8c 68 fd <0f> 0b 45 31 ff eb 88 e8 42 8c 68 fd 31 ff 44 89 e6 e8 68 87 68 fd
RSP: 0018:ffffc9000340f110 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffffc9000340f358 RCX: 0000000000000000
RDX: ffff888072f92200 RSI: ffffffff841c9472 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffff8a40008b R12: 0000000000001000
R13: 0000000000001000 R14: 0000000000000000 R15: 0000160000000000
FS:  0000555557213380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020670000 CR3: 000000002b99e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 copy_page_from_iter lib/iov_iter.c:542 [inline]
 copy_page_from_iter+0xa5/0x120 lib/iov_iter.c:531
 bio_copy_from_iter block/blk-map.c:56 [inline]
 bio_copy_user_iov block/blk-map.c:211 [inline]
 blk_rq_map_user_iov+0x9d5/0x17e0 block/blk-map.c:662
 blk_rq_map_user_io.part.0+0x276/0x2c0 block/blk-map.c:720
 blk_rq_map_user_io+0xe6/0x230 block/blk-map.c:701
 sg_start_req drivers/scsi/sg.c:1818 [inline]
 sg_common_write.constprop.0+0xd61/0x1c90 drivers/scsi/sg.c:803
 sg_new_write.isra.0+0x546/0xaa0 drivers/scsi/sg.c:770
 sg_write+0xa7b/0xe10 drivers/scsi/sg.c:632
 do_loop_readv_writev fs/read_write.c:758 [inline]
 do_loop_readv_writev fs/read_write.c:743 [inline]
 do_iter_write+0x45f/0x830 fs/read_write.c:862
 vfs_writev+0x221/0x700 fs/read_write.c:933
 do_writev+0x137/0x370 fs/read_write.c:976
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fe6655ae1a9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 00 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:00007ffebf625d48 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007ffebf625f18 RCX: 00007fe6655ae1a9
RDX: 0000000000000002 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007fe665621610 R08: 002367732f766564 R09: 00007ffebf625f18
R10: 000000000000001f R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffebf625f08 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (1987):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/27 01:48 upstream 7d2f353b2682 03d9c195 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/08/27 00:13 upstream 7d2f353b2682 03d9c195 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/07/30 09:16 upstream 12214540ad87 92476829 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/06/10 09:12 upstream 64569520920a 7086cdb9 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/06/02 08:10 upstream 1874a42a7d74 a4ae4f42 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/03/14 18:43 upstream fc89d7fb499b 0d5c4377 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/04/01 05:17 linux-next 4b0f4525dc4f f325deb0 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
2023/09/04 09:02 upstream db906f0ca6bb 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/03 17:50 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/03 14:49 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/03 13:47 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/09/03 12:43 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/09/03 05:12 upstream 92901222f83d 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/02 23:12 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/02 19:54 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/09/02 17:26 upstream 0468be89b3fa 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/02 09:41 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/09/02 03:59 upstream b84acc11b1c9 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/09/01 17:44 upstream 99d99825fc07 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in copy_page_from_iter
2023/09/01 14:17 upstream 99d99825fc07 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/01 02:21 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/31 23:01 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/08/31 21:42 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/08/31 20:37 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/31 19:36 upstream b97d64c72259 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/31 05:42 upstream ef2a0b7cdbc5 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/08/31 05:11 upstream ef2a0b7cdbc5 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/30 23:54 upstream 6c1b980a7e79 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/08/30 20:08 upstream 6c1b980a7e79 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/09/04 11:44 upstream 708283abf896 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_page_from_iter
2023/08/31 10:56 upstream ef2a0b7cdbc5 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_page_from_iter
2023/08/31 01:08 upstream 6c1b980a7e79 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_page_from_iter
2023/09/03 19:27 upstream 92901222f83d 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in copy_page_from_iter
2023/09/01 21:12 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in copy_page_from_iter
2023/08/31 19:27 upstream b97d64c72259 4ad3538b .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in copy_page_from_iter
2023/09/02 21:50 upstream fdde61878047 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in copy_page_from_iter
2023/09/02 01:37 upstream e0152e7481c6 696ea0d2 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in copy_page_from_iter
2023/08/31 07:46 upstream 4debf77169ee 84803932 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in copy_page_from_iter
2023/08/30 04:31 upstream d68b4b6f307d b42ca3a7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/29 18:38 upstream 1c59d383390f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/08/29 16:21 upstream 1c59d383390f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in copy_page_from_iter
2023/08/29 15:46 upstream 1c59d383390f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/08/29 02:48 upstream 727dbda16b83 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/28 14:02 upstream 2dde18cd1d8f 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/28 05:40 upstream 85eb043618bb 7ba13a15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in copy_page_from_iter
2023/08/28 03:13 upstream 85eb043618bb 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/08/28 02:33 upstream 85eb043618bb 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/27 15:20 upstream 28f20a19294d 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING in copy_page_from_iter
2023/08/27 11:37 upstream 28f20a19294d 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce WARNING in copy_page_from_iter
2023/08/27 07:20 upstream 28f20a19294d 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING in copy_page_from_iter
2023/08/27 05:57 upstream 3b35375f19fe 7ba13a15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING in copy_page_from_iter
2023/08/27 04:22 upstream 3b35375f19fe 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING in copy_page_from_iter
2023/08/27 01:40 upstream 7d2f353b2682 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root WARNING in copy_page_from_iter
2023/07/30 05:21 upstream 12214540ad87 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING in copy_page_from_iter
2023/08/28 11:38 upstream 2dde18cd1d8f 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_page_from_iter
2023/08/28 07:32 upstream 2dde18cd1d8f 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 WARNING in copy_page_from_iter
2023/08/27 05:31 upstream 3b35375f19fe 7ba13a15 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING in copy_page_from_iter
2023/09/04 10:07 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
2023/09/02 18:28 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
2023/09/02 10:16 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
2023/09/02 05:42 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
2023/09/01 13:08 linux-next a47fc304d2b6 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
2023/08/31 09:21 linux-next a47fc304d2b6 84803932 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root WARNING in copy_page_from_iter
* Struck through repros no longer work on HEAD.