Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-21 Thread Fam Zheng
On Fri, 10/21 10:54, Stefan Hajnoczi wrote: > On Fri, Oct 21, 2016 at 08:11:47AM +0800, Fam Zheng wrote: > > On Thu, 10/20 10:21, Andy Grover wrote: > > > On 10/20/2016 07:30 AM, Fam Zheng wrote: > > > > On Thu, 10/20 15:08, Stefan Hajnoczi wrote: > > > > > If a corrupt image is able to execute arb

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-21 Thread Stefan Hajnoczi
On Fri, Oct 21, 2016 at 08:11:47AM +0800, Fam Zheng wrote: > On Thu, 10/20 10:21, Andy Grover wrote: > > On 10/20/2016 07:30 AM, Fam Zheng wrote: > > > On Thu, 10/20 15:08, Stefan Hajnoczi wrote: > > > > If a corrupt image is able to execute arbitrary code in the qemu-tcmu > > > > process, does /de

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-20 Thread Fam Zheng
On Thu, 10/20 10:21, Andy Grover wrote: > On 10/20/2016 07:30 AM, Fam Zheng wrote: > > On Thu, 10/20 15:08, Stefan Hajnoczi wrote: > > > If a corrupt image is able to execute arbitrary code in the qemu-tcmu > > > process, does /dev/uio0 or the tcmu shared memory interface allow get > > > root or ke

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-20 Thread Fam Zheng
On Thu, 10/20 15:55, Huamin Chen wrote: > Hi Fam > > Can you push your code to github? I am spoiled with git :) Pushed: https://github.com/famz/qemu qemu-tcmu Fam > > Thanks > > Huamin

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-20 Thread Andy Grover
On 10/20/2016 07:30 AM, Fam Zheng wrote: On Thu, 10/20 15:08, Stefan Hajnoczi wrote: If a corrupt image is able to execute arbitrary code in the qemu-tcmu process, does /dev/uio0 or the tcmu shared memory interface allow get root or kernel privileges? I haven't audited the code, but target_cor

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-20 Thread Fam Zheng
On Thu, 10/20 15:08, Stefan Hajnoczi wrote: > On Wed, Oct 19, 2016 at 06:08:28PM +0800, Fam Zheng wrote: > > libtcmu is a Linux library for userspace programs to handle TCMU > > protocol, which is a SCSI transport between the target_core_user.ko and > > a userspace backend implementation. The forme

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-20 Thread Stefan Hajnoczi
On Wed, Oct 19, 2016 at 06:08:28PM +0800, Fam Zheng wrote: > libtcmu is a Linux library for userspace programs to handle TCMU > protocol, which is a SCSI transport between the target_core_user.ko and > a userspace backend implementation. The former can be seen as a kernel > SCSI Low-Level-Driver th

Re: [Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-19 Thread no-reply
Hi, Your series failed automatic build test. Please find the testing commands and their output below. If you have docker installed, you can probably reproduce it locally. Type: series Message-id: 1476871708-25096-1-git-send-email-f...@redhat.com Subject: [Qemu-devel] [PATCH RFC] tcmu: Introduce

[Qemu-devel] [PATCH RFC] tcmu: Introduce qemu-tcmu

2016-10-19 Thread Fam Zheng
libtcmu is a Linux library for userspace programs to handle TCMU protocol, which is a SCSI transport between the target_core_user.ko and a userspace backend implementation. The former can be seen as a kernel SCSI Low-Level-Driver that forwards scsi requests to userspace via a UIO ring buffer. By li