================================================================== BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2704 [inline] BUG: KMSAN: uninit-value in __kmalloc_node+0xb2d/0x11c0 mm/slub.c:3822 CPU: 0 PID: 4529 Comm: udevd Not tainted 4.19.0-rc1+ #36 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+0x14b/0x190 lib/dump_stack.c:113 kmsan_report+0x183/0x2b0 mm/kmsan/kmsan.c:956 __msan_warning+0x70/0xc0 mm/kmsan/kmsan_instr.c:645 slab_alloc_node mm/slub.c:2704 [inline] __kmalloc_node+0xb2d/0x11c0 mm/slub.c:3822 kmalloc_node include/linux/slab.h:555 [inline] kvmalloc_node+0x19d/0x3e0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] seq_buf_alloc fs/seq_file.c:32 [inline] seq_read+0x4b0/0x1e80 fs/seq_file.c:204 kernfs_fop_read+0x78b/0xa30 fs/kernfs/file.c:252 __vfs_read+0x196/0x9f0 fs/read_write.c:416 vfs_read+0x36f/0x6a0 fs/read_write.c:452 ksys_read fs/read_write.c:578 [inline] __do_sys_read fs/read_write.c:588 [inline] __se_sys_read fs/read_write.c:586 [inline] __x64_sys_read+0x1b7/0x3c0 fs/read_write.c:586 do_syscall_64+0x15b/0x220 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x7f841dee7310 Code: 73 01 c3 48 8b 0d 28 4b 2b 00 31 d2 48 29 c2 64 89 11 48 83 c8 ff eb ea 90 90 83 3d e5 a2 2b 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 6e 8a 01 00 48 89 04 24 RSP: 002b:00007ffd3979d098 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f841dee7310 RDX: 0000000000001000 RSI: 00007ffd3979d540 RDI: 0000000000000005 RBP: 0000000001457744 R08: 0000000001457744 R09: 00007f841df3cc20 R10: 7269762f73656369 R11: 0000000000000246 R12: 000000000143d2d0 R13: 000000000143d3c0 R14: 000000000143d250 R15: 0000000001442e10 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_save_stack mm/kmsan/kmsan.c:271 [inline] kmsan_internal_chain_origin+0x128/0x210 mm/kmsan/kmsan.c:573 kmsan_memcpy_origins+0x13d/0x1b0 mm/kmsan/kmsan.c:397 __msan_memcpy+0xc3/0x130 mm/kmsan/kmsan_instr.c:431 pskb_expand_head+0x3b3/0x19c0 net/core/skbuff.c:1473 __pskb_pull_tail+0x1c7/0x2280 net/core/skbuff.c:1898 __skb_linearize include/linux/skbuff.h:3041 [inline] skb_checksum_help+0x23e/0xb30 net/core/dev.c:2868 skb_csum_hwoffload_help net/core/dev.c:3267 [inline] validate_xmit_skb+0x1185/0x1590 net/core/dev.c:3310 __dev_queue_xmit+0x21ea/0x3ab0 net/core/dev.c:3795 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3836 neigh_hh_output include/net/neighbour.h:473 [inline] neigh_output include/net/neighbour.h:481 [inline] ip_finish_output2+0x130d/0x14f0 net/ipv4/ip_output.c:229 ip_finish_output+0xd43/0xfd0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip_output+0x50f/0x5d0 net/ipv4/ip_output.c:405 dst_output include/net/dst.h:444 [inline] ip_local_out+0x164/0x1d0 net/ipv4/ip_output.c:124 iptunnel_xmit+0x837/0xd50 net/ipv4/ip_tunnel_core.c:91 ip_tunnel_xmit+0x33e1/0x3750 net/ipv4/ip_tunnel.c:778 sit_tunnel_xmit__ net/ipv6/sit.c:1013 [inline] sit_tunnel_xmit+0xd26/0x3690 net/ipv6/sit.c:1026 __netdev_start_xmit include/linux/netdevice.h:4287 [inline] netdev_start_xmit include/linux/netdevice.h:4296 [inline] xmit_one net/core/dev.c:3217 [inline] dev_hard_start_xmit+0x5df/0xc20 net/core/dev.c:3233 __dev_queue_xmit+0x2f35/0x3ab0 net/core/dev.c:3803 dev_queue_xmit+0x4b/0x60 net/core/dev.c:3836 neigh_direct_output+0x42/0x50 net/core/neighbour.c:1404 neigh_output include/net/neighbour.h:483 [inline] ip_finish_output2+0x13b7/0x14f0 net/ipv4/ip_output.c:229 ip_finish_output+0xd43/0xfd0 net/ipv4/ip_output.c:317 NF_HOOK_COND include/linux/netfilter.h:276 [inline] ip_output+0x50f/0x5d0 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_queue_xmit+0x1bde/0x2180 net/ipv4/ip_output.c:505 ip_queue_xmit+0xcc/0xf0 include/net/ip.h:197 __tcp_transmit_skb+0x4101/0x5810 net/ipv4/tcp_output.c:1159 tcp_transmit_skb net/ipv4/tcp_output.c:1175 [inline] __tcp_retransmit_skb+0x13ec/0x3c60 net/ipv4/tcp_output.c:2894 tcp_retransmit_skb+0xa4/0x440 net/ipv4/tcp_output.c:2913 tcp_retransmit_timer+0x22b9/0x4500 net/ipv4/tcp_timer.c:512 tcp_write_timer_handler+0x674/0xea0 net/ipv4/tcp_timer.c:598 tcp_write_timer+0x11e/0x270 net/ipv4/tcp_timer.c:618 call_timer_fn+0x270/0x5b0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xd94/0x11a0 kernel/time/timer.c:1682 run_timer_softirq+0x2e/0x50 kernel/time/timer.c:1695 __do_softirq+0x562/0x948 kernel/softirq.c:292 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+0x98/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:2719 [inline] __kmalloc_node_track_caller+0x9e7/0x1160 mm/slub.c:4352 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2f5/0x9e0 net/core/skbuff.c:206 alloc_skb_fclone include/linux/skbuff.h:1038 [inline] sk_stream_alloc_skb+0x172/0xc90 net/ipv4/tcp.c:874 do_tcp_sendpages+0x157d/0x3820 net/ipv4/tcp.c:977 tcp_sendpage_locked net/ipv4/tcp.c:1080 [inline] tcp_sendpage+0x1e0/0x240 net/ipv4/tcp.c:1090 inet_sendpage+0x4fb/0x8b0 net/ipv4/af_inet.c:815 kernel_sendpage net/socket.c:3321 [inline] sock_sendpage+0x1ef/0x2e0 net/socket.c:846 pipe_to_sendpage+0x31d/0x430 fs/splice.c:452 splice_from_pipe_feed fs/splice.c:503 [inline] __splice_from_pipe+0x49f/0xf30 fs/splice.c:627 splice_from_pipe fs/splice.c:662 [inline] generic_splice_sendpage+0x1c2/0x2a0 fs/splice.c:833 do_splice_from fs/splice.c:852 [inline] direct_splice_actor+0x19e/0x200 fs/splice.c:1019 splice_direct_to_actor+0x746/0xfb0 fs/splice.c:974 do_splice_direct+0x332/0x540 fs/splice.c:1062 do_sendfile+0x1070/0x1d80 fs/read_write.c:1440 __do_sys_sendfile64 fs/read_write.c:1495 [inline] __se_sys_sendfile64+0x1c2/0x380 fs/read_write.c:1487 __x64_sys_sendfile64+0x11e/0x170 fs/read_write.c:1487 do_syscall_64+0x15b/0x220 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================