===================================================== BUG: KMSAN: uninit-value in __flow_hash_consistentify net/core/flow_dissector.c:1522 [inline] BUG: KMSAN: uninit-value in __flow_hash_from_keys+0x694/0xd50 net/core/flow_dissector.c:1552 CPU: 0 PID: 18200 Comm: syz-executor.3 Not tainted 5.5.0-rc1-syzkaller #0 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+0x1c9/0x220 lib/dump_stack.c:118 kmsan_report+0x128/0x220 mm/kmsan/kmsan_report.c:108 __msan_warning+0x57/0xa0 mm/kmsan/kmsan_instr.c:245 __flow_hash_consistentify net/core/flow_dissector.c:1522 [inline] __flow_hash_from_keys+0x694/0xd50 net/core/flow_dissector.c:1552 ___skb_get_hash net/core/flow_dissector.c:1576 [inline] __skb_get_hash+0x140/0x3e0 net/core/flow_dissector.c:1639 skb_get_hash include/linux/skbuff.h:1340 [inline] ip_tunnel_xmit+0x7f8/0x3480 net/ipv4/ip_tunnel.c:737 __gre_xmit net/ipv4/ip_gre.c:448 [inline] gre_tap_xmit+0xa73/0xb80 net/ipv4/ip_gre.c:711 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 sch_direct_xmit+0x515/0x18c0 net/sched/sch_generic.c:314 __dev_xmit_skb net/core/dev.c:3621 [inline] __dev_queue_xmit+0x208e/0x4280 net/core/dev.c:3982 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 br_dev_queue_push_xmit+0x803/0x8b0 net/bridge/br_forward.c:52 NF_HOOK include/linux/netfilter.h:307 [inline] br_forward_finish net/bridge/br_forward.c:65 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] __br_forward+0xa60/0xe30 net/bridge/br_forward.c:109 deliver_clone net/bridge/br_forward.c:125 [inline] maybe_deliver net/bridge/br_forward.c:181 [inline] br_flood+0xb4f/0xfe0 net/bridge/br_forward.c:223 br_dev_xmit+0x134f/0x16e0 net/bridge/br_device.c:98 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 neigh_resolve_output+0xab7/0xb50 net/core/neighbour.c:1490 neigh_output include/net/neighbour.h:511 [inline] ip_finish_output2+0x1a9c/0x25d0 net/ipv4/ip_output.c:228 __ip_finish_output+0xaf8/0xda0 net/ipv4/ip_output.c:308 ip_finish_output+0x2db/0x420 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x593/0x680 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:436 [inline] ip_local_out+0x164/0x1d0 net/ipv4/ip_output.c:125 iptunnel_xmit+0x870/0xde0 net/ipv4/ip_tunnel_core.c:81 ip_tunnel_xmit+0x2d7c/0x3480 net/ipv4/ip_tunnel.c:818 __gre_xmit net/ipv4/ip_gre.c:448 [inline] ipgre_xmit+0xff3/0x1120 net/ipv4/ip_gre.c:632 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 packet_snd net/packet/af_packet.c:2965 [inline] packet_sendmsg+0x836f/0x92a0 net/packet/af_packet.c:2990 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg net/socket.c:659 [inline] ____sys_sendmsg+0x1362/0x13f0 net/socket.c:2330 ___sys_sendmsg net/socket.c:2384 [inline] __sys_sendmsg+0x4f0/0x5e0 net/socket.c:2417 __do_sys_sendmsg net/socket.c:2426 [inline] __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45a909 Code: ad b6 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 b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7cbfd22c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a909 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7cbfd236d4 R13: 00000000004c99c8 R14: 00000000004e1750 R15: 00000000ffffffff Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:149 [inline] kmsan_internal_chain_origin+0xb9/0x170 mm/kmsan/kmsan.c:317 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:252 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:272 __msan_memcpy+0x56/0x70 mm/kmsan/kmsan_instr.c:129 __skb_flow_dissect+0x3997/0x8000 net/core/flow_dissector.c:1081 skb_flow_dissect_flow_keys include/linux/skbuff.h:1302 [inline] ___skb_get_hash net/core/flow_dissector.c:1573 [inline] __skb_get_hash+0x114/0x3e0 net/core/flow_dissector.c:1639 skb_get_hash include/linux/skbuff.h:1340 [inline] ip_tunnel_xmit+0x7f8/0x3480 net/ipv4/ip_tunnel.c:737 __gre_xmit net/ipv4/ip_gre.c:448 [inline] gre_tap_xmit+0xa73/0xb80 net/ipv4/ip_gre.c:711 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 sch_direct_xmit+0x515/0x18c0 net/sched/sch_generic.c:314 __dev_xmit_skb net/core/dev.c:3621 [inline] __dev_queue_xmit+0x208e/0x4280 net/core/dev.c:3982 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 br_dev_queue_push_xmit+0x803/0x8b0 net/bridge/br_forward.c:52 NF_HOOK include/linux/netfilter.h:307 [inline] br_forward_finish net/bridge/br_forward.c:65 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] __br_forward+0xa60/0xe30 net/bridge/br_forward.c:109 deliver_clone net/bridge/br_forward.c:125 [inline] maybe_deliver net/bridge/br_forward.c:181 [inline] br_flood+0xb4f/0xfe0 net/bridge/br_forward.c:223 br_dev_xmit+0x134f/0x16e0 net/bridge/br_device.c:98 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 neigh_resolve_output+0xab7/0xb50 net/core/neighbour.c:1490 neigh_output include/net/neighbour.h:511 [inline] ip_finish_output2+0x1a9c/0x25d0 net/ipv4/ip_output.c:228 __ip_finish_output+0xaf8/0xda0 net/ipv4/ip_output.c:308 ip_finish_output+0x2db/0x420 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x593/0x680 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:436 [inline] ip_local_out+0x164/0x1d0 net/ipv4/ip_output.c:125 iptunnel_xmit+0x870/0xde0 net/ipv4/ip_tunnel_core.c:81 ip_tunnel_xmit+0x2d7c/0x3480 net/ipv4/ip_tunnel.c:818 __gre_xmit net/ipv4/ip_gre.c:448 [inline] ipgre_xmit+0xff3/0x1120 net/ipv4/ip_gre.c:632 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 packet_snd net/packet/af_packet.c:2965 [inline] packet_sendmsg+0x836f/0x92a0 net/packet/af_packet.c:2990 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg net/socket.c:659 [inline] ____sys_sendmsg+0x1362/0x13f0 net/socket.c:2330 ___sys_sendmsg net/socket.c:2384 [inline] __sys_sendmsg+0x4f0/0x5e0 net/socket.c:2417 __do_sys_sendmsg net/socket.c:2426 [inline] __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:149 [inline] kmsan_internal_chain_origin+0xb9/0x170 mm/kmsan/kmsan.c:317 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:252 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:272 __msan_memcpy+0x56/0x70 mm/kmsan/kmsan_instr.c:129 pskb_expand_head+0x383/0x1b00 net/core/skbuff.c:1637 __skb_cow include/linux/skbuff.h:3120 [inline] skb_cow_head include/linux/skbuff.h:3154 [inline] gre_tap_xmit+0x79c/0xb80 net/ipv4/ip_gre.c:708 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 sch_direct_xmit+0x515/0x18c0 net/sched/sch_generic.c:314 __dev_xmit_skb net/core/dev.c:3621 [inline] __dev_queue_xmit+0x208e/0x4280 net/core/dev.c:3982 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 br_dev_queue_push_xmit+0x803/0x8b0 net/bridge/br_forward.c:52 NF_HOOK include/linux/netfilter.h:307 [inline] br_forward_finish net/bridge/br_forward.c:65 [inline] NF_HOOK include/linux/netfilter.h:307 [inline] __br_forward+0xa60/0xe30 net/bridge/br_forward.c:109 deliver_clone net/bridge/br_forward.c:125 [inline] maybe_deliver net/bridge/br_forward.c:181 [inline] br_flood+0xb4f/0xfe0 net/bridge/br_forward.c:223 br_dev_xmit+0x134f/0x16e0 net/bridge/br_device.c:98 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 neigh_resolve_output+0xab7/0xb50 net/core/neighbour.c:1490 neigh_output include/net/neighbour.h:511 [inline] ip_finish_output2+0x1a9c/0x25d0 net/ipv4/ip_output.c:228 __ip_finish_output+0xaf8/0xda0 net/ipv4/ip_output.c:308 ip_finish_output+0x2db/0x420 net/ipv4/ip_output.c:318 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0x593/0x680 net/ipv4/ip_output.c:432 dst_output include/net/dst.h:436 [inline] ip_local_out+0x164/0x1d0 net/ipv4/ip_output.c:125 iptunnel_xmit+0x870/0xde0 net/ipv4/ip_tunnel_core.c:81 ip_tunnel_xmit+0x2d7c/0x3480 net/ipv4/ip_tunnel.c:818 __gre_xmit net/ipv4/ip_gre.c:448 [inline] ipgre_xmit+0xff3/0x1120 net/ipv4/ip_gre.c:632 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 packet_snd net/packet/af_packet.c:2965 [inline] packet_sendmsg+0x836f/0x92a0 net/packet/af_packet.c:2990 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg net/socket.c:659 [inline] ____sys_sendmsg+0x1362/0x13f0 net/socket.c:2330 ___sys_sendmsg net/socket.c:2384 [inline] __sys_sendmsg+0x4f0/0x5e0 net/socket.c:2417 __do_sys_sendmsg net/socket.c:2426 [inline] __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:149 [inline] kmsan_internal_chain_origin+0xb9/0x170 mm/kmsan/kmsan.c:317 kmsan_memcpy_memmove_metadata+0x25c/0x2e0 mm/kmsan/kmsan.c:252 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:272 __msan_memcpy+0x56/0x70 mm/kmsan/kmsan_instr.c:129 pskb_expand_head+0x383/0x1b00 net/core/skbuff.c:1637 __skb_cow include/linux/skbuff.h:3120 [inline] skb_cow_head include/linux/skbuff.h:3154 [inline] ip_tunnel_xmit+0x2a3b/0x3480 net/ipv4/ip_tunnel.c:811 __gre_xmit net/ipv4/ip_gre.c:448 [inline] ipgre_xmit+0xff3/0x1120 net/ipv4/ip_gre.c:632 __netdev_start_xmit include/linux/netdevice.h:4447 [inline] netdev_start_xmit include/linux/netdevice.h:4461 [inline] xmit_one net/core/dev.c:3420 [inline] dev_hard_start_xmit+0x51a/0xab0 net/core/dev.c:3436 __dev_queue_xmit+0x3837/0x4280 net/core/dev.c:4013 dev_queue_xmit+0x4b/0x60 net/core/dev.c:4046 packet_snd net/packet/af_packet.c:2965 [inline] packet_sendmsg+0x836f/0x92a0 net/packet/af_packet.c:2990 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg net/socket.c:659 [inline] ____sys_sendmsg+0x1362/0x13f0 net/socket.c:2330 ___sys_sendmsg net/socket.c:2384 [inline] __sys_sendmsg+0x4f0/0x5e0 net/socket.c:2417 __do_sys_sendmsg net/socket.c:2426 [inline] __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:149 [inline] kmsan_internal_poison_shadow+0x5c/0x110 mm/kmsan/kmsan.c:132 kmsan_slab_alloc+0x8a/0xe0 mm/kmsan/kmsan_hooks.c:86 slab_alloc_node mm/slub.c:2774 [inline] __kmalloc_node_track_caller+0xe47/0x11f0 mm/slub.c:4382 __kmalloc_reserve net/core/skbuff.c:141 [inline] __alloc_skb+0x309/0xa50 net/core/skbuff.c:209 alloc_skb include/linux/skbuff.h:1049 [inline] alloc_skb_with_frags+0x18c/0xa80 net/core/skbuff.c:5664 sock_alloc_send_pskb+0xae9/0xc70 net/core/sock.c:2242 packet_alloc_skb net/packet/af_packet.c:2813 [inline] packet_snd net/packet/af_packet.c:2908 [inline] packet_sendmsg+0x6562/0x92a0 net/packet/af_packet.c:2990 sock_sendmsg_nosec net/socket.c:639 [inline] sock_sendmsg net/socket.c:659 [inline] ____sys_sendmsg+0x1362/0x13f0 net/socket.c:2330 ___sys_sendmsg net/socket.c:2384 [inline] __sys_sendmsg+0x4f0/0x5e0 net/socket.c:2417 __do_sys_sendmsg net/socket.c:2426 [inline] __se_sys_sendmsg+0x97/0xb0 net/socket.c:2424 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2424 do_syscall_64+0xb6/0x160 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 =====================================================