syzbot


KCSAN: data-race in ktime_get_real_seconds / tk_xtime_add.isra.0.constprop.0

Status: closed as invalid on 2020/06/18 14:13
Subsystems: kernel
[Documentation on labels]
First crash: 1901d, last: 1901d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ktime_get_real_seconds / tk_xtime_add.isra.0.constprop.0

write to 0xffffffff88ae9138 of 8 bytes by task 29165 on cpu 1:
 tk_xtime_add.isra.0.constprop.0+0x3c/0x1b0 kernel/time/timekeeping.c:124
 timekeeping_inject_offset+0x218/0x330 kernel/time/timekeeping.c:1295
 do_adjtimex+0x20a/0x790 kernel/time/timekeeping.c:2332
 posix_clock_realtime_adj+0x1c/0x30 kernel/time/posix-timers.c:191
 do_clock_adjtime+0x87/0xe0 kernel/time/posix-timers.c:1109
 __do_sys_clock_adjtime+0x66/0xe0 kernel/time/posix-timers.c:1121
 __se_sys_clock_adjtime kernel/time/posix-timers.c:1112 [inline]
 __x64_sys_clock_adjtime+0x37/0x50 kernel/time/posix-timers.c:1112
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffffff88ae9138 of 8 bytes by task 29166 on cpu 0:
 ktime_get_real_seconds+0x1d/0x30 kernel/time/timekeeping.c:127
 recently_deleted fs/ext4/ialloc.c:699 [inline]
 find_inode_bit.isra.0+0x1e7/0x330 fs/ext4/ialloc.c:724
 __ext4_new_inode+0xd7b/0x3020 fs/ext4/ialloc.c:927
 ext4_symlink+0x322/0x9e0 fs/ext4/namei.c:3295
 vfs_symlink fs/namei.c:3937 [inline]
 vfs_symlink+0x216/0x330 fs/namei.c:3923
 do_symlinkat+0x1ac/0x1e0 fs/namei.c:3964
 __do_sys_symlink fs/namei.c:3983 [inline]
 __se_sys_symlink fs/namei.c:3981 [inline]
 __x64_sys_symlink+0x3c/0x50 fs/namei.c:3981
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 29166 Comm: syz-executor.3 Not tainted 5.7.0-rc1-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/18 13:02 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 3ea11d3f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.