================================================================== BUG: KMSAN: uninit-value in __list_add_valid+0x1b8/0x450 lib/list_debug.c:23 CPU: 0 PID: 5154 Comm: syz-executor442 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 __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+0xe12/0x4490 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:1658 [inline] ttwu_do_activate kernel/sched/core.c:1717 [inline] ttwu_queue kernel/sched/core.c:1862 [inline] try_to_wake_up+0x162f/0x2260 kernel/sched/core.c:2075 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_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_get_context_state+0x93/0xf0 mm/kmsan/kmsan_instr.c:644 RSP: 0000:ffff8801bf4bf9f8 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: ffff8801cc8ae098 RBX: ffff8801cc8ae098 RCX: 0000000000000000 RDX: ffffea00098c1d80 RSI: 0000000000000000 RDI: ffff8801bf4bfcc8 RBP: ffff8801bf4bfa20 R08: 0000000000000000 R09: 0000000000000002 R10: 0000000000000000 R11: ffffffff81928dc0 R12: ffffea00098c1d80 R13: ffff8801bf4bfc37 R14: ffff8801cc8ad7c0 R15: 0000000000000202 alloc_set_pte+0x26/0x1d80 mm/memory.c:3411 filemap_map_pages+0x12d7/0x1ac0 mm/filemap.c:2677 do_fault_around mm/memory.c:3595 [inline] do_read_fault mm/memory.c:3629 [inline] do_fault mm/memory.c:3734 [inline] handle_pte_fault mm/memory.c:3965 [inline] __handle_mm_fault mm/memory.c:4089 [inline] handle_mm_fault+0x2f6b/0x7ed0 mm/memory.c:4126 __do_page_fault+0xec6/0x1a10 arch/x86/mm/fault.c:1400 do_page_fault+0xb7/0x250 arch/x86/mm/fault.c:1477 page_fault+0x1e/0x30 arch/x86/entry/entry_64.S:1163 RIP: 0033:0x43f0ba RSP: 002b:00007ffe992ee280 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000000043f0ba RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffe992ee2a0 R08: 000000000000118e R09: 0000000000c98880 R10: 0000000000c98b50 R11: 0000000000000246 R12: 000000000000118e R13: 0000000000401c00 R14: 0000000000000000 R15: 0000000000000000 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 __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+0x2474/0x2530 kernel/sched/fair.c:6968 pick_next_task+0x1ba/0x420 kernel/sched/core.c:3368 __schedule+0x20f/0x770 kernel/sched/core.c:3498 do_task_dead+0xc8/0xf0 kernel/sched/core.c:3541 do_exit+0x347e/0x3930 kernel/exit.c:924 do_group_exit+0x1a0/0x360 kernel/exit.c:970 __do_sys_exit_group+0x21/0x30 kernel/exit.c:981 __se_sys_exit_group+0x14/0x20 kernel/exit.c:979 __x64_sys_exit_group+0x4c/0x50 kernel/exit.c:979 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 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:3536 ==================================================================