================================================================== BUG: KMSAN: uninit-value in sched_clock_local kernel/sched/clock.c:272 [inline] BUG: KMSAN: uninit-value in sched_clock_cpu+0x181/0x9c0 kernel/sched/clock.c:362 CPU: 1 PID: 17042 Comm: udevd Not tainted 4.17.0+ #9 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1125 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 sched_clock_local kernel/sched/clock.c:272 [inline] sched_clock_cpu+0x181/0x9c0 kernel/sched/clock.c:362 local_clock include/linux/sched/clock.h:84 [inline] select_idle_cpu kernel/sched/fair.c:6344 [inline] select_idle_sibling kernel/sched/fair.c:6403 [inline] select_task_rq_fair+0x5a6e/0x66b0 kernel/sched/fair.c:6614 select_task_rq kernel/sched/core.c:1551 [inline] try_to_wake_up+0xca9/0x2260 kernel/sched/core.c:2060 wake_up_process+0x34/0x40 kernel/sched/core.c:2148 hrtimer_wakeup+0xac/0x100 kernel/time/hrtimer.c:1647 __run_hrtimer kernel/time/hrtimer.c:1398 [inline] __hrtimer_run_queues+0xc54/0x1630 kernel/time/hrtimer.c:1460 hrtimer_interrupt+0x451/0x13c0 kernel/time/hrtimer.c:1518 local_apic_timer_interrupt+0x6b/0x250 arch/x86/kernel/apic/apic.c:1025 smp_apic_timer_interrupt+0x5a/0x90 arch/x86/kernel/apic/apic.c:1053 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:866 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:32 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:73 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:114 [inline] RIP: 0010:__msan_poison_alloca+0x102/0x1d0 mm/kmsan/kmsan_instr.c:585 RSP: 0018:ffff880136dbf4e0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffffff81bce07f RBX: ffff880136dbf5ff RCX: 0000000000000000 RDX: 0000000000000001 RSI: 00000000ffffffff RDI: ffff88012aeef5ff RBP: ffff880136dbf580 R08: 0000000001080020 R09: ffff88012aeef5fe R10: 0000000000000002 R11: ffffffff82032410 R12: 0000000000000000 R13: ffffffff8acccdd0 R14: 0000000000000246 R15: ffff880141dd57c0 memcg_kmem_get_cache+0x42/0xcc0 mm/memcontrol.c:2251 slab_pre_alloc_hook mm/slab.h:428 [inline] slab_alloc_node mm/slub.c:2679 [inline] slab_alloc mm/slub.c:2761 [inline] kmem_cache_alloc+0x21f/0xb70 mm/slub.c:2766 __d_alloc+0x8b/0xe40 fs/dcache.c:1638 d_alloc fs/dcache.c:1722 [inline] d_alloc_parallel+0x1a8/0x22e0 fs/dcache.c:2519 __lookup_slow+0x18c/0x750 fs/namei.c:1613 lookup_slow fs/namei.c:1647 [inline] walk_component+0x33c/0xbb0 fs/namei.c:1769 lookup_last fs/namei.c:2237 [inline] path_lookupat+0x3b4/0x1150 fs/namei.c:2287 filename_lookup+0x2bb/0xa60 fs/namei.c:2321 user_path_at_empty+0x123/0x140 fs/namei.c:2555 user_path_at include/linux/namei.h:57 [inline] vfs_statx fs/stat.c:185 [inline] vfs_stat include/linux/fs.h:3078 [inline] __do_sys_newstat fs/stat.c:337 [inline] __se_sys_newstat+0xd4/0x330 fs/stat.c:333 __x64_sys_newstat+0x92/0xc0 fs/stat.c:333 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7fac8e713c65 RSP: 002b:00007ffcbb3f4e88 EFLAGS: 00000246 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000001995250 RCX: 00007fac8e713c65 RDX: 00007ffcbb3f4ea0 RSI: 00007ffcbb3f4ea0 RDI: 00007ffcbb3f5330 RBP: 00007ffcbb3f5770 R08: 000000000041f4f1 R09: 00007fac8e76a7d0 R10: 7665642f7379732f R11: 0000000000000246 R12: 0000000000000004 R13: 00007ffcbb3f5777 R14: 0000000001995250 R15: 000000000199ae10 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 __scd_stamp kernel/sched/clock.c:118 [inline] sched_clock_tick+0x3dc/0x410 kernel/sched/clock.c:382 scheduler_tick+0x84/0x490 kernel/sched/core.c:3100 update_process_times+0x157/0x1a0 kernel/time/timer.c:1641 tick_sched_handle kernel/time/tick-sched.c:164 [inline] tick_sched_timer+0x3ba/0x520 kernel/time/tick-sched.c:1274 __run_hrtimer kernel/time/hrtimer.c:1398 [inline] __hrtimer_run_queues+0xc54/0x1630 kernel/time/hrtimer.c:1460 hrtimer_interrupt+0x451/0x13c0 kernel/time/hrtimer.c:1518 local_apic_timer_interrupt+0x6b/0x250 arch/x86/kernel/apic/apic.c:1025 smp_apic_timer_interrupt+0x5a/0x90 arch/x86/kernel/apic/apic.c:1053 Local variable description: ----oldbit.i@cpumask_test_cpu Variable was created at: cpumask_test_cpu+0x3f/0xb0 include/linux/cpumask.h:331 profile_tick+0x63/0xb0 kernel/profile.c:407 ==================================================================