================================================================== BUG: KMSAN: uninit-value in ip_rcv_core+0x7ae/0x11d0 net/ipv4/ip_input.c:431 CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.2.0-rc4+ #4 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+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x162/0x2d0 mm/kmsan/kmsan.c:611 __msan_warning+0x75/0xe0 mm/kmsan/kmsan_instr.c:304 ip_rcv_core+0x7ae/0x11d0 net/ipv4/ip_input.c:431 ip_rcv+0xca/0x740 net/ipv4/ip_input.c:519 __netif_receive_skb_one_core net/core/dev.c:4981 [inline] __netif_receive_skb net/core/dev.c:5095 [inline] netif_receive_skb_internal+0x8f4/0xc20 net/core/dev.c:5185 napi_skb_finish net/core/dev.c:5648 [inline] napi_gro_receive+0x682/0xb90 net/core/dev.c:5681 gro_cell_poll+0x25c/0x3f0 net/core/gro_cells.c:60 napi_poll net/core/dev.c:6329 [inline] net_rx_action+0x738/0x1940 net/core/dev.c:6395 __do_softirq+0x4ad/0x858 kernel/softirq.c:293 run_ksoftirqd+0x25/0x40 kernel/softirq.c:607 smpboot_thread_fn+0x4be/0x9d0 kernel/smpboot.c:165 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_save_stack mm/kmsan/kmsan.c:213 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:414 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:200 __skb_pull include/linux/skbuff.h:2223 [inline] skb_pull_inline include/linux/skbuff.h:2230 [inline] eth_type_trans+0x683/0xa90 net/ethernet/eth.c:165 ip_tunnel_rcv+0xf47/0x1be0 net/ipv4/ip_tunnel.c:416 erspan_rcv net/ipv4/ip_gre.c:321 [inline] gre_rcv+0x1526/0x1900 net/ipv4/ip_gre.c:415 gre_rcv+0x2dd/0x3c0 net/ipv4/gre_demux.c:155 ip_protocol_deliver_rcu+0x722/0xbc0 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_local_deliver+0x62a/0x7c0 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:439 [inline] ip_rcv_finish net/ipv4/ip_input.c:413 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_rcv+0x6c5/0x740 net/ipv4/ip_input.c:523 __netif_receive_skb_one_core net/core/dev.c:4981 [inline] __netif_receive_skb net/core/dev.c:5095 [inline] process_backlog+0xef5/0x1410 net/core/dev.c:5906 napi_poll net/core/dev.c:6329 [inline] net_rx_action+0x738/0x1940 net/core/dev.c:6395 __do_softirq+0x4ad/0x858 kernel/softirq.c:293 run_ksoftirqd+0x25/0x40 kernel/softirq.c:607 smpboot_thread_fn+0x4be/0x9d0 kernel/smpboot.c:165 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_save_stack mm/kmsan/kmsan.c:213 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:414 __msan_chain_origin+0x6b/0xe0 mm/kmsan/kmsan_instr.c:200 __skb_pull include/linux/skbuff.h:2223 [inline] skb_pull_rcsum+0x2d4/0x500 net/core/skbuff.c:3482 __iptunnel_pull_header+0x14d/0xbc0 net/ipv4/ip_tunnel_core.c:91 erspan_rcv net/ipv4/ip_gre.c:279 [inline] gre_rcv+0x6d9/0x1900 net/ipv4/ip_gre.c:415 gre_rcv+0x2dd/0x3c0 net/ipv4/gre_demux.c:155 ip_protocol_deliver_rcu+0x722/0xbc0 net/ipv4/ip_input.c:204 ip_local_deliver_finish net/ipv4/ip_input.c:231 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_local_deliver+0x62a/0x7c0 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:439 [inline] ip_rcv_finish net/ipv4/ip_input.c:413 [inline] NF_HOOK include/linux/netfilter.h:305 [inline] ip_rcv+0x6c5/0x740 net/ipv4/ip_input.c:523 __netif_receive_skb_one_core net/core/dev.c:4981 [inline] __netif_receive_skb net/core/dev.c:5095 [inline] process_backlog+0xef5/0x1410 net/core/dev.c:5906 napi_poll net/core/dev.c:6329 [inline] net_rx_action+0x738/0x1940 net/core/dev.c:6395 __do_softirq+0x4ad/0x858 kernel/softirq.c:293 run_ksoftirqd+0x25/0x40 kernel/softirq.c:607 smpboot_thread_fn+0x4be/0x9d0 kernel/smpboot.c:165 kthread+0x4b5/0x4f0 kernel/kthread.c:256 ret_from_fork+0x35/0x40 arch/x86/entry/entry_64.S:355 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_save_stack mm/kmsan/kmsan.c:213 [inline] kmsan_internal_chain_origin+0xcc/0x150 mm/kmsan/kmsan.c:414 kmsan_memcpy_memmove_metadata+0x9f9/0xe00 mm/kmsan/kmsan.c:297 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:317 __msan_memcpy+0x56/0x70 mm/kmsan/kmsan_instr.c:139 pskb_expand_head+0x38a/0x19f0 net/core/skbuff.c:1510 __skb_cow include/linux/skbuff.h:3036 [inline] skb_cow_head include/linux/skbuff.h:3070 [inline] ip_tunnel_xmit+0x2971/0x3320 net/ipv4/ip_tunnel.c:811 __gre_xmit net/ipv4/ip_gre.c:444 [inline] erspan_xmit+0x1ef8/0x35c0 net/ipv4/ip_gre.c:679 __netdev_start_xmit include/linux/netdevice.h:4406 [inline] netdev_start_xmit include/linux/netdevice.h:4420 [inline] xmit_one net/core/dev.c:3288 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3304 sch_direct_xmit+0x56c/0x18c0 net/sched/sch_generic.c:309 __dev_xmit_skb net/core/dev.c:3485 [inline] __dev_queue_xmit+0x1e53/0x4270 net/core/dev.c:3846 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3910 neigh_resolve_output+0xab7/0xb50 net/core/neighbour.c:1486 neigh_output include/net/neighbour.h:511 [inline] ip_finish_output2+0x1a8e/0x25d0 net/ipv4/ip_output.c:228 ip_finish_output+0xd2a/0xfd0 net/ipv4/ip_output.c:315 NF_HOOK_COND include/linux/netfilter.h:294 [inline] ip_output+0x541/0x610 net/ipv4/ip_output.c:403 dst_output include/net/dst.h:433 [inline] ip_local_out net/ipv4/ip_output.c:125 [inline] ip_send_skb net/ipv4/ip_output.c:1461 [inline] ip_push_pending_frames+0x243/0x460 net/ipv4/ip_output.c:1481 raw_sendmsg+0x2df8/0x46d0 net/ipv4/raw.c:672 inet_sendmsg+0x48e/0x750 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg net/socket.c:665 [inline] ___sys_sendmsg+0xe92/0x13c0 net/socket.c:2286 __sys_sendmsg net/socket.c:2324 [inline] __do_sys_sendmsg net/socket.c:2333 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2331 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2331 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:201 [inline] kmsan_internal_poison_shadow+0x53/0xa0 mm/kmsan/kmsan.c:160 kmsan_kmalloc+0xa4/0x130 mm/kmsan/kmsan_hooks.c:177 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:186 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2763 [inline] __kmalloc_node_track_caller+0xcba/0xf30 mm/slub.c:4390 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x306/0xa10 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:1055 [inline] __ip_append_data+0x3ab5/0x5220 net/ipv4/ip_output.c:1001 ip_append_data+0x324/0x480 net/ipv4/ip_output.c:1216 raw_sendmsg+0x2d02/0x46d0 net/ipv4/raw.c:666 inet_sendmsg+0x48e/0x750 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg net/socket.c:665 [inline] ___sys_sendmsg+0xe92/0x13c0 net/socket.c:2286 __sys_sendmsg net/socket.c:2324 [inline] __do_sys_sendmsg net/socket.c:2333 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2331 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2331 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:302 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================