================================================================== BUG: KMSAN: uninit-value in slab_alloc_node mm/slub.c:2738 [inline] BUG: KMSAN: uninit-value in __kmalloc_node_track_caller+0x832/0x11b0 mm/slub.c:4395 CPU: 0 PID: 10040 Comm: syz-executor019 Not tainted 4.17.0+ #8 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:1122 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 slab_alloc_node mm/slub.c:2738 [inline] __kmalloc_node_track_caller+0x832/0x11b0 mm/slub.c:4395 __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+0x237e/0x6610 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:629 [inline] sock_sendmsg net/socket.c:639 [inline] sock_write_iter+0x3bc/0x470 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x808/0x9f0 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+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x442919 RSP: 002b:00000000007dfe18 EFLAGS: 00000217 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000442919 RDX: 0000000000000624 RSI: 0000000020000040 RDI: 0000000000000003 RBP: 00000000000001ce R08: 0000000000000010 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000217 R12: 0000000000000000 R13: 0000000000012307 R14: 0000000000000000 R15: 0000000000000000 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_save_stack mm/kmsan/kmsan.c:294 [inline] kmsan_internal_chain_origin+0x12b/0x210 mm/kmsan/kmsan.c:686 kmsan_memcpy_origins+0x11d/0x170 mm/kmsan/kmsan.c:527 __msan_memcpy+0x109/0x160 mm/kmsan/kmsan_instr.c:413 pskb_expand_head+0x3a6/0x1a70 net/core/skbuff.c:1470 skb_unclone include/linux/skbuff.h:1441 [inline] tcp_fragment+0x330/0x20e0 net/ipv4/tcp_output.c:1312 tcp_send_loss_probe+0xa73/0xf10 net/ipv4/tcp_output.c:2508 tcp_write_timer_handler+0x726/0xef0 net/ipv4/tcp_timer.c:569 tcp_write_timer+0x12b/0x280 net/ipv4/tcp_timer.c:593 call_timer_fn+0x280/0x5d0 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0xd96/0x11b0 kernel/time/timer.c:1666 run_timer_softirq+0x43/0x70 kernel/time/timer.c:1692 __do_softirq+0x592/0x979 kernel/softirq.c:285 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_internal_poison_shadow+0xb8/0x1b0 mm/kmsan/kmsan.c:189 kmsan_kmalloc+0x94/0x100 mm/kmsan/kmsan.c:315 kmsan_slab_alloc+0x10/0x20 mm/kmsan/kmsan.c:322 slab_post_alloc_hook mm/slab.h:446 [inline] slab_alloc_node mm/slub.c:2753 [inline] __kmalloc_node_track_caller+0xb35/0x11b0 mm/slub.c:4395 __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+0x237e/0x6610 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:629 [inline] sock_sendmsg net/socket.c:639 [inline] sock_write_iter+0x3bc/0x470 net/socket.c:908 call_write_iter include/linux/fs.h:1784 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x808/0x9f0 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+0x1bf/0x3e0 fs/read_write.c:607 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 ==================================================================