================================================================== BUG: KMSAN: uninit-value in __list_add_valid+0x1a2/0x450 lib/list_debug.c:23 CPU: 1 PID: 2181 Comm: udevd Not tainted 4.16.0+ #84 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:53 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:676 __list_add_valid+0x1a2/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:2667 [inline] enqueue_entity kernel/sched/fair.c:4036 [inline] enqueue_task_fair+0xe06/0x43a0 kernel/sched/fair.c:5219 enqueue_task kernel/sched/core.c:774 [inline] activate_task kernel/sched/core.c:793 [inline] ttwu_activate kernel/sched/core.c:1664 [inline] ttwu_do_activate kernel/sched/core.c:1723 [inline] ttwu_queue kernel/sched/core.c:1868 [inline] try_to_wake_up+0x13cc/0x20a0 kernel/sched/core.c:2081 wake_up_process+0x34/0x40 kernel/sched/core.c:2154 hrtimer_wakeup+0xac/0x100 kernel/time/hrtimer.c:1598 __run_hrtimer kernel/time/hrtimer.c:1349 [inline] __hrtimer_run_queues+0xc03/0x15d0 kernel/time/hrtimer.c:1411 hrtimer_interrupt+0x426/0xaf0 kernel/time/hrtimer.c:1469 local_apic_timer_interrupt+0x66/0x230 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:857 RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:37 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:78 [inline] RIP: 0010:__msan_poison_alloca+0x14c/0x1d0 mm/kmsan/kmsan_instr.c:644 RSP: 0000:ffff8801a6bffbc0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff12 RAX: 00000000c200004b RBX: 00000000c200004b RCX: ffff8801a6bffc00 RDX: 0000000000000004 RSI: 0000000000000004 RDI: 000000007c5828d9 RBP: ffff8801a6bffc60 R08: 0000000001080020 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: ffffffff87cac880 R14: 0000000000000246 R15: ffff8801a733bb00 handle_mm_fault+0xa5/0x7ba0 mm/memory.c:4114 __do_page_fault+0xec4/0x1a10 arch/x86/mm/fault.c:1423 do_page_fault+0xd3/0x260 arch/x86/mm/fault.c:1500 page_fault+0x45/0x50 arch/x86/entry/entry_64.S:1151 RIP: 0033:0x407821 RSP: 002b:00007fff8c7f0ce0 EFLAGS: 00010206 RAX: 0000000000000000 RBX: 0000000001422250 RCX: 00000000ffffffff RDX: 00007fff8c7f3f30 RSI: 0000000000000002 RDI: 0000000000000007 RBP: 0000000000625500 R08: 0000000000000001 R09: 0000000000014f6e R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff8c7f0db0 R13: 0000000000000001 R14: 00007fff8c7f0d44 R15: 0000000001422250 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 __write_once_size include/linux/compiler.h:224 [inline] __list_add include/linux/list.h:66 [inline] list_add include/linux/list.h:79 [inline] list_move include/linux/list.h:171 [inline] pick_next_task_fair+0x1edc/0x1f70 kernel/sched/fair.c:6748 pick_next_task+0x1b4/0x410 kernel/sched/core.c:3290 __schedule+0x211/0x730 kernel/sched/core.c:3420 preempt_schedule_common kernel/sched/core.c:3585 [inline] _cond_resched+0x5e/0xd0 kernel/sched/core.c:4932 zap_pmd_range mm/memory.c:1443 [inline] zap_pud_range mm/memory.c:1470 [inline] zap_p4d_range mm/memory.c:1491 [inline] unmap_page_range+0x35e0/0x3be0 mm/memory.c:1512 unmap_single_vma+0x45b/0x5f0 mm/memory.c:1557 unmap_vmas+0x1f4/0x360 mm/memory.c:1587 exit_mmap+0x3da/0x950 mm/mmap.c:3020 __mmput+0x16c/0x610 kernel/fork.c:961 mmput+0xab/0xf0 kernel/fork.c:982 exit_mm+0x6ed/0x7a0 kernel/exit.c:545 do_exit+0xc01/0x38d0 kernel/exit.c:854 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1320/0x1f20 kernel/signal.c:2469 do_signal+0xb8/0x1c80 arch/x86/kernel/signal.c:809 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+0x36d/0x430 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:278 [inline] kmsan_save_stack mm/kmsan/kmsan.c:293 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:684 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:521 set_next_buddy kernel/sched/fair.c:6544 [inline] check_preempt_wakeup+0xba0/0x13b0 kernel/sched/fair.c:6616 check_preempt_curr kernel/sched/core.c:888 [inline] ttwu_do_wakeup+0x2eb/0x980 kernel/sched/core.c:1678 ttwu_do_activate kernel/sched/core.c:1724 [inline] ttwu_queue kernel/sched/core.c:1868 [inline] try_to_wake_up+0x14d0/0x20a0 kernel/sched/core.c:2081 default_wake_function+0x92/0xb0 kernel/sched/core.c:3699 __wake_up_common kernel/sched/wait.c:97 [inline] __wake_up_locked+0x216/0x370 kernel/sched/wait.c:158 ep_poll_callback+0xd7c/0x11c0 fs/eventpoll.c:1197 __wake_up_common+0x44f/0xa60 kernel/sched/wait.c:97 __wake_up_common_lock+0x196/0x370 kernel/sched/wait.c:125 __wake_up_sync_key+0xcf/0x120 kernel/sched/wait.c:203 pipe_release+0x2cc/0x5a0 fs/pipe.c:571 __fput+0x49e/0xa10 fs/file_table.c:209 ____fput+0x37/0x40 fs/file_table.c:243 task_work_run+0x243/0x2c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x10e1/0x38d0 kernel/exit.c:867 do_group_exit+0x1a0/0x360 kernel/exit.c:970 SYSC_exit_group+0x21/0x30 kernel/exit.c:981 SyS_exit_group+0x25/0x30 kernel/exit.c:979 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 Local variable description: ----wait.i@SYSC_epoll_wait Variable was created at: SYSC_epoll_wait+0x10f/0x17c0 fs/eventpoll.c:2153 SyS_epoll_wait+0x63/0x90 fs/eventpoll.c:2151 ==================================================================