================================================================== BUG: KMSAN: uninit-value in __list_add_valid+0x1b8/0x450 lib/list_debug.c:23 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.17.0-rc5+ #96 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+0x142/0x240 mm/kmsan/kmsan.c:1084 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:683 __list_add_valid+0x1b8/0x450 lib/list_debug.c:23 __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] account_entity_enqueue kernel/sched/fair.c:2652 [inline] enqueue_entity kernel/sched/fair.c:4176 [inline] enqueue_task_fair+0xe02/0x4470 kernel/sched/fair.c:5359 enqueue_task kernel/sched/core.c:751 [inline] activate_task kernel/sched/core.c:770 [inline] ttwu_activate kernel/sched/core.c:1641 [inline] ttwu_do_activate kernel/sched/core.c:1700 [inline] ttwu_queue kernel/sched/core.c:1845 [inline] try_to_wake_up+0x13c0/0x2090 kernel/sched/core.c:2058 wake_up_process+0x34/0x40 kernel/sched/core.c:2131 swake_up_locked kernel/sched/swait.c:30 [inline] swake_up+0xfb/0x3b0 kernel/sched/swait.c:40 rcu_gp_kthread_wake kernel/rcu/tree.c:1787 [inline] rcu_report_qs_rsp kernel/rcu/tree.c:2366 [inline] rcu_report_qs_rnp+0x767/0x880 kernel/rcu/tree.c:2433 rcu_report_qs_rdp kernel/rcu/tree.c:2516 [inline] rcu_check_quiescent_state kernel/rcu/tree.c:2553 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2881 [inline] rcu_process_callbacks+0x7aa/0x2020 kernel/rcu/tree.c:2914 __do_softirq+0x56d/0x93d kernel/softirq.c:285 invoke_softirq kernel/softirq.c:365 [inline] irq_exit+0x202/0x240 kernel/softirq.c:405 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:525 smp_apic_timer_interrupt+0x64/0x90 arch/x86/kernel/apic/apic.c:1055 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:863 RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:55 [inline] RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:97 [inline] RIP: 0010:default_idle+0x1fb/0x3c0 arch/x86/kernel/process.c:354 RSP: 0018:ffff8801d8e5fdf0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff8801fd431ef8 RBX: 0000000000000000 RCX: ffff880000000000 RDX: ffff8801fd031ef8 RSI: aaaaaaaaaaaab000 RDI: ffffea0000000000 RBP: ffff8801d8e5fe28 R08: 0000000001080020 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000004 R12: ffff8801d8da57c0 R13: ffff8801d8da6098 R14: ffff8801d8e5fe8c R15: ffff8801d8da6098 arch_cpu_idle+0x20/0x30 arch/x86/kernel/process.c:345 default_idle_call kernel/sched/idle.c:93 [inline] cpuidle_idle_call kernel/sched/idle.c:153 [inline] do_idle+0x458/0x850 kernel/sched/idle.c:262 cpu_startup_entry+0x45/0x50 kernel/sched/idle.c:368 start_secondary+0x39d/0x470 arch/x86/kernel/smpboot.c:269 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:242 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_save_stack mm/kmsan/kmsan.c:294 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:685 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:528 __list_del include/linux/list.h:105 [inline] __list_del_entry include/linux/list.h:120 [inline] list_del_init include/linux/list.h:159 [inline] account_entity_dequeue kernel/sched/fair.c:2667 [inline] dequeue_entity kernel/sched/fair.c:4267 [inline] dequeue_task_fair+0x1dd4/0x32f0 kernel/sched/fair.c:5407 dequeue_task kernel/sched/core.c:762 [inline] deactivate_task+0x50a/0x780 kernel/sched/core.c:778 __schedule+0x164/0x730 kernel/sched/core.c:3457 do_task_dead+0xcc/0xf0 kernel/sched/core.c:3524 do_exit+0x340e/0x38d0 kernel/exit.c:924 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1320/0x1f20 kernel/signal.c:2482 do_signal+0xb8/0x1c80 arch/x86/kernel/signal.c:810 exit_to_usermode_loop arch/x86/entry/common.c:162 [inline] prepare_exit_to_usermode+0x271/0x3a0 arch/x86/entry/common.c:196 syscall_return_slowpath+0xe9/0x700 arch/x86/entry/common.c:265 do_syscall_64+0x1a6/0x220 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_save_stack mm/kmsan/kmsan.c:294 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:685 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:528 __list_add include/linux/list.h:65 [inline] list_add include/linux/list.h:79 [inline] list_move include/linux/list.h:171 [inline] pick_next_task_fair+0x2464/0x2520 kernel/sched/fair.c:6968 pick_next_task+0x1b1/0x410 kernel/sched/core.c:3351 __schedule+0x20b/0x730 kernel/sched/core.c:3481 do_task_dead+0xcc/0xf0 kernel/sched/core.c:3524 do_exit+0x340e/0x38d0 kernel/exit.c:924 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1320/0x1f20 kernel/signal.c:2482 do_signal+0xb8/0x1c80 arch/x86/kernel/signal.c:810 exit_to_usermode_loop arch/x86/entry/common.c:162 [inline] prepare_exit_to_usermode+0x271/0x3a0 arch/x86/entry/common.c:196 syscall_return_slowpath+0xe9/0x700 arch/x86/entry/common.c:265 do_syscall_64+0x1a6/0x220 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Local variable description: ----flags.i.i.i.i@_raw_spin_lock_irqsave Variable was created at: _raw_spin_lock_irqsave+0x45/0xf0 kernel/locking/spinlock.c:150 do_task_dead+0x40/0xf0 kernel/sched/core.c:3519 ==================================================================