syzbot


KCSAN: data-race in memcpy_and_pad / zap_other_threads (2)

Status: moderation: reported on 2025/12/05 11:22
Subsystems: kernel
[Documentation on labels]
Reported-by: syzbot+f065e89891aa2f9fb8e3@syzkaller.appspotmail.com
First crash: 55d, last: 31d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in memcpy_and_pad / zap_other_threads kernel 6 2 142d 154d 0/29 auto-obsoleted due to no activity on 2025/11/04 14:25

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

read-write to 0xffff8881042a8538 of 8 bytes by task 30807 on cpu 1:
 task_clear_jobctl_pending kernel/signal.c:339 [inline]
 zap_other_threads+0x114/0x290 kernel/signal.c:1345
 do_group_exit+0xe4/0x140 kernel/exit.c:1107
 __do_sys_exit_group kernel/exit.c:1123 [inline]
 __se_sys_exit_group kernel/exit.c:1121 [inline]
 __x64_sys_exit_group+0x1f/0x20 kernel/exit.c:1121
 x64_sys_call+0x2fff/0x3000 arch/x86/include/generated/asm/syscalls_64.h:232
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xca/0x2b0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

read to 0xffff8881042a8000 of 3264 bytes by task 30808 on cpu 0:
 memcpy_and_pad+0x48/0x80 lib/string_helpers.c:1007
 arch_dup_task_struct+0x2c/0x40 arch/x86/kernel/process.c:108
 dup_task_struct+0x6e/0x950 kernel/fork.c:919
 copy_process+0x37d/0x1ef0 kernel/fork.c:2052
 create_io_thread+0x71/0xa0 kernel/fork.c:2599
 create_worker_cont+0x5f/0x380 io_uring/io-wq.c:846
 task_work_run+0x131/0x1a0 kernel/task_work.c:233
 get_signal+0xe12/0xf70 kernel/signal.c:2807
 arch_do_signal_or_restart+0x96/0x450 arch/x86/kernel/signal.c:337
 __exit_to_user_mode_loop kernel/entry/common.c:41 [inline]
 exit_to_user_mode_loop+0x6a/0x740 kernel/entry/common.c:75
 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:226 [inline]
 syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:256 [inline]
 syscall_exit_to_user_mode_work include/linux/entry-common.h:159 [inline]
 syscall_exit_to_user_mode include/linux/entry-common.h:194 [inline]
 do_syscall_64+0x1e1/0x2b0 arch/x86/entry/syscall_64.c:100
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 UID: 0 PID: 30808 Comm: syz.6.5323 Not tainted syzkaller #0 PREEMPT(voluntary) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/29 15:13 upstream 7839932417dd d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in memcpy_and_pad / zap_other_threads
2025/12/22 20:45 upstream 9448598b22c5 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in memcpy_and_pad / zap_other_threads
2025/12/05 11:21 upstream 2061f18ad76e d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in memcpy_and_pad / zap_other_threads
* Struck through repros no longer work on HEAD.