syzbot


BUG: KCSAN: data-race in ktime_get_real_seconds and timekeeping_advance

Status: closed as invalid on 2019/10/04 18:08
Subsystems: kernel
[Documentation on labels]
First crash: 1663d, last: 1663d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in ktime_get_real_seconds+0x20/0x40 kernel/time/timekeeping.c:127 and timekeeping_advance+0x893/0xd80

write to 0xffffffff8603db08 of 280 bytes by interrupt on cpu 1:
 timekeeping_advance+0x893/0xd80 include/linux/string.h:359
 update_wall_time+0x19/0x20 kernel/time/timekeeping.c:2137
 tick_do_update_jiffies64+0x1ae/0x260 kernel/time/tick-sched.c:94
 tick_sched_do_timer+0xd4/0xe0 kernel/time/tick-sched.c:138
 tick_sched_timer+0x43/0xe0 kernel/time/tick-sched.c:1289
 __run_hrtimer kernel/time/hrtimer.c:1389 [inline]
 __hrtimer_run_queues+0x288/0x600 kernel/time/hrtimer.c:1451
 hrtimer_interrupt+0x22a/0x480 kernel/time/hrtimer.c:1509
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1110 [inline]
 smp_apic_timer_interrupt+0xdc/0x280 arch/x86/kernel/apic/apic.c:1135
 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830
 arch_local_irq_restore arch/x86/include/asm/paravirt.h:768 [inline]
 uncharge_batch+0x23a/0x330 mm/memcontrol.c:6343
 mem_cgroup_uncharge+0x62/0x90 mm/memcontrol.c:6441
 __page_cache_release+0xce/0x670 mm/swap.c:74
 __put_single_page mm/swap.c:79 [inline]
 __put_page+0xb7/0xd0 mm/swap.c:114
 put_page include/linux/mm.h:1037 [inline]
 anon_pipe_buf_release+0x15f/0x1a0 fs/pipe.c:135

read to 0xffffffff8603db78 of 8 bytes by task 8392 on cpu 0:
 ktime_get_real_seconds+0x20/0x40 kernel/time/timekeeping.c:127
 recently_deleted fs/ext4/ialloc.c:699 [inline]
 find_inode_bit.isra.0+0x1e2/0x300 fs/ext4/ialloc.c:722
 __ext4_new_inode+0xd4b/0x3070 fs/ext4/ialloc.c:914
 ext4_symlink+0x30e/0x970 fs/ext4/namei.c:3262
 vfs_symlink fs/namei.c:4127 [inline]
 vfs_symlink+0x218/0x310 fs/namei.c:4113
 do_symlinkat+0x1a5/0x1e0 fs/namei.c:4154
 __do_sys_symlink fs/namei.c:4173 [inline]
 __se_sys_symlink fs/namei.c:4171 [inline]
 __x64_sys_symlink+0x3f/0x50 fs/namei.c:4171
 do_syscall_64+0xcf/0x2f0 arch/x86/entry/common.c:296
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 8392 Comm: syz-executor.3 Not tainted 5.3.0+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/04 12:22 https://github.com/google/ktsan.git kcsan 6769d3ca0f23 b2f369e5 .config console log report ci2-upstream-kcsan-gce
2019/10/04 12:09 https://github.com/google/ktsan.git kcsan 6769d3ca0f23 b2f369e5 .config console log report ci2-upstream-kcsan-gce
2019/10/04 12:08 https://github.com/google/ktsan.git kcsan 6769d3ca0f23 b2f369e5 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.