syzbot


KCSAN: data-race in do_nanosleep / get_task_mm (3)

Status: auto-closed as invalid on 2020/08/04 14:55
Subsystems: kernel
[Documentation on labels]
First crash: 1388d, last: 1388d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_nanosleep / get_task_mm kernel 3 1625d 1629d 0/26 closed as invalid on 2019/11/19 13:54
upstream KCSAN: data-race in do_nanosleep / get_task_mm (4) kernel 2 1281d 1297d 0/26 auto-closed as invalid on 2020/11/19 20:31
upstream KCSAN: data-race in do_nanosleep / get_task_mm (2) kernel 10 1504d 1602d 0/26 auto-closed as invalid on 2020/05/15 17:56

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

write to 0xffff8880b5d90024 of 4 bytes by task 19717 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:1879
 hrtimer_nanosleep kernel/time/hrtimer.c:1932 [inline]
 __do_sys_nanosleep kernel/time/hrtimer.c:1966 [inline]
 __se_sys_nanosleep+0x20b/0x2a0 kernel/time/hrtimer.c:1953
 __x64_sys_nanosleep+0x2d/0x40 kernel/time/hrtimer.c:1953
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880b5d90024 of 4 bytes by task 19719 on cpu 0:
 get_task_mm+0x3e/0x90 kernel/fork.c:1223
 proc_pid_status+0x35/0x1330 fs/proc/array.c:406
 proc_single_show+0x84/0x100 fs/proc/base.c:766
 seq_read+0x2ee/0x900 fs/seq_file.c:208
 do_loop_readv_writev fs/read_write.c:715 [inline]
 do_iter_read+0x3f5/0x480 fs/read_write.c:936
 vfs_readv fs/read_write.c:1054 [inline]
 do_preadv+0x13b/0x230 fs/read_write.c:1146
 __do_sys_preadv fs/read_write.c:1196 [inline]
 __se_sys_preadv fs/read_write.c:1191 [inline]
 __x64_sys_preadv+0x54/0x60 fs/read_write.c:1191
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:359
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19719 Comm: syz-executor.3 Not tainted 5.8.0-rc3-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/06/30 14:50 upstream 7c30b859a947 917afeaa .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.