From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: Network hangs when communicating with host Date: Tue, 20 Oct 2015 09:58:51 -0400 Message-ID: <5626489B.1020309@oracle.com> References: <56213324.3010901@oracle.com> <5624B639.4030603@arm.com> <5624FC39.2060708@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: syzkaller@googlegroups.com, Sasha Levin , Pekka Enberg , Asias He , penberg@cs.helsinki.fi, Cyrill Gorcunov , Will Deacon , matt@ozlabs.org, Michael Ellerman , Prasad Joshi , marc.zyngier@arm.com, "Aneesh Kumar K.V" , mingo@elte.hu, gorcunov@openvz.org, kvm@vger.kernel.org, Kostya Serebryany , Evgenii Stepanov , Alexey Samsonov , Alexander Potapenko To: Dmitry Vyukov Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:30629 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751257AbbJTN7u (ORCPT ); Tue, 20 Oct 2015 09:59:50 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 10/20/2015 09:42 AM, Dmitry Vyukov wrote: > I now have another issue. My binary fails to mmap a file within lkvm > sandbox. The same binary works fine on host and in qemu. I've added > strace into sandbox script, and here is the output: > > [pid 837] openat(AT_FDCWD, "syzkaller-shm048878722", O_RDWR|O_CLOEXEC) = 5 > [pid 837] mmap(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_SHARED, 5, > 0) = -1 EINVAL (Invalid argument) > > I don't see anything that can potentially cause EINVAL here. Is it > possible that lkvm somehow affects kernel behavior here? > > I run lkvm as: > > $ taskset 1 /kvmtool/lkvm sandbox --disk syz-0 --mem=2048 --cpus=2 > --kernel /arch/x86/boot/bzImage --network mode=user --sandbox > /workdir/kvm/syz-0.sh It's possible that something in the virtio-9p layer is broken. I'll give it a look in the evening. Thanks, Sasha