syzbot


KCSAN: data-race in do_coredump / do_nanosleep

Status: auto-closed as invalid on 2020/11/05 08:43
Subsystems: kernel
[Documentation on labels]
First crash: 1580d, last: 1580d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_coredump / do_nanosleep (2) kernel 1 1511d 1511d 0/28 auto-closed as invalid on 2021/01/13 08:56

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

write to 0xffff888121a68064 of 4 bytes by task 8726 on cpu 1:
 freezer_count include/linux/freezer.h:121 [inline]
 freezable_schedule include/linux/freezer.h:173 [inline]
 do_nanosleep+0x121/0x3a0 kernel/time/hrtimer.c:1883
 hrtimer_nanosleep kernel/time/hrtimer.c:1936 [inline]
 __do_sys_nanosleep kernel/time/hrtimer.c:1970 [inline]
 __se_sys_nanosleep+0x20b/0x2a0 kernel/time/hrtimer.c:1957
 __x64_sys_nanosleep+0x2d/0x40 kernel/time/hrtimer.c:1957
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888121a68064 of 4 bytes by task 11027 on cpu 0:
 zap_threads fs/coredump.c:426 [inline]
 coredump_wait fs/coredump.c:461 [inline]
 do_coredump+0x3cb/0x1dc0 fs/coredump.c:628
 get_signal+0xe55/0x1650 kernel/signal.c:2751
 arch_do_signal+0x25/0x270 arch/x86/kernel/signal.c:811
 exit_to_user_mode_loop kernel/entry/common.c:161 [inline]
 exit_to_user_mode_prepare+0x124/0x210 kernel/entry/common.c:192
 syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:267
 do_syscall_64+0x45/0x80 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/01 08:35 upstream 60e720931556 4103fce0 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.