netlink: 24 bytes leftover after parsing attributes in process `syz-executor7'. ================================================================== BUG: KMSAN: uninit-value in __list_add_valid+0x1a2/0x450 lib/list_debug.c:23 CPU: 1 PID: 4583 Comm: syz-executor3 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+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: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:inl arch/x86/include/asm/io.h:335 [inline] RIP: 0010:read_pmtmr drivers/clocksource/acpi_pm.c:38 [inline] RIP: 0010:acpi_pm_read+0x31/0x60 drivers/clocksource/acpi_pm.c:63 RSP: 0018:ffff8801468bfd40 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: 00000000004c9c0b RBX: ffff880146c72618 RCX: ffff880000000000 RDX: 000000000000b008 RSI: aaaaaaaaaaaab000 RDI: ffffea0000000000 RBP: ffff8801468bfd50 R08: 0000000001080020 R09: 0000000000000002 R10: 0000000000000000 R11: ffffffff87960580 R12: ffffffff8af21de0 R13: ffffffff87960580 R14: 000000000000b008 R15: 0000000000000000 tk_clock_read kernel/time/timekeeping.c:161 [inline] timekeeping_get_delta kernel/time/timekeeping.c:255 [inline] timekeeping_get_ns kernel/time/timekeeping.c:362 [inline] ktime_get_ts64+0x175/0x820 kernel/time/timekeeping.c:878 posix_ktime_get_ts+0x38/0x60 kernel/time/posix-timers.c:222 __do_sys_clock_gettime kernel/time/posix-timers.c:1067 [inline] __se_sys_clock_gettime kernel/time/posix-timers.c:1057 [inline] __x64_sys_clock_gettime+0x295/0x370 kernel/time/posix-timers.c:1057 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4588ba RSP: 002b:0000000000a3ea88 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4 RAX: ffffffffffffffda RBX: 00000000000611b4 RCX: 00000000004588ba RDX: 0000000000000000 RSI: 0000000000a3ea90 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000001 R09: 000000000238b940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000007 R13: 00000000000005a4 R14: 0000000000a3f160 R15: 000000000006115e 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 __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+0x249e/0x2530 kernel/sched/fair.c:6968 pick_next_task+0x1ba/0x420 kernel/sched/core.c:3368 __schedule+0x20f/0x770 kernel/sched/core.c:3498 preempt_schedule_common kernel/sched/core.c:3648 [inline] _cond_resched+0x5e/0xd0 kernel/sched/core.c:4999 start_flush_work kernel/workqueue.c:2837 [inline] flush_work+0x98/0xde0 kernel/workqueue.c:2902 smc_close_active+0x11a3/0x1330 net/smc/smc_close.c:189 smc_release+0x1de/0x820 net/smc/af_smc.c:140 sock_release net/socket.c:594 [inline] sock_close+0xeb/0x310 net/socket.c:1149 __fput+0x458/0xa30 fs/file_table.c:209 ____fput+0x37/0x40 fs/file_table.c:243 task_work_run+0x22e/0x2b0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x110e/0x3930 kernel/exit.c:867 do_group_exit+0x1a0/0x360 kernel/exit.c:970 get_signal+0x1405/0x1ec0 kernel/signal.c:2482 do_signal+0xb8/0x1d20 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/0x710 arch/x86/entry/common.c:265 do_syscall_64+0x1ad/0x230 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: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 __rb_insert lib/rbtree.c:104 [inline] rb_insert_color_cached+0xddf/0x1370 lib/rbtree.c:469 __enqueue_entity kernel/sched/fair.c:561 [inline] enqueue_entity kernel/sched/fair.c:4185 [inline] enqueue_task_fair+0x181a/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 Local variable description: ----t.i.i@__se_sys_nanosleep Variable was created at: __se_sys_nanosleep+0x5f/0x6a0 kernel/time/hrtimer.c:1762 __x64_sys_nanosleep+0x92/0xc0 kernel/time/hrtimer.c:1762 ==================================================================