================================================================== BUG: KMSAN: uninit-value in ip_check_mc_rcu+0x2a5/0x670 net/ipv4/igmp.c:2679 CPU: 0 PID: 11338 Comm: syz-executor4 Not tainted 4.17.0+ #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+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1125 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 ip_check_mc_rcu+0x2a5/0x670 net/ipv4/igmp.c:2679 __mkroute_output net/ipv4/route.c:2199 [inline] ip_route_output_key_hash_rcu+0x1f92/0x3a90 net/ipv4/route.c:2478 ip_route_output_key_hash net/ipv4/route.c:2307 [inline] __ip_route_output_key include/net/route.h:124 [inline] ip_route_output_flow+0x1d4/0x3b0 net/ipv4/route.c:2562 ip_route_output_key include/net/route.h:134 [inline] ip_tunnel_xmit+0x12d2/0x37c0 net/ipv4/ip_tunnel.c:717 __gre_xmit net/ipv4/ip_gre.c:449 [inline] ipgre_xmit+0xe16/0xef0 net/ipv4/ip_gre.c:689 __netdev_start_xmit include/linux/netdevice.h:4087 [inline] netdev_start_xmit include/linux/netdevice.h:4096 [inline] xmit_one net/core/dev.c:3053 [inline] dev_hard_start_xmit+0x5f6/0xc80 net/core/dev.c:3069 __dev_queue_xmit+0x2ad2/0x3540 net/core/dev.c:3584 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617 packet_snd net/packet/af_packet.c:2953 [inline] packet_sendmsg+0x818b/0x8cc0 net/packet/af_packet.c:2978 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg net/socket.c:639 [inline] sock_write_iter+0x3bc/0x470 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x808/0x9f0 fs/read_write.c:487 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x455b29 RSP: 002b:00007fa4db3d6c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fa4db3d76d4 RCX: 0000000000455b29 RDX: 0000000000000013 RSI: 0000000020000040 RDI: 0000000000000019 RBP: 000000000072bf50 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c27cf R14: 00000000004d3ed0 R15: 0000000000000001 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 ip_tunnel_init_flow include/net/ip_tunnels.h:267 [inline] ip_tunnel_xmit+0xa2e/0x37c0 net/ipv4/ip_tunnel.c:706 __gre_xmit net/ipv4/ip_gre.c:449 [inline] ipgre_xmit+0xe16/0xef0 net/ipv4/ip_gre.c:689 __netdev_start_xmit include/linux/netdevice.h:4087 [inline] netdev_start_xmit include/linux/netdevice.h:4096 [inline] xmit_one net/core/dev.c:3053 [inline] dev_hard_start_xmit+0x5f6/0xc80 net/core/dev.c:3069 __dev_queue_xmit+0x2ad2/0x3540 net/core/dev.c:3584 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617 packet_snd net/packet/af_packet.c:2953 [inline] packet_sendmsg+0x818b/0x8cc0 net/packet/af_packet.c:2978 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg net/socket.c:639 [inline] sock_write_iter+0x3bc/0x470 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x808/0x9f0 fs/read_write.c:487 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_save_stack mm/kmsan/kmsan.c:297 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:689 kmsan_memcpy_origins+0x11d/0x170 mm/kmsan/kmsan.c:530 __msan_memcpy+0x109/0x160 mm/kmsan/kmsan_instr.c:413 pskb_expand_head+0x3a6/0x1a70 net/core/skbuff.c:1470 __skb_cow include/linux/skbuff.h:2899 [inline] skb_cow_head include/linux/skbuff.h:2933 [inline] ipgre_xmit+0x4c3/0xef0 net/ipv4/ip_gre.c:668 __netdev_start_xmit include/linux/netdevice.h:4087 [inline] netdev_start_xmit include/linux/netdevice.h:4096 [inline] xmit_one net/core/dev.c:3053 [inline] dev_hard_start_xmit+0x5f6/0xc80 net/core/dev.c:3069 __dev_queue_xmit+0x2ad2/0x3540 net/core/dev.c:3584 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617 packet_snd net/packet/af_packet.c:2953 [inline] packet_sendmsg+0x818b/0x8cc0 net/packet/af_packet.c:2978 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg net/socket.c:639 [inline] sock_write_iter+0x3bc/0x470 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x808/0x9f0 fs/read_write.c:487 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:282 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:192 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:318 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan.c:325 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2753 [inline] __kmalloc_node_track_caller+0xb35/0x11b0 mm/slub.c:4395 __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] alloc_skb_with_frags+0x1e6/0xb80 net/core/skbuff.c:5254 sock_alloc_send_pskb+0xb56/0x11a0 net/core/sock.c:2088 packet_alloc_skb net/packet/af_packet.c:2810 [inline] packet_snd net/packet/af_packet.c:2901 [inline] packet_sendmsg+0x6672/0x8cc0 net/packet/af_packet.c:2978 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg net/socket.c:639 [inline] sock_write_iter+0x3bc/0x470 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x808/0x9f0 fs/read_write.c:487 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 ==================================================================