syzbot


KCSAN: data-race in copy_page_from_iter / copy_page_from_iter

Status: auto-closed as invalid on 2020/09/24 11:06
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 698d, last: 675d
similar bugs (3):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in copy_page_from_iter / copy_page_from_iter (3) 4 320d 347d 0/22 auto-closed as invalid on 2021/09/14 15:09
upstream KCSAN: data-race in copy_page_from_iter / copy_page_from_iter (2) 17 405d 453d 0/22 auto-closed as invalid on 2021/06/22 00:41
upstream KCSAN: data-race in copy_page_from_iter / copy_page_from_iter (4) 64 2d10h 70d 0/22 moderation: reported on 2022/04/17 07:45

Sample crash report:
==================================================================
BUG: KCSAN: data-race in copy_page_from_iter / copy_page_from_iter

write to 0xffff88802bfcb000 of 4096 bytes by task 9195 on cpu 1:
 instrument_copy_from_user include/linux/instrumented.h:106 [inline]
 copyin lib/iov_iter.c:152 [inline]
 copy_page_from_iter_iovec lib/iov_iter.c:297 [inline]
 copy_page_from_iter+0x31f/0x5a0 lib/iov_iter.c:943
 process_vm_rw_pages mm/process_vm_access.c:46 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:120 [inline]
 process_vm_rw_core+0x478/0x760 mm/process_vm_access.c:218
 process_vm_rw+0x14e/0x1d0 mm/process_vm_access.c:286
 __do_sys_process_vm_writev mm/process_vm_access.c:308 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:303 [inline]
 __x64_sys_process_vm_writev+0x76/0x90 mm/process_vm_access.c:303
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff88802bfcb000 of 4096 bytes by task 9185 on cpu 0:
 instrument_copy_from_user include/linux/instrumented.h:106 [inline]
 copyin lib/iov_iter.c:152 [inline]
 copy_page_from_iter_iovec lib/iov_iter.c:297 [inline]
 copy_page_from_iter+0x31f/0x5a0 lib/iov_iter.c:943
 process_vm_rw_pages mm/process_vm_access.c:46 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:120 [inline]
 process_vm_rw_core+0x478/0x760 mm/process_vm_access.c:218
 process_vm_rw+0x14e/0x1d0 mm/process_vm_access.c:286
 __do_sys_process_vm_writev mm/process_vm_access.c:308 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:303 [inline]
 __x64_sys_process_vm_writev+0x76/0x90 mm/process_vm_access.c:303
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9185 Comm: syz-executor.4 Not tainted 5.9.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (4):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2020/08/20 11:06 upstream 7eac66d0456f ed282a3a .config log report
ci2-upstream-kcsan-gce 2020/08/13 07:06 upstream fb893de323e2 bc15f7db .config log report
ci2-upstream-kcsan-gce 2020/08/05 07:48 upstream c0842fbc1b18 02034dac .config log report
ci2-upstream-kcsan-gce 2020/07/28 13:17 upstream 92ed30191993 cb93dc6a .config log report