audit: type=1404 audit(1528823980.271:2): selinux=0 auid=4294967295 ses=4294967295 ls (2192) used greatest stack depth: 56680 bytes left EXT4-fs (sda1): re-mounted. Opts: (null) logsave (3771) used greatest stack depth: 55424 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: 2656 Comm: net.agent Not tainted 4.17.0+ #3 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 __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 do_IRQ+0x17d/0x1c0 arch/x86/kernel/irq.c:264 RSP: 0018:ffff8801976af960 EFLAGS: 00000246 ORIG_RAX: ffffffffffffffd9 RAX: 0000000000000246 RBX: ffff880196eb7740 RCX: 0000000000000011 RDX: 0000000000000010 RSI: ffffea00098984e8 RDI: ffff880196eb7740 RBP: ffff8801976af9a0 R08: 00000000010000c0 R09: 0000000000000003 R10: 0000000000000002 R11: ffffffff83ac4e30 R12: ffff88021f00d980 R13: ffff880197809d40 R14: 0000000000000040 R15: 00000000014000c0 kmem_cache_alloc+0xa97/0xb70 mm/slub.c:2772 anon_vma_chain_alloc mm/rmap.c:128 [inline] anon_vma_fork+0x347/0xb20 mm/rmap.c:343 dup_mmap kernel/fork.c:467 [inline] dup_mm kernel/fork.c:1235 [inline] copy_mm kernel/fork.c:1289 [inline] copy_process+0x65df/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 do_syscall_64+0x15b/0x230 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f0d0ca4ef46 RSP: 002b:00007ffcd7837030 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 00007ffcd7837030 RCX: 00007f0d0ca4ef46 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 00007ffcd7837070 R08: 0000000000000a60 R09: 0000000000000a60 R10: 00007f0d0cf459d0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000415c42 R15: 0000000000000101 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 ==================================================================