syzbot


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

Status: auto-closed as invalid on 2020/06/18 13:13
Subsystems: kernel
[Documentation on labels]
First crash: 2097d, last: 1968d
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_nanosleep / task_dump_owner kernel 6 2 2121d 2137d 0/29 closed as invalid on 2019/11/19 14:54
upstream KCSAN: data-race in do_nanosleep / task_dump_owner (3) kernel 6 2 1715d 1721d 0/29 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 0xffff88812085e0e4 of 4 bytes by task 7801 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:1874
 hrtimer_nanosleep+0x136/0x230 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+0x14b/0x190 kernel/time/hrtimer.c:1948
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88812085e0e4 of 4 bytes by task 11760 on cpu 0:
 task_dump_owner+0x42/0x250 fs/proc/base.c:1789
 pid_getattr+0x10d/0x190 fs/proc/base.c:1896
 vfs_getattr_nosec+0x127/0x160 fs/stat.c:83
 vfs_getattr+0x53/0x70 fs/stat.c:120
 vfs_statx+0x104/0x190 fs/stat.c:201
 vfs_stat include/linux/fs.h:3271 [inline]
 __do_sys_newstat+0x50/0xb0 fs/stat.c:351
 __se_sys_newstat fs/stat.c:347 [inline]
 __x64_sys_newstat+0x37/0x50 fs/stat.c:347
 do_syscall_64+0xc7/0x390 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 11760 Comm: ps Not tainted 5.6.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/13 00:56 https://github.com/google/ktsan.git kcsan 40959e34d670 17a986e5 .config console log report ci2-upstream-kcsan-gce
2020/04/03 22:22 https://github.com/google/ktsan.git kcsan 40959e34d670 ef26b610 .config console log report ci2-upstream-kcsan-gce
2020/04/01 01:56 https://github.com/google/ktsan.git kcsan 40959e34d670 a34e2c33 .config console log report ci2-upstream-kcsan-gce
2020/03/28 11:51 https://github.com/google/ktsan.git kcsan 40959e34d670 f1ebdfba .config console log report ci2-upstream-kcsan-gce
2020/02/18 12:47 https://github.com/google/ktsan.git kcsan b12d66a6c34f 012fbc32 .config console log report ci2-upstream-kcsan-gce
2020/02/09 23:25 https://github.com/google/ktsan.git kcsan f60f0f543333 35f5e45e .config console log report ci2-upstream-kcsan-gce
2020/01/13 00:00 https://github.com/google/ktsan.git kcsan 245a43005292 53faa9fe .config console log report ci2-upstream-kcsan-gce
2019/12/14 07:58 https://github.com/google/ktsan.git kcsan 245a43005292 eef6e580 .config console log report ci2-upstream-kcsan-gce
2019/12/07 20:09 https://github.com/google/ktsan.git kcsan ef798c30ba4e 1508f453 .config console log report ci2-upstream-kcsan-gce
2019/12/06 00:37 https://github.com/google/ktsan.git kcsan ef798c30ba4e 98b4ef2d .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.