syzbot


KCSAN: data-race in _copy_from_iter / _copy_from_iter (3)

Status: auto-obsoleted due to no activity on 2024/09/24 07:08
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+4327174be96f5f7e66f9@syzkaller.appspotmail.com
First crash: 197d, last: 84d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in _copy_from_iter / _copy_from_iter mm 8 481d 525d 0/28 auto-obsoleted due to no activity on 2023/08/24 22:03
upstream KCSAN: data-race in _copy_from_iter / _copy_from_iter (4) mm 1 5d01h 5d01h 0/28 moderation: reported on 2024/11/07 22:48
upstream KCSAN: data-race in _copy_from_iter / _copy_from_iter (2) mm 18 257d 339d 0/28 auto-obsoleted due to no activity on 2024/04/04 01:00

Sample crash report:
netlink: 1 bytes leftover after parsing attributes in process `syz.1.1617'.
==================================================================
BUG: KCSAN: data-race in _copy_from_iter / _copy_from_iter

write to 0xffff888116872000 of 4096 bytes by task 8661 on cpu 1:
 instrument_copy_from_user_before include/linux/instrumented.h:130 [inline]
 copy_from_user_iter lib/iov_iter.c:54 [inline]
 iterate_ubuf include/linux/iov_iter.h:29 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:245 [inline]
 iterate_and_advance include/linux/iov_iter.h:271 [inline]
 __copy_from_iter lib/iov_iter.c:249 [inline]
 _copy_from_iter+0x129/0xb00 lib/iov_iter.c:260
 copy_page_from_iter+0x14f/0x280 lib/iov_iter.c:422
 process_vm_rw_pages mm/process_vm_access.c:43 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:118 [inline]
 process_vm_rw_core mm/process_vm_access.c:216 [inline]
 process_vm_rw+0x5d6/0x8c0 mm/process_vm_access.c:284
 __do_sys_process_vm_writev mm/process_vm_access.c:304 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:299 [inline]
 __x64_sys_process_vm_writev+0x7a/0x90 mm/process_vm_access.c:299
 x64_sys_call+0x1a4/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:312
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

write to 0xffff888116872000 of 4096 bytes by task 8660 on cpu 0:
 instrument_copy_from_user_before include/linux/instrumented.h:130 [inline]
 copy_from_user_iter lib/iov_iter.c:54 [inline]
 iterate_ubuf include/linux/iov_iter.h:29 [inline]
 iterate_and_advance2 include/linux/iov_iter.h:245 [inline]
 iterate_and_advance include/linux/iov_iter.h:271 [inline]
 __copy_from_iter lib/iov_iter.c:249 [inline]
 _copy_from_iter+0x129/0xb00 lib/iov_iter.c:260
 copy_page_from_iter+0x14f/0x280 lib/iov_iter.c:422
 process_vm_rw_pages mm/process_vm_access.c:43 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:118 [inline]
 process_vm_rw_core mm/process_vm_access.c:216 [inline]
 process_vm_rw+0x5d6/0x8c0 mm/process_vm_access.c:284
 __do_sys_process_vm_writev mm/process_vm_access.c:304 [inline]
 __se_sys_process_vm_writev mm/process_vm_access.c:299 [inline]
 __x64_sys_process_vm_writev+0x7a/0x90 mm/process_vm_access.c:299
 x64_sys_call+0x1a4/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:312
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 8660 Comm: syz.1.1617 Not tainted 6.11.0-rc4-syzkaller-00008-g6e4436539ae1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/20 07:07 upstream 6e4436539ae1 9f0ab3fb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/08/08 07:31 upstream 6a0e38264012 de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/08/05 18:00 upstream de9c2c66ad8e e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/07/21 02:41 upstream 3c3ff7be9729 b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/07/14 22:24 upstream 4d145e3f830b eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/07/14 03:56 upstream d0d0cd380055 eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/07/07 10:29 upstream 22f902dfc51e 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/07/06 12:04 upstream 1dd28064d416 2a40360c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/07/02 07:36 upstream 1dfe225e9af5 b294e901 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/05/30 04:09 upstream 4a4be1ad3a6e 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/05/28 22:33 upstream e0cce98fe279 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
2024/04/29 10:30 upstream e67572cd2204 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in _copy_from_iter / _copy_from_iter
* Struck through repros no longer work on HEAD.