qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implement


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 7/7 v5] VMXNET3 paravirtualized device implementation Interface type "vmxnet3" added.
Date: Mon, 16 Apr 2012 15:34:48 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 04/16/2012 03:14 PM, Paolo Bonzini wrote:
The bits I'm more interested about is edge case testing (things that
could pose a security concern).  Since WHQL interfaces at the expected
paths for the driver, it's unlikely that it can test any of this.

It does include fuzz tests.

But VMXNET3 isn't really special here.  From this point forward, I
would expect all new devices to come with a qtest-based test case.

I find this to be hard to justify.

With a grand total of 1 device tested, and with a coverage of almost
zero even for that device, I think it's only sane to consider qtest
a proof of concept.

How else are we going to get there other than asking people to use it?

I agree.  But I'm saying it's too early even for that.

For a 10 line test that enumerates the PCI device given the command line 
argument?

Here's the thing, I just looked through the code and spotted what I think is a buffer overflow. It's hard to tell purely from code inspection. With just a basic qtest harness, it makes it possible to attempt to test whether or not you can overflow.

Look, it's pretty darn simple to add a basic test for vmxnet3 to qtest
that initializes the device.  I don't see what the big deal is asking for
that.

For that, qemu-test is enough.  Just boot into a Linux system that has
the driver.

I'm basically looking for


It doesn't need to start as an exhaustive test but I think there's
tremendous value in at least having something to start with.  Otherwise,
we'll continue to exist in the same chicken and the egg state.

Yes, that's a risk.  I guess you were aware of that though.

I've long planned to contact again my academic friends, ask for a
bachelor student or two and have them work on QEMU.  qtest would be
perfect for that (libos and a decent block layer mock would be two
nice projects).  However, mentoring can be time consuming, and right
now I'm not really able to set aside time for that.

Paolo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]