================================================================== BUG: KMSAN: uninit-value in ip_vs_lblcr_check_expire+0x1551/0x1600 net/netfilter/ipvs/ip_vs_lblcr.c:479 CPU: 0 PID: 4636 Comm: syz-executor4 Not tainted 4.17.0+ #22 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:990 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:640 ip_vs_lblcr_check_expire+0x1551/0x1600 net/netfilter/ipvs/ip_vs_lblcr.c:479 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 invoke_softirq kernel/softirq.c:366 [inline] irq_exit+0x207/0x240 kernel/softirq.c:407 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:868 RIP: 0010:__read_once_size include/linux/compiler.h:197 [inline] RIP: 0010:atomic_read arch/x86/include/asm/atomic.h:31 [inline] RIP: 0010:refcount_add_not_zero arch/x86/include/asm/refcount.h:84 [inline] RIP: 0010:refcount_inc_not_zero arch/x86/include/asm/refcount.h:106 [inline] RIP: 0010:kref_get_unless_zero include/linux/kref.h:116 [inline] RIP: 0010:kobject_get_unless_zero+0x71/0x280 lib/kobject.c:604 RSP: 0018:ffff88014407f3f0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffffffff89f362a4 RBX: ffff8801cc2088b8 RCX: ffff880144050000 RDX: 0000000000000000 RSI: ffff88021fff2000 RDI: ffffffff7fffffff RBP: ffff88014407f448 R08: 0000000001080020 R09: 0000000000000002 R10: 0000000000000002 R11: ffffffff83e448a0 R12: 00000000fa200038 R13: 000000000000000a R14: 0000000000000000 R15: ffff8801440508e0 get_disk_and_module block/genhd.c:1500 [inline] exact_lock+0x122/0x220 block/genhd.c:565 kobj_lookup+0x51e/0x7f0 drivers/base/map.c:119 get_gendisk+0x3cb/0x6f0 block/genhd.c:825 bdev_get_gendisk fs/block_dev.c:1063 [inline] __blkdev_get+0x104/0x2300 fs/block_dev.c:1455 blkdev_get+0x346/0x1200 fs/block_dev.c:1611 blkdev_open+0x374/0x4b0 fs/block_dev.c:1769 do_dentry_open+0xccc/0x1440 fs/open.c:794 vfs_open+0x1b6/0x2f0 fs/open.c:908 do_last fs/namei.c:3365 [inline] path_openat+0x4771/0x6640 fs/namei.c:3506 do_filp_open+0x261/0x640 fs/namei.c:3540 do_sys_open+0x624/0x960 fs/open.c:1101 __do_sys_open fs/open.c:1119 [inline] __se_sys_open fs/open.c:1114 [inline] __x64_sys_open+0xf2/0x130 fs/open.c:1114 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x40fde0 RSP: 002b:0000000000a3eab8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000a3eae0 RCX: 000000000040fde0 RDX: 0000000000a3f87a RSI: 0000000000000002 RDI: 0000000000a3f870 RBP: 0000000000000013 R08: 0000000000000000 R09: 000000000000000a R10: 0000000000000075 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000001380 R14: 0000000000a3f160 R15: 00000000007034c0 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_alloc_meta_for_pages+0x146/0x700 mm/kmsan/kmsan.c:702 kmsan_alloc_page+0x75/0xd0 mm/kmsan/kmsan_hooks.c:250 __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_lblcr_init_svc+0x57/0x310 net/netfilter/ipvs/ip_vs_lblcr.c:518 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 tcp_setsockopt+0x1c0/0x1f0 net/ipv4/tcp.c:2891 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 ==================================================================