================================================================== BUG: KMSAN: uninit-value in prefetch_freepointer mm/slub.c:276 [inline] BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2713 [inline] BUG: KMSAN: uninit-value in __kmalloc_node+0xef3/0x1240 mm/slub.c:3823 CPU: 0 PID: 4609 Comm: syz-executor7 Not tainted 4.18.0-rc5+ #29 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/0x1e0 lib/dump_stack.c:113 kmsan_report+0x195/0x2c0 mm/kmsan/kmsan.c:982 __msan_warning+0x7d/0xe0 mm/kmsan/kmsan_instr.c:645 prefetch_freepointer mm/slub.c:276 [inline] slab_alloc_node mm/slub.c:2713 [inline] __kmalloc_node+0xef3/0x1240 mm/slub.c:3823 kmalloc_node include/linux/slab.h:555 [inline] kvmalloc_node+0x19d/0x370 mm/util.c:423 kvmalloc include/linux/mm.h:557 [inline] xt_alloc_table_info+0xbe/0x180 net/netfilter/x_tables.c:1186 do_replace net/ipv4/netfilter/ip_tables.c:1128 [inline] do_ipt_set_ctl+0x46b/0xa80 net/ipv4/netfilter/ip_tables.c:1675 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:1258 tcp_setsockopt+0x1c0/0x1f0 net/ipv4/tcp.c:3060 sock_common_setsockopt+0x13b/0x170 net/core/sock.c:3040 __sys_setsockopt+0x496/0x540 net/socket.c:1911 __do_sys_setsockopt net/socket.c:1922 [inline] __se_sys_setsockopt net/socket.c:1919 [inline] __x64_sys_setsockopt+0x15c/0x1c0 net/socket.c:1919 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x4585ca Code: 49 89 ca b8 37 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fa 8e fb ff c3 66 0f 1f 84 00 00 00 00 00 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 8e fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:0000000000a3e328 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000a3e350 RCX: 00000000004585ca RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000013 RBP: 0000000000707f20 R08: 0000000000000408 R09: 0000000000004000 R10: 0000000000706a80 R11: 0000000000000206 R12: 0000000000000013 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000706ae0 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xc8/0x1d0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0xa1/0x120 mm/kmsan/kmsan_hooks.c:91 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan_hooks.c:100 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2720 [inline] __kmalloc_node_track_caller+0xb48/0x11d0 mm/slub.c:4353 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2cb/0x9e0 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:988 [inline] tcp_send_ack+0x18d/0x900 net/ipv4/tcp_output.c:3590 __tcp_ack_snd_check+0x7f3/0x890 net/ipv4/tcp_input.c:5113 tcp_ack_snd_check net/ipv4/tcp_input.c:5149 [inline] tcp_rcv_established+0x1488/0x2b50 net/ipv4/tcp_input.c:5565 tcp_v4_do_rcv+0x646/0xcf0 net/ipv4/tcp_ipv4.c:1518 tcp_v4_rcv+0x6bc0/0x7220 net/ipv4/tcp_ipv4.c:1810 ip_local_deliver_finish+0x851/0xf00 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:287 [inline] ip_local_deliver+0x455/0x510 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:450 [inline] ip_rcv_finish+0xa1b/0x1d10 net/ipv4/ip_input.c:396 NF_HOOK include/linux/netfilter.h:287 [inline] ip_rcv+0x12d4/0x14f0 net/ipv4/ip_input.c:492 __netif_receive_skb_core+0x4a7a/0x4fc0 net/core/dev.c:4628 __netif_receive_skb net/core/dev.c:4693 [inline] netif_receive_skb_internal+0x475/0x660 net/core/dev.c:4767 napi_skb_finish net/core/dev.c:5129 [inline] napi_gro_receive+0x6be/0xb90 net/core/dev.c:5160 receive_buf+0x4fb4/0x7900 drivers/net/virtio_net.c:996 virtnet_receive drivers/net/virtio_net.c:1252 [inline] virtnet_poll+0x903/0x1490 drivers/net/virtio_net.c:1334 napi_poll net/core/dev.c:5771 [inline] net_rx_action+0x799/0x1ae0 net/core/dev.c:5837 __do_softirq+0x55f/0x934 kernel/softirq.c:288 ==================================================================