audit: type=1404 audit(1528796991.143:2): selinux=0 auid=4294967295 ses=4294967295 uname (2159) used greatest stack depth: 56040 bytes left EXT4-fs (sda1): re-mounted. Opts: (null) logsave (3749) used greatest stack depth: 55440 bytes left random: dd: uninitialized urandom read (512 bytes read) BUG: KMSAN: uninit-value in receive_mergeable drivers/net/virtio_net.c:817 [inline] BUG: KMSAN: uninit-value in receive_buf+0x324e/0x6ae0 drivers/net/virtio_net.c:917 CPU: 0 PID: 4182 Comm: net.agent Not tainted 4.17.0+ #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+0x185/0x1d0 lib/dump_stack.c:113 kmsan_report+0x188/0x2a0 mm/kmsan/kmsan.c:1117 __msan_warning_32+0x70/0xc0 mm/kmsan/kmsan_instr.c:620 receive_mergeable drivers/net/virtio_net.c:817 [inline] receive_buf+0x324e/0x6ae0 drivers/net/virtio_net.c:917 virtnet_receive drivers/net/virtio_net.c:1200 [inline] virtnet_poll+0xac2/0x1540 drivers/net/virtio_net.c:1286 napi_poll net/core/dev.c:5735 [inline] net_rx_action+0x766/0x1a80 net/core/dev.c:5801 __do_softirq+0x592/0x979 kernel/softirq.c:285 invoke_softirq kernel/softirq.c:365 [inline] irq_exit+0x202/0x240 kernel/softirq.c:405 exiting_irq+0xe/0x10 arch/x86/include/asm/apic.h:525 do_IRQ+0x17d/0x1c0 arch/x86/kernel/irq.c:264 common_interrupt+0xf/0xf arch/x86/entry/entry_64.S:642 RIP: 0010:msan_get_shadow_origin_ptr+0x55/0x230 mm/kmsan/kmsan_instr.c:244 RSP: 0018:ffff8801b7cbfac8 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd8 RAX: ffff8801d5028000 RBX: ffffffff8b58a000 RCX: ffff880000000000 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff880198dd2068 RBP: ffff8801b7cbfaf8 R08: ffffffff81aeeec0 R09: ffff8801989760f0 __msan_metadata_ptr_for_load_4+0x10/0x20 mm/kmsan/kmsan_instr.c:320 dup_mmap kernel/fork.c:510 [inline] dup_mm kernel/fork.c:1235 [inline] copy_mm kernel/fork.c:1289 [inline] copy_process+0x6cb4/0x9be0 kernel/fork.c:1795 _do_fork+0x353/0xf60 kernel/fork.c:2089 __do_sys_clone kernel/fork.c:2196 [inline] __se_sys_clone kernel/fork.c:2190 [inline] __x64_sys_clone+0x15e/0x1b0 kernel/fork.c:2190 RSP: 002b:00007ffd0bacae90 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffd0bacae90 RCX: 00007f62ffc5af46 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffd0bacaed0 R08: 0000000000001056 R09: 0000000000001056 R10: 00007f63001519d0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 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:685 __msan_chain_origin+0x69/0xc0 mm/kmsan/kmsan_instr.c:464 receive_mergeable drivers/net/virtio_net.c:690 [inline] receive_buf+0x2dbb/0x6ae0 drivers/net/virtio_net.c:917 virtnet_receive drivers/net/virtio_net.c:1200 [inline] virtnet_poll+0xac2/0x1540 drivers/net/virtio_net.c:1286 napi_poll net/core/dev.c:5735 [inline] net_rx_action+0x766/0x1a80 net/core/dev.c:5801 __do_softirq+0x592/0x979 kernel/softirq.c:285 Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:279 [inline] kmsan_alloc_meta_for_pages+0x161/0x3a0 mm/kmsan/kmsan.c:815 kmsan_alloc_page+0x82/0xe0 mm/kmsan/kmsan.c:885 __alloc_pages_nodemask+0xf7b/0x5cc0 mm/page_alloc.c:4402 alloc_pages_current+0x6b1/0x970 mm/mempolicy.c:2093 alloc_pages include/linux/gfp.h:494 [inline] skb_page_frag_refill+0x3ba/0x5e0 net/core/sock.c:2211 add_recvbuf_mergeable drivers/net/virtio_net.c:1067 [inline] try_fill_recv+0x3d5/0x2580 drivers/net/virtio_net.c:1108 virtnet_open+0x188/0x600 drivers/net/virtio_net.c:1311 __dev_open+0x613/0x840 net/core/dev.c:1392 __dev_change_flags+0x401/0xb60 net/core/dev.c:6955 dev_change_flags+0xca/0x230 net/core/dev.c:7024 do_setlink+0x165b/0x6010 net/core/rtnetlink.c:2362 rtnl_newlink+0x2b33/0x37a0 net/core/rtnetlink.c:2970 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+0x44/0xa9 ==================================================================