syzbot


KCSAN: data-race in do_nanosleep / task_dump_owner

Status: closed as invalid on 2019/11/19 14:54
Subsystems: kernel
[Documentation on labels]
First crash: 1921d, last: 1905d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_nanosleep / task_dump_owner (2) kernel 10 1752d 1881d 0/28 auto-closed as invalid on 2020/06/18 13:13
upstream KCSAN: data-race in do_nanosleep / task_dump_owner (3) kernel 2 1499d 1505d 0/28 auto-closed as invalid on 2021/01/25 08:51

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

write to 0xffff88812a16d064 of 4 bytes by task 8165 on cpu 1:
 freezer_do_not_count include/linux/freezer.h:109 [inline]
 freezable_schedule include/linux/freezer.h:171 [inline]
 do_nanosleep+0x127/0x320 kernel/time/hrtimer.c:1871
 hrtimer_nanosleep+0x191/0x320 kernel/time/hrtimer.c:1924
 __do_sys_nanosleep kernel/time/hrtimer.c:1958 [inline]
 __se_sys_nanosleep kernel/time/hrtimer.c:1945 [inline]
 __x64_sys_nanosleep+0x106/0x150 kernel/time/hrtimer.c:1945
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812a16d064 of 4 bytes by task 8250 on cpu 0:
 task_dump_owner+0x43/0x260 fs/proc/base.c:1698
 pid_update_inode+0x3c/0x70 fs/proc/base.c:1818
 pid_revalidate+0x91/0xd0 fs/proc/base.c:1841
 d_revalidate fs/namei.c:758 [inline]
 d_revalidate fs/namei.c:755 [inline]
 lookup_fast+0x6f2/0x700 fs/namei.c:1607
 walk_component+0x6d/0xe70 fs/namei.c:1796
 lookup_last fs/namei.c:2263 [inline]
 path_lookupat.isra.0+0x13a/0x5a0 fs/namei.c:2308
 filename_lookup+0x145/0x2b0 fs/namei.c:2338
 user_path_at_empty+0x4c/0x70 fs/namei.c:2598
 user_path_at include/linux/namei.h:49 [inline]
 vfs_statx+0xd9/0x190 fs/stat.c:187
 vfs_stat include/linux/fs.h:3242 [inline]
 __do_sys_newstat+0x51/0xb0 fs/stat.c:341
 __se_sys_newstat fs/stat.c:337 [inline]
 __x64_sys_newstat+0x3a/0x50 fs/stat.c:337
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8250 Comm: ps Not tainted 5.4.0-rc6+ #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
2019/11/11 16:37 https://github.com/google/ktsan.git kcsan 94c006602e13 377d77fa .config console log report ci2-upstream-kcsan-gce
2019/10/26 11:46 https://github.com/google/ktsan.git kcsan 05f2236801fe 25bb509e .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.