syzbot


KCSAN: data-race in do_nanosleep / task_current_syscall (2)

Status: auto-closed as invalid on 2020/04/02 17:12
Subsystems: fs
[Documentation on labels]
First crash: 2213d, last: 2161d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_nanosleep / task_current_syscall kernel 6 1 2243d 2243d 0/29 closed as invalid on 2019/11/19 13:24

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

read to 0xffff8880ad9840d0 of 8 bytes by task 23118 on cpu 1:
 task_current_syscall+0x40/0xf0 lib/syscall.c:70
 proc_pid_syscall fs/proc/base.c:639 [inline]
 proc_pid_syscall+0x8d/0x200 fs/proc/base.c:628
 proc_single_show+0x92/0x120 fs/proc/base.c:756
 seq_read+0x350/0x9d0 fs/seq_file.c:229
 do_loop_readv_writev fs/read_write.c:714 [inline]
 do_loop_readv_writev fs/read_write.c:701 [inline]
 do_iter_read+0x357/0x3d0 fs/read_write.c:935
 vfs_readv+0x9c/0xf0 fs/read_write.c:997
 do_preadv+0x131/0x1d0 fs/read_write.c:1089
 __do_sys_preadv fs/read_write.c:1139 [inline]
 __se_sys_preadv fs/read_write.c:1134 [inline]
 __x64_sys_preadv+0x61/0x80 fs/read_write.c:1134
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8880ad9840d0 of 8 bytes by task 23117 on cpu 0:
 do_nanosleep+0x1da/0x320 kernel/time/hrtimer.c:1881
 hrtimer_nanosleep+0x191/0x320 kernel/time/hrtimer.c:1927
 __do_sys_nanosleep kernel/time/hrtimer.c:1961 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1948 [inline]
 __x64_sys_nanosleep+0x106/0x150 kernel/time/hrtimer.c:1948
 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

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

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/01/23 17:06 https://github.com/google/ktsan.git kcsan 245a43005292 11ebf937 .config console log report ci2-upstream-kcsan-gce
2019/12/02 21:42 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.