================================================================== BUG: KMSAN: uninit-value in __purge_vmap_area_lazy+0x1d7/0x3d0 mm/vmalloc.c:666 CPU: 0 PID: 7178 Comm: syz-executor.3 Not tainted 5.0.0-rc1+ #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+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x12e/0x2a0 mm/kmsan/kmsan.c:600 __msan_warning+0x82/0xf0 mm/kmsan/kmsan_instr.c:313 __purge_vmap_area_lazy+0x1d7/0x3d0 mm/vmalloc.c:666 vm_unmap_aliases+0x616/0x6c0 mm/vmalloc.c:1109 change_page_attr_set_clr+0x61e/0x1860 arch/x86/mm/pageattr.c:1698 change_page_attr_clear arch/x86/mm/pageattr.c:1755 [inline] set_memory_ro+0xdd/0x130 arch/x86/mm/pageattr.c:1982 bpf_jit_binary_lock_ro include/linux/filter.h:696 [inline] bpf_int_jit_compile+0x765d/0x8650 arch/x86/net/bpf_jit_comp.c:1168 bpf_prog_select_runtime+0xb99/0xec0 kernel/bpf/core.c:1734 bpf_migrate_filter net/core/filter.c:1275 [inline] bpf_prepare_filter+0x1828/0x1c90 net/core/filter.c:1323 __get_filter+0x4f8/0x730 net/core/filter.c:1492 sk_attach_filter+0x72/0x2e0 net/core/filter.c:1507 sock_setsockopt+0x396f/0x4bb0 net/core/sock.c:895 __sys_setsockopt+0x336/0x540 net/socket.c:1898 __do_sys_setsockopt net/socket.c:1913 [inline] __se_sys_setsockopt+0xdd/0x100 net/socket.c:1910 __x64_sys_setsockopt+0x62/0x80 net/socket.c:1910 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457e29 Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9c87c95c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000000457e29 RDX: 000000000000001a RSI: 0000000000000001 RDI: 0000000000000003 RBP: 000000000073bf00 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020b86000 R11: 0000000000000246 R12: 00007f9c87c966d4 R13: 00000000004c57e5 R14: 00000000004d9988 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159 kmsan_kmalloc+0xa6/0x130 mm/kmsan/kmsan_hooks.c:176 kmem_cache_alloc_node_trace+0xb59/0xc70 mm/slub.c:2814 kmalloc_node include/linux/slab.h:583 [inline] alloc_vmap_area+0x210/0x15f0 mm/vmalloc.c:420 __get_vm_area_node+0x3e6/0x7f0 mm/vmalloc.c:1397 __vmalloc_node_range+0x315/0x13a0 mm/vmalloc.c:1751 __vmalloc_node mm/vmalloc.c:1801 [inline] __vmalloc_node_flags mm/vmalloc.c:1815 [inline] vzalloc+0xd8/0xf0 mm/vmalloc.c:1854 alloc_counters+0x99/0x8d0 net/ipv6/netfilter/ip6_tables.c:819 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:841 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1044 [inline] do_ip6t_get_ctl+0x7da/0x1030 net/ipv6/netfilter/ip6_tables.c:1712 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x481/0x4e0 net/netfilter/nf_sockopt.c:122 ipv6_getsockopt+0x279/0x510 net/ipv6/ipv6_sockglue.c:1392 tcp_getsockopt+0x1c6/0x1f0 net/ipv4/tcp.c:3591 sock_common_getsockopt+0x13f/0x180 net/core/sock.c:2950 __sys_getsockopt+0x489/0x550 net/socket.c:1939 __do_sys_getsockopt net/socket.c:1950 [inline] __se_sys_getsockopt+0xe1/0x100 net/socket.c:1947 __x64_sys_getsockopt+0x62/0x80 net/socket.c:1947 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================