================================================================== BUG: KMSAN: uninit-value in pskb_may_pull include/linux/skbuff.h:2112 [inline] BUG: KMSAN: uninit-value in ipv6_gso_pull_exthdrs net/ipv6/ip6_offload.c:47 [inline] BUG: KMSAN: uninit-value in ipv6_gso_segment+0xa72/0x1d90 net/ipv6/ip6_offload.c:87 CPU: 1 PID: 15686 Comm: syz-executor0 Not tainted 4.17.0+ #22 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+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:990 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:640 pskb_may_pull include/linux/skbuff.h:2112 [inline] ipv6_gso_pull_exthdrs net/ipv6/ip6_offload.c:47 [inline] ipv6_gso_segment+0xa72/0x1d90 net/ipv6/ip6_offload.c:87 skb_mac_gso_segment+0x420/0x7b0 net/core/dev.c:2793 nsh_gso_segment+0x658/0x1340 net/nsh/nsh.c:111 skb_mac_gso_segment+0x420/0x7b0 net/core/dev.c:2793 __skb_gso_segment+0x757/0xa40 net/core/dev.c:2866 skb_gso_segment include/linux/netdevice.h:4038 [inline] validate_xmit_skb+0xc30/0x1320 net/core/dev.c:3119 __dev_queue_xmit+0x2370/0x3540 net/core/dev.c:3576 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3617 packet_snd net/packet/af_packet.c:2953 [inline] packet_sendmsg+0x818b/0x8cc0 net/packet/af_packet.c:2978 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg net/socket.c:639 [inline] __sys_sendto+0x6c4/0x7e0 net/socket.c:1789 __do_sys_sendto net/socket.c:1801 [inline] __se_sys_sendto net/socket.c:1797 [inline] __x64_sys_sendto+0x1a1/0x210 net/socket.c:1797 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x455e29 RSP: 002b:00007f4d0102fc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f4d010306d4 RCX: 0000000000455e29 RDX: 0000000000000012 RSI: 0000000020000000 RDI: 0000000000000013 RBP: 000000000072bea0 R08: 00000000200000c0 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c14fe R14: 00000000004d1a20 R15: 0000000000000000 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan_hooks.c:91 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan_hooks.c:100 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2753 [inline] slab_alloc mm/slub.c:2761 [inline] __kmalloc_track_caller+0x953/0xc80 mm/slub.c:4365 kmemdup+0x95/0x140 mm/util.c:118 __devinet_sysctl_register+0xd8/0x750 net/ipv4/devinet.c:2297 devinet_sysctl_register+0x2f2/0x3a0 net/ipv4/devinet.c:2349 inetdev_init+0x546/0xa60 net/ipv4/devinet.c:263 inetdev_event+0xf14/0x1db0 net/ipv4/devinet.c:1456 notifier_call_chain kernel/notifier.c:93 [inline] __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x13e/0x240 kernel/notifier.c:401 call_netdevice_notifiers_info net/core/dev.c:1734 [inline] call_netdevice_notifiers net/core/dev.c:1752 [inline] register_netdevice+0x2178/0x2720 net/core/dev.c:7990 veth_newlink+0x1186/0x1480 drivers/net/veth.c:443 rtnl_newlink+0x2721/0x37a0 net/core/rtnetlink.c:3034 rtnetlink_rcv_msg+0xa44/0x1570 net/core/rtnetlink.c:4646 netlink_rcv_skb+0x37e/0x600 net/netlink/af_netlink.c:2448 rtnetlink_rcv+0x50/0x60 net/core/rtnetlink.c:4664 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x1680/0x1750 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x104f/0x1350 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:629 [inline] sock_sendmsg net/socket.c:639 [inline] ___sys_sendmsg+0xec8/0x1320 net/socket.c:2117 __sys_sendmsg net/socket.c:2155 [inline] __do_sys_sendmsg net/socket.c:2164 [inline] __se_sys_sendmsg net/socket.c:2162 [inline] __x64_sys_sendmsg+0x331/0x460 net/socket.c:2162 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================