Re: [Qemu-devel] [PATCH] hw/9pfs: Fix segfault with 9p2000.u

2013-05-19 Thread Michael Tokarev
20.05.2013 10:10, Stefan Hajnoczi wrote: > On Mon, May 20, 2013 at 8:05 AM, Aneesh Kumar K.V > wrote: >> From: "Aneesh Kumar K.V" >> >> When guest tries to chmod a block or char device file over 9pfs, >> the qemu process segfaults. With 9p2000.u protocol we use wstat to >> change mode bits and cl

Re: [Qemu-devel] [PATCH] hw/9pfs: Fix segfault with 9p2000.u

2013-05-19 Thread Stefan Hajnoczi
On Mon, May 20, 2013 at 8:05 AM, Aneesh Kumar K.V wrote: > From: "Aneesh Kumar K.V" > > When guest tries to chmod a block or char device file over 9pfs, > the qemu process segfaults. With 9p2000.u protocol we use wstat to > change mode bits and client don't send extension information for > chmod.

[Qemu-devel] [PATCH] hw/9pfs: Fix segfault with 9p2000.u

2013-05-19 Thread Aneesh Kumar K.V
From: "Aneesh Kumar K.V" When guest tries to chmod a block or char device file over 9pfs, the qemu process segfaults. With 9p2000.u protocol we use wstat to change mode bits and client don't send extension information for chmod. We need to check for size field to check whether extension info is p