================================================================== BUG: KMSAN: uninit-value in __skb_checksum_complete+0x3d9/0x4e0 net/core/datagram.c:756 CPU: 0 PID: 13576 Comm: syz-executor1 Not tainted 4.19.0+ #77 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+0x32d/0x480 lib/dump_stack.c:113 kmsan_report+0x1a2/0x2e0 mm/kmsan/kmsan.c:911 __msan_warning+0x74/0xd0 mm/kmsan/kmsan_instr.c:415 __skb_checksum_complete+0x3d9/0x4e0 net/core/datagram.c:756 nf_ip_checksum+0x3a6/0x770 net/netfilter/utils.c:35 nf_nat_icmp_reply_translation+0x29a/0xa80 net/ipv4/netfilter/nf_nat_l3proto_ipv4.c:197 nf_nat_ipv4_fn net/ipv4/netfilter/nf_nat_l3proto_ipv4.c:257 [inline] nf_nat_ipv4_local_fn+0x239/0x8b0 net/ipv4/netfilter/nf_nat_l3proto_ipv4.c:325 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0x15c/0x3d0 net/netfilter/core.c:511 nf_hook include/linux/netfilter.h:244 [inline] __ip_local_out+0x6dc/0x800 net/ipv4/ip_output.c:113 ip_local_out net/ipv4/ip_output.c:122 [inline] ip_send_skb net/ipv4/ip_output.c:1441 [inline] ip_push_pending_frames+0x16f/0x470 net/ipv4/ip_output.c:1461 icmp_push_reply+0x77d/0x840 net/ipv4/icmp.c:394 icmp_send+0x3360/0x35c0 net/ipv4/icmp.c:736 ipv4_link_failure+0x5e/0x220 net/ipv4/route.c:1189 dst_link_failure include/net/dst.h:427 [inline] arp_error_report+0x106/0x1a0 net/ipv4/arp.c:297 neigh_invalidate+0x368/0x900 net/core/neighbour.c:894 neigh_timer_handler+0xc9e/0x1290 net/core/neighbour.c:980 call_timer_fn+0x356/0x7c0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xe95/0x1300 kernel/time/timer.c:1682 run_timer_softirq+0x55/0xa0 kernel/time/timer.c:1695 __do_softirq+0x721/0xc5d kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x305/0x340 kernel/softirq.c:414 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:536 smp_apic_timer_interrupt+0x64/0x90 arch/x86/kernel/apic/apic.c:1059 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:869 RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:39 [inline] RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:80 [inline] RIP: 0010:__msan_unpoison_alloca+0x7f/0xc0 mm/kmsan/kmsan_instr.c:399 Code: 83 7c 09 00 00 83 f8 02 7d 3c 4c 89 ff 4c 89 f6 e8 e6 c6 ff ff ff 8b 7c 09 00 00 75 30 e8 99 c5 35 ff 4c 89 65 c8 ff 75 c8 9d <65> 48 8b 04 25 28 00 00 00 48 3b 45 d8 75 24 48 83 c4 18 5b 41 5c RSP: 0018:ffff88010f6cfc98 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: ffff88010829fd10 RBX: ffff880131e83c00 RCX: 0000000000000003 RDX: 0000000000000002 RSI: 0000000000000008 RDI: ffff88010f6cfd10 RBP: ffff88010f6cfcd0 R08: ffff880000000000 R09: ffff88010ea2fd10 R10: ffffffff8ae013f8 R11: ffffffff84420400 R12: 0000000000000246 R13: 0000000000000000 R14: 0000000000000008 R15: ffff88010f6cfd10 __schedule+0x56/0xa60 kernel/sched/core.c:3390 binder: 13583:13584 unknown command 1529276986 schedule+0x1db/0x320 kernel/sched/core.c:3523 binder: 13583:13584 ioctl c0306201 200013c0 returned -22 exit_to_usermode_loop arch/x86/entry/common.c:152 [inline] prepare_exit_to_usermode+0x222/0x4d0 arch/x86/entry/common.c:197 syscall_return_slowpath+0x123/0x8c0 arch/x86/entry/common.c:268 do_syscall_64+0xf5/0x110 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457569 Code: fd b3 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f9938f26c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: 0000000000000007 RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9938f276d4 R13: 00000000004c47a0 R14: 00000000004d7b10 R15: 00000000ffffffff Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:252 [inline] kmsan_save_stack mm/kmsan/kmsan.c:267 [inline] kmsan_internal_chain_origin+0x136/0x240 mm/kmsan/kmsan.c:569 binder: 13583:13585 unknown command 1529276986 kmsan_memcpy_origins+0x13d/0x1b0 mm/kmsan/kmsan.c:393 __msan_memcpy+0x6f/0x80 mm/kmsan/kmsan_instr.c:242 csum_partial_copy+0x69/0x4d0 lib/checksum.c:178 skb_copy_and_csum_bits+0x214/0x1110 net/core/skbuff.c:2581 icmp_glue_bits+0x167/0x360 net/ipv4/icmp.c:357 __ip_append_data+0x3b48/0x4470 net/ipv4/ip_output.c:1029 ip_append_data+0x30c/0x450 net/ipv4/ip_output.c:1196 icmp_push_reply+0x261/0x840 net/ipv4/icmp.c:375 icmp_send+0x3360/0x35c0 net/ipv4/icmp.c:736 ipv4_link_failure+0x5e/0x220 net/ipv4/route.c:1189 dst_link_failure include/net/dst.h:427 [inline] arp_error_report+0x106/0x1a0 net/ipv4/arp.c:297 neigh_invalidate+0x368/0x900 net/core/neighbour.c:894 binder: 13583:13585 ioctl c0306201 200013c0 returned -22 neigh_timer_handler+0xc9e/0x1290 net/core/neighbour.c:980 call_timer_fn+0x356/0x7c0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xe95/0x1300 kernel/time/timer.c:1682 run_timer_softirq+0x55/0xa0 kernel/time/timer.c:1695 __do_softirq+0x721/0xc5d kernel/softirq.c:292 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:252 [inline] kmsan_save_stack mm/kmsan/kmsan.c:267 [inline] kmsan_internal_chain_origin+0x136/0x240 mm/kmsan/kmsan.c:569 kmsan_memcpy_origins+0x13d/0x1b0 mm/kmsan/kmsan.c:393 __msan_memcpy+0x6f/0x80 mm/kmsan/kmsan_instr.c:242 pskb_expand_head+0x43b/0x1d20 net/core/skbuff.c:1470 __skb_cow include/linux/skbuff.h:2911 [inline] skb_cow_head include/linux/skbuff.h:2945 [inline] ip_tunnel_xmit+0x35cb/0x3db0 net/ipv4/ip_tunnel.c:780 __gre_xmit net/ipv4/ip_gre.c:454 [inline] erspan_xmit+0x1bce/0x35d0 net/ipv4/ip_gre.c:752 __netdev_start_xmit include/linux/netdevice.h:4297 [inline] netdev_start_xmit include/linux/netdevice.h:4306 [inline] xmit_one net/core/dev.c:3238 [inline] dev_hard_start_xmit+0x6dc/0xe00 net/core/dev.c:3254 sch_direct_xmit+0x59b/0x890 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:390 [inline] __qdisc_run+0x1bac/0x3600 net/sched/sch_generic.c:398 qdisc_run include/net/pkt_sched.h:120 [inline] __dev_xmit_skb net/core/dev.c:3433 [inline] __dev_queue_xmit+0x2131/0x3e00 net/core/dev.c:3792 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3857 neigh_resolve_output+0xab8/0xb60 net/core/neighbour.c:1366 neigh_output include/net/neighbour.h:483 [inline] ip_finish_output2+0x141a/0x1560 net/ipv4/ip_output.c:229 ip_finish_output+0xd93/0x10f0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip_mc_output+0xf25/0x10f0 net/ipv4/ip_output.c:390 dst_output include/net/dst.h:444 [inline] NF_HOOK include/linux/netfilter.h:289 [inline] raw_send_hdrinc net/ipv4/raw.c:433 [inline] raw_sendmsg+0x403b/0x43d0 net/ipv4/raw.c:664 inet_sendmsg+0x4e9/0x800 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] __sys_sendto+0x97b/0xb80 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto+0x107/0x130 net/socket.c:1796 __x64_sys_sendto+0x6e/0x90 net/socket.c:1796 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:252 [inline] kmsan_internal_poison_shadow+0xc8/0x1e0 mm/kmsan/kmsan.c:177 kmsan_kmalloc+0x98/0x110 mm/kmsan/kmsan_hooks.c:104 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:113 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2727 [inline] __kmalloc_node_track_caller+0xf62/0x14e0 mm/slub.c:4360 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x42b/0xeb0 net/core/skbuff.c:206 alloc_skb include/linux/skbuff.h:996 [inline] alloc_skb_with_frags+0x1c9/0xa80 net/core/skbuff.c:5276 sock_alloc_send_pskb+0xeb3/0x14c0 net/core/sock.c:2082 sock_alloc_send_skb+0xca/0xe0 net/core/sock.c:2099 raw_send_hdrinc net/ipv4/raw.c:375 [inline] raw_sendmsg+0x234b/0x43d0 net/ipv4/raw.c:664 inet_sendmsg+0x4e9/0x800 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg net/socket.c:631 [inline] __sys_sendto+0x97b/0xb80 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto+0x107/0x130 net/socket.c:1796 __x64_sys_sendto+0x6e/0x90 net/socket.c:1796 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================