================================================================== BUG: KMSAN: uninit-value in __skb_checksum_complete+0x3d9/0x4e0 net/core/datagram.c:756 CPU: 0 PID: 6689 Comm: syz-executor3 Not tainted 4.19.0+ #78 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+0x19f/0x300 mm/kmsan/kmsan.c:911 __msan_warning+0x76/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:finish_lock_switch+0x2b/0x40 kernel/sched/core.c:2578 Code: 48 89 e5 53 48 89 fb e8 13 7c 9c 00 8b b8 88 0c 00 00 48 8b 00 48 85 c0 75 12 48 89 df e8 cd 70 9c 00 c6 00 00 c6 03 00 fb 5b <5d> c3 e8 1e 7b 9c 00 eb e7 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 RSP: 0018:ffff88017128f6f0 EFLAGS: 00000296 ORIG_RAX: ffffffffffffff13 RAX: ffff8801dc9bcc00 RBX: ffff88017de49e00 RCX: ffff8801dc9bcc00 RDX: ffff8801dc9bdc00 RSI: 0000160000000000 RDI: aaaaaaaaaaaab000 RBP: ffff88017128f6f0 R08: ffff880000000000 R09: 0000000000000002 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88017de4bc00 R13: ffff88021fcba590 R14: ffff88017de4c588 R15: ffff88021fcb9c00 finish_task_switch+0x17e/0x410 kernel/sched/core.c:2679 context_switch kernel/sched/core.c:2832 [inline] __schedule+0x8a8/0xa60 kernel/sched/core.c:3479 preempt_schedule_common kernel/sched/core.c:3603 [inline] _cond_resched+0x7e/0x120 kernel/sched/core.c:4971 copy_pte_range mm/memory.c:1115 [inline] copy_pmd_range mm/memory.c:1154 [inline] copy_pud_range mm/memory.c:1188 [inline] copy_p4d_range mm/memory.c:1210 [inline] copy_page_range+0x340d/0x3e40 mm/memory.c:1272 dup_mmap kernel/fork.c:544 [inline] dup_mm kernel/fork.c:1275 [inline] copy_mm kernel/fork.c:1330 [inline] copy_process+0x7319/0xc3e0 kernel/fork.c:1870 _do_fork+0x3e3/0x1370 kernel/fork.c:2167 __do_sys_clone kernel/fork.c:2274 [inline] __se_sys_clone+0xf6/0x110 kernel/fork.c:2268 __x64_sys_clone+0x62/0x80 kernel/fork.c:2268 do_syscall_64+0xcf/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x455b1a Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d 91 d0 02 00 00 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 f5 00 00 00 85 c0 41 89 c5 0f 85 fc 00 00 RSP: 002b:0000000000a3fd50 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000a3fd50 RCX: 0000000000455b1a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000a3fd90 R08: 0000000000000001 R09: 0000000001f3a940 R10: 0000000001f3ac10 R11: 0000000000000246 R12: 0000000000000001 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000003 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 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 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_hh_output include/net/neighbour.h:473 [inline] neigh_output include/net/neighbour.h:481 [inline] ip_finish_output2+0x136d/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 ==================================================================