================================================================== BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2705 [inline] BUG: KMSAN: uninit-value in slab_alloc mm/slub.c:2728 [inline] BUG: KMSAN: uninit-value in __kmalloc_track_caller+0x55b/0xce0 mm/slub.c:4323 CPU: 0 PID: 8761 Comm: syz-executor6 Not tainted 4.18.0-rc5+ #28 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/0x1e0 lib/dump_stack.c:113 kmsan_report+0x195/0x2c0 mm/kmsan/kmsan.c:982 __msan_warning+0x7d/0xe0 mm/kmsan/kmsan_instr.c:645 slab_alloc_node mm/slub.c:2705 [inline] slab_alloc mm/slub.c:2728 [inline] __kmalloc_track_caller+0x55b/0xce0 mm/slub.c:4323 kmemdup+0x95/0x140 mm/util.c:118 sctp_process_init+0x365c/0x3f30 net/sctp/sm_make_chunk.c:2434 sctp_cmd_process_init net/sctp/sm_sideeffect.c:682 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1410 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1220 [inline] sctp_do_sm+0x48f3/0x9fe0 net/sctp/sm_sideeffect.c:1191 sctp_assoc_bh_rcv+0x66d/0xdd0 net/sctp/associola.c:1052 sctp_inq_push+0x314/0x460 net/sctp/inqueue.c:95 sctp_backlog_rcv+0x228/0xb40 net/sctp/input.c:350 sk_backlog_rcv include/net/sock.h:914 [inline] __release_sock+0x2ec/0x6b0 net/core/sock.c:2342 release_sock+0x99/0x2a0 net/core/sock.c:2851 sctp_wait_for_connect+0x3d1/0x830 net/sctp/socket.c:8436 sctp_sendmsg_to_asoc+0x2851/0x2890 net/sctp/socket.c:1978 sctp_sendmsg+0x3f3e/0x6500 net/sctp/socket.c:2124 inet_sendmsg+0x3fc/0x760 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:641 [inline] sock_sendmsg net/socket.c:651 [inline] __sys_sendto+0x798/0x8e0 net/socket.c:1797 __do_sys_sendto net/socket.c:1809 [inline] __se_sys_sendto net/socket.c:1805 [inline] __x64_sys_sendto+0x1a1/0x210 net/socket.c:1805 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x455ab9 Code: 1d ba 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 eb b9 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb751a20c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007fb751a216d4 RCX: 0000000000455ab9 RDX: 0000000000000001 RSI: 0000000020e33fe0 RDI: 0000000000000015 RBP: 000000000072bea0 R08: 000000002005ffe4 R09: 000000000000001c R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004c1164 R14: 00000000004d1860 R15: 0000000000000000 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+0x13c/0x240 mm/kmsan/kmsan.c:573 kmsan_memcpy_origins+0x13d/0x1b0 mm/kmsan/kmsan.c:397 __msan_memcpy+0xe7/0x150 mm/kmsan/kmsan_instr.c:432 pskb_expand_head+0x3a6/0x1a70 net/core/skbuff.c:1471 skb_unclone include/linux/skbuff.h:1443 [inline] tcp_trim_head+0x180/0x920 net/ipv4/tcp_output.c:1412 tcp_tso_acked net/ipv4/tcp_input.c:3010 [inline] tcp_clean_rtx_queue net/ipv4/tcp_input.c:3079 [inline] tcp_ack+0x32f3/0x9ad0 net/ipv4/tcp_input.c:3666 tcp_rcv_established+0x1e3d/0x2b50 net/ipv4/tcp_input.c:5484 tcp_v4_do_rcv+0x646/0xcf0 net/ipv4/tcp_ipv4.c:1518 tcp_v4_rcv+0x6bc0/0x7220 net/ipv4/tcp_ipv4.c:1810 ip_local_deliver_finish+0x851/0xf00 net/ipv4/ip_input.c:215 NF_HOOK include/linux/netfilter.h:287 [inline] ip_local_deliver+0x455/0x510 net/ipv4/ip_input.c:256 dst_input include/net/dst.h:450 [inline] ip_rcv_finish+0xa1b/0x1d10 net/ipv4/ip_input.c:396 NF_HOOK include/linux/netfilter.h:287 [inline] ip_rcv+0x12d4/0x14f0 net/ipv4/ip_input.c:492 __netif_receive_skb_core+0x4a7a/0x4fc0 net/core/dev.c:4628 __netif_receive_skb net/core/dev.c:4693 [inline] netif_receive_skb_internal+0x475/0x660 net/core/dev.c:4767 napi_skb_finish net/core/dev.c:5129 [inline] napi_gro_receive+0x6be/0xb90 net/core/dev.c:5160 receive_buf+0x4fb4/0x7900 drivers/net/virtio_net.c:996 virtnet_receive drivers/net/virtio_net.c:1252 [inline] virtnet_poll+0x903/0x1490 drivers/net/virtio_net.c:1334 napi_poll net/core/dev.c:5771 [inline] net_rx_action+0x799/0x1ae0 net/core/dev.c:5837 __do_softirq+0x55f/0x934 kernel/softirq.c:288 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:256 [inline] kmsan_internal_poison_shadow+0xc8/0x1d0 mm/kmsan/kmsan.c:181 kmsan_kmalloc+0xa1/0x120 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:2720 [inline] __kmalloc_node_track_caller+0xb48/0x11d0 mm/slub.c:4353 __kmalloc_reserve net/core/skbuff.c:138 [inline] __alloc_skb+0x2cb/0x9e0 net/core/skbuff.c:206 alloc_skb_fclone include/linux/skbuff.h:1030 [inline] sk_stream_alloc_skb+0x17c/0xcf0 net/ipv4/tcp.c:875 tcp_sendmsg_locked+0x23ca/0x6790 net/ipv4/tcp.c:1290 tcp_sendmsg+0xb2/0x100 net/ipv4/tcp.c:1447 inet_sendmsg+0x3fc/0x760 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:641 [inline] sock_sendmsg net/socket.c:651 [inline] sock_write_iter+0x408/0x4d0 net/socket.c:920 call_write_iter include/linux/fs.h:1793 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x87e/0xb90 fs/read_write.c:487 vfs_write+0x467/0x8c0 fs/read_write.c:549 ksys_write fs/read_write.c:598 [inline] __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x1cf/0x400 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x63/0xe7 ==================================================================