netlink: 24 bytes leftover after parsing attributes in process `syz-executor.4'. ================================================================== BUG: KMSAN: uninit-value in __skb_checksum_complete+0x37f/0x550 net/core/skbuff.c:2683 CPU: 0 PID: 10526 Comm: syz-executor.0 Not tainted 5.1.0-rc4+ #1 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+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x131/0x2a0 mm/kmsan/kmsan.c:619 __msan_warning+0x7a/0xf0 mm/kmsan/kmsan_instr.c:310 __skb_checksum_complete+0x37f/0x550 net/core/skbuff.c:2683 nf_ip_checksum+0x56b/0x710 net/netfilter/utils.c:35 nf_nat_icmp_reply_translation+0x287/0x9a0 net/netfilter/nf_nat_proto.c:570 nf_nat_ipv4_fn net/netfilter/nf_nat_proto.c:629 [inline] nf_nat_ipv4_local_fn+0x215/0x840 net/netfilter/nf_nat_proto.c:700 nf_hook_entry_hookfn include/linux/netfilter.h:119 [inline] nf_hook_slow+0x176/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:1465 [inline] ip_push_pending_frames+0x16f/0x460 net/ipv4/ip_output.c:1485 icmp_push_reply+0x719/0x7e0 net/ipv4/icmp.c:394 __icmp_send+0x2ec5/0x3110 net/ipv4/icmp.c:737 icmp_send include/net/icmp.h:47 [inline] ipv4_link_failure+0x6d/0x230 net/ipv4/route.c:1190 dst_link_failure include/net/dst.h:427 [inline] arp_error_report+0x106/0x1a0 net/ipv4/arp.c:297 neigh_invalidate+0x359/0x8e0 net/core/neighbour.c:995 neigh_timer_handler+0xdb4/0x1490 net/core/neighbour.c:1081 call_timer_fn+0x285/0x600 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1362 [inline] __run_timers+0xdb4/0x11d0 kernel/time/timer.c:1681 run_timer_softirq+0x2e/0x50 kernel/time/timer.c:1694 __do_softirq+0x53f/0x93a kernel/softirq.c:294 invoke_softirq kernel/softirq.c:376 [inline] irq_exit+0x241/0x290 kernel/softirq.c:417 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:536 smp_apic_timer_interrupt+0x48/0x70 arch/x86/kernel/apic/apic.c:1064 apic_timer_interrupt+0x2e/0x40 arch/x86/entry/entry_64.S:814 RIP: 0010:finish_lock_switch+0x2b/0x40 kernel/sched/core.c:2630 Code: 48 89 e5 53 48 89 fb e8 43 ff 98 00 8b b8 88 0c 00 00 48 8b 00 48 85 c0 75 12 48 89 df e8 cd f3 98 00 c6 00 00 c6 03 00 fb 5b <5d> c3 e8 2e fe 98 00 eb e7 66 90 66 2e 0f 1f 84 00 00 00 00 00 55 RSP: 0018:ffff88805586fc80 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff13 RAX: ffff88821fef1d40 RBX: ffff888125c0bc00 RCX: ffff888000000000 RDX: ffff88821fe2ed40 RSI: 0000160000000000 RDI: 0000000000000d40 RBP: ffff88805586fc80 R08: ffff8881afcb7d40 R09: ffff88805586fb01 R10: ffffd0ffffffffff R11: 0000100000000000 R12: 0000000000000001 R13: ffff888104942790 R14: ffff888104941e00 R15: ffff88812fcb7d40 finish_task_switch+0xfc/0x2d0 kernel/sched/core.c:2731 context_switch kernel/sched/core.c:2884 [inline] __schedule+0x6c6/0x7f0 kernel/sched/core.c:3524 schedule+0x15b/0x240 kernel/sched/core.c:3568 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x2ba/0x980 kernel/time/hrtimer.c:1679 hrtimer_nanosleep kernel/time/hrtimer.c:1733 [inline] __do_sys_nanosleep kernel/time/hrtimer.c:1767 [inline] __se_sys_nanosleep+0x746/0x960 kernel/time/hrtimer.c:1754 __x64_sys_nanosleep+0x3e/0x60 kernel/time/hrtimer.c:1754 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x4863f0 Code: 00 00 48 c7 c0 d4 ff ff ff 64 c7 00 16 00 00 00 31 c0 eb be 66 0f 1f 44 00 00 83 3d 61 03 5d 00 00 75 14 b8 23 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 b4 e0 f8 ff c3 48 83 ec 08 e8 ea 53 fd ff RSP: 002b:0000000000a4fd58 EFLAGS: 00000246 ORIG_RAX: 0000000000000023 RAX: ffffffffffffffda RBX: 000000000027dcde RCX: 00000000004863f0 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000a4fd60 RBP: 0000000000002bbe R08: 0000000000000001 R09: 0000000001689940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 0000000000a4fdb0 R14: 000000000027dbba R15: 0000000000a4fdc0 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_save_stack mm/kmsan/kmsan.c:220 [inline] kmsan_internal_chain_origin+0x134/0x230 mm/kmsan/kmsan.c:426 kmsan_memcpy_memmove_metadata+0x989/0xd60 mm/kmsan/kmsan.c:304 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:324 __msan_memcpy+0x58/0x70 mm/kmsan/kmsan_instr.c:139 csum_partial_copy+0xbd/0x520 lib/checksum.c:178 skb_copy_and_csum_bits+0x214/0x10a0 net/core/skbuff.c:2570 icmp_glue_bits+0x16b/0x380 net/ipv4/icmp.c:357 __ip_append_data+0x3f20/0x5000 net/ipv4/ip_output.c:1040 ip_append_data+0x324/0x480 net/ipv4/ip_output.c:1220 icmp_push_reply+0x23d/0x7e0 net/ipv4/icmp.c:375 __icmp_send+0x2ec5/0x3110 net/ipv4/icmp.c:737 icmp_send include/net/icmp.h:47 [inline] ipv4_link_failure+0x6d/0x230 net/ipv4/route.c:1190 dst_link_failure include/net/dst.h:427 [inline] arp_error_report+0x106/0x1a0 net/ipv4/arp.c:297 neigh_invalidate+0x359/0x8e0 net/core/neighbour.c:995 neigh_timer_handler+0xdb4/0x1490 net/core/neighbour.c:1081 call_timer_fn+0x285/0x600 kernel/time/timer.c:1325 expire_timers kernel/time/timer.c:1362 [inline] __run_timers+0xdb4/0x11d0 kernel/time/timer.c:1681 run_timer_softirq+0x2e/0x50 kernel/time/timer.c:1694 __do_softirq+0x53f/0x93a kernel/softirq.c:294 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_save_stack mm/kmsan/kmsan.c:220 [inline] kmsan_internal_chain_origin+0x134/0x230 mm/kmsan/kmsan.c:426 kmsan_memcpy_memmove_metadata+0x989/0xd60 mm/kmsan/kmsan.c:304 kmsan_memcpy_metadata+0xb/0x10 mm/kmsan/kmsan.c:324 __msan_memcpy+0x58/0x70 mm/kmsan/kmsan_instr.c:139 pskb_expand_head+0x3aa/0x1a30 net/core/skbuff.c:1478 __skb_cow include/linux/skbuff.h:3029 [inline] skb_cow_head include/linux/skbuff.h:3063 [inline] ip_tunnel_xmit+0x2c4e/0x3310 net/ipv4/ip_tunnel.c:824 __gre_xmit net/ipv4/ip_gre.c:444 [inline] erspan_xmit+0x1f5e/0x3640 net/ipv4/ip_gre.c:679 __netdev_start_xmit include/linux/netdevice.h:4411 [inline] netdev_start_xmit include/linux/netdevice.h:4420 [inline] xmit_one net/core/dev.c:3278 [inline] dev_hard_start_xmit+0x604/0xc40 net/core/dev.c:3294 sch_direct_xmit+0x58a/0x880 net/sched/sch_generic.c:327 qdisc_restart net/sched/sch_generic.c:390 [inline] __qdisc_run+0x1cd7/0x34b0 net/sched/sch_generic.c:398 qdisc_run include/net/pkt_sched.h:121 [inline] __dev_xmit_skb net/core/dev.c:3473 [inline] __dev_queue_xmit+0x1e51/0x3ce0 net/core/dev.c:3832 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3897 neigh_resolve_output+0xab7/0xb40 net/core/neighbour.c:1487 neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0x1709/0x1930 net/ipv4/ip_output.c:229 ip_finish_output+0xd2b/0xfd0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:278 [inline] ip_output+0x53f/0x610 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:124 [inline] ip_send_skb+0x179/0x360 net/ipv4/ip_output.c:1465 udp_send_skb+0xf25/0x18b0 net/ipv4/udp.c:901 udp_sendmsg+0x3ae5/0x4130 net/ipv4/udp.c:1188 udpv6_sendmsg+0x13c1/0x4500 net/ipv6/udp.c:1289 inet_sendmsg+0x54a/0x720 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:661 [inline] ___sys_sendmsg+0xdb3/0x1220 net/socket.c:2260 __sys_sendmsg net/socket.c:2298 [inline] __do_sys_sendmsg net/socket.c:2307 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2305 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2305 do_syscall_64+0xbc/0xf0 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:205 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159 kmsan_kmalloc+0xa9/0x130 mm/kmsan/kmsan_hooks.c:174 kmsan_slab_alloc+0xe/0x10 mm/kmsan/kmsan_hooks.c:183 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2771 [inline] __kmalloc_node_track_caller+0xead/0x1000 mm/slub.c:4399 __kmalloc_reserve net/core/skbuff.c:140 [inline] __alloc_skb+0x309/0xa20 net/core/skbuff.c:208 alloc_skb include/linux/skbuff.h:1059 [inline] alloc_skb_with_frags+0x186/0xa60 net/core/skbuff.c:5287 sock_alloc_send_pskb+0xafd/0x10a0 net/core/sock.c:2220 sock_alloc_send_skb+0xca/0xe0 net/core/sock.c:2237 __ip_append_data+0x34cd/0x5000 net/ipv4/ip_output.c:998 ip_make_skb+0x392/0x890 net/ipv4/ip_output.c:1531 udp_sendmsg+0x3720/0x4130 net/ipv4/udp.c:1183 udpv6_sendmsg+0x13c1/0x4500 net/ipv6/udp.c:1289 inet_sendmsg+0x54a/0x720 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg net/socket.c:661 [inline] ___sys_sendmsg+0xdb3/0x1220 net/socket.c:2260 __sys_sendmsg net/socket.c:2298 [inline] __do_sys_sendmsg net/socket.c:2307 [inline] __se_sys_sendmsg+0x305/0x460 net/socket.c:2305 __x64_sys_sendmsg+0x4a/0x70 net/socket.c:2305 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================