raw_sendmsg: syz-executor6 forgot to set AF_INET. Fix it! ================================================================== BUG: KMSAN: uninit-value in __mkroute_output net/ipv4/route.c:2200 [inline] BUG: KMSAN: uninit-value in ip_route_output_key_hash_rcu+0x3986/0x40c0 net/ipv4/route.c:2493 CPU: 1 PID: 6622 Comm: syz-executor6 Not tainted 4.16.0+ #87 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x185/0x1d0 lib/dump_stack.c:53 kmsan_report+0x142/0x240 mm/kmsan/kmsan.c:1067 __msan_warning_32+0x6c/0xb0 mm/kmsan/kmsan_instr.c:683 __mkroute_output net/ipv4/route.c:2200 [inline] ip_route_output_key_hash_rcu+0x3986/0x40c0 net/ipv4/route.c:2493 ip_route_output_key_hash+0x1ec/0x290 net/ipv4/route.c:2322 __ip_route_output_key include/net/route.h:126 [inline] icmp_route_lookup net/ipv4/icmp.c:515 [inline] icmp_send+0x2099/0x2db0 net/ipv4/icmp.c:719 ip_options_compile+0x237c/0x29f0 net/ipv4/ip_options.c:472 ip_rcv_options net/ipv4/ip_input.c:284 [inline] ip_rcv_finish+0x12f4/0x1d00 net/ipv4/ip_input.c:365 NF_HOOK include/linux/netfilter.h:288 [inline] ip_rcv+0x118f/0x16d0 net/ipv4/ip_input.c:493 __netif_receive_skb_core+0x47df/0x4a90 net/core/dev.c:4562 __netif_receive_skb net/core/dev.c:4627 [inline] process_backlog+0x62d/0xe20 net/core/dev.c:5307 napi_poll net/core/dev.c:5705 [inline] net_rx_action+0x7c1/0x1a70 net/core/dev.c:5771 __do_softirq+0x56d/0x93d kernel/softirq.c:285 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1040 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x114/0x140 kernel/softirq.c:182 local_bh_enable+0x36/0x40 include/linux/bottom_half.h:32 rcu_read_unlock_bh include/linux/rcupdate.h:726 [inline] ip_finish_output2+0x135a/0x1470 net/ipv4/ip_output.c:231 ip_finish_output+0xcb2/0xff0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:277 [inline] ip_output+0x505/0x5d0 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:443 [inline] ip_local_out net/ipv4/ip_output.c:124 [inline] ip_send_skb net/ipv4/ip_output.c:1414 [inline] ip_push_pending_frames+0x22b/0x420 net/ipv4/ip_output.c:1434 raw_sendmsg+0x2a59/0x41f0 net/ipv4/raw.c:684 inet_sendmsg+0x48d/0x740 net/ipv4/af_inet.c:764 sock_sendmsg_nosec net/socket.c:630 [inline] sock_sendmsg net/socket.c:640 [inline] ___sys_sendmsg+0xec0/0x1310 net/socket.c:2046 __sys_sendmsg net/socket.c:2080 [inline] SYSC_sendmsg+0x2a3/0x3d0 net/socket.c:2091 SyS_sendmsg+0x54/0x80 net/socket.c:2087 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x455979 RSP: 002b:00007fa60a153c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fa60a1546d4 RCX: 0000000000455979 RDX: 0000000000000000 RSI: 00000000200004c0 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000537 R14: 00000000006fbdc8 R15: 0000000000000000 Local variable description: ----res@ip_route_output_key_hash Variable was created at: ip_route_output_key_hash+0x6e/0x290 net/ipv4/route.c:2307 __ip_route_output_key include/net/route.h:126 [inline] icmp_route_lookup net/ipv4/icmp.c:515 [inline] icmp_send+0x2099/0x2db0 net/ipv4/icmp.c:719 ==================================================================