================================================================== BUG: KMSAN: uninit-value in ip_vs_lblc_check_expire+0xe62/0xf10 net/netfilter/ipvs/ip_vs_lblc.c:315 CPU: 1 PID: 534 Comm: kworker/u4:7 Not tainted 4.17.0+ #20 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kkcmd kcm_tx_work 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:1476 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:651 ip_vs_lblc_check_expire+0xe62/0xf10 net/netfilter/ipvs/ip_vs_lblc.c:315 call_timer_fn+0x280/0x5d0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xd96/0x11b0 kernel/time/timer.c:1666 run_timer_softirq+0x43/0x70 kernel/time/timer.c:1692 __do_softirq+0x592/0x979 kernel/softirq.c:285 do_softirq_own_stack+0x49/0x80 arch/x86/entry/entry_64.S:1054 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x114/0x140 kernel/softirq.c:182 __raw_read_unlock_bh include/linux/rwlock_api_smp.h:251 [inline] _raw_read_unlock_bh+0x50/0x70 kernel/locking/spinlock.c:272 psock_write_space+0x240/0x280 net/kcm/kcmsock.c:429 do_tcp_sendpages+0x3469/0x3a00 net/ipv4/tcp.c:1066 tcp_sendpage_locked net/ipv4/tcp.c:1081 [inline] tcp_sendpage+0x1e0/0x240 net/ipv4/tcp.c:1091 inet_sendpage+0x505/0x8f0 net/ipv4/af_inet.c:815 kernel_sendpage+0x156/0x210 net/socket.c:3323 kcm_write_msgs+0x196a/0x2470 net/kcm/kcmsock.c:646 kcm_tx_work+0x77/0x2f0 net/kcm/kcmsock.c:731 process_one_work+0x12e4/0x1fa0 kernel/workqueue.c:2145 worker_thread+0x113c/0x24f0 kernel/workqueue.c:2279 kthread+0x4db/0x6c0 kernel/kthread.c:241 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:415 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:323 [inline] kmsan_internal_alloc_meta_for_pages+0x15c/0x710 mm/kmsan/kmsan.c:862 kmsan_alloc_page+0x87/0xe0 mm/kmsan/kmsan.c:1175 __alloc_pages_nodemask+0xf7b/0x5cc0 mm/page_alloc.c:4404 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:494 [inline] kmalloc_order mm/slab_common.c:1148 [inline] kmalloc_order_trace+0xbb/0x390 mm/slab_common.c:1159 kmalloc_large include/linux/slab.h:446 [inline] __kmalloc+0x335/0x350 mm/slub.c:3805 kmalloc include/linux/slab.h:517 [inline] ip_vs_lblc_init_svc+0x57/0x310 net/netfilter/ipvs/ip_vs_lblc.c:355 ip_vs_bind_scheduler+0xa9/0x1f0 net/netfilter/ipvs/ip_vs_sched.c:51 ip_vs_add_service+0xa9d/0x1d90 net/netfilter/ipvs/ip_vs_ctl.c:1265 do_ip_vs_set_ctl+0x2aa9/0x2cd0 net/netfilter/ipvs/ip_vs_ctl.c:2462 nf_sockopt net/netfilter/nf_sockopt.c:106 [inline] nf_setsockopt+0x47c/0x4e0 net/netfilter/nf_sockopt.c:115 ip_setsockopt+0x24b/0x2b0 net/ipv4/ip_sockglue.c:1251 udp_setsockopt+0x108/0x1b0 net/ipv4/udp.c:2416 sock_common_setsockopt+0x13b/0x170 net/core/sock.c:3039 __sys_setsockopt+0x496/0x540 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0x15c/0x1c0 net/socket.c:1911 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================