Re: I/O port permission bit inheritance between threads

2013-05-23 Thread Gleb Natapov
On Tue, May 21, 2013 at 08:27:09AM -0700, Stephen Hemminger wrote: On Tue, 21 May 2013 13:01:18 +0300 Gleb Natapov g...@redhat.com wrote: On Tue, May 21, 2013 at 11:50:30AM +0200, Joerg Roedel wrote: Hey Stephen, On Mon, May 20, 2013 at 02:24:31PM -0700, Stephen Hemminger wrote:

Re: I/O port permission bit inheritance between threads

2013-05-21 Thread Joerg Roedel
Hey Stephen, On Mon, May 20, 2013 at 02:24:31PM -0700, Stephen Hemminger wrote: ioperm() inheritance across threads is different in KVM then when run on physical hardware. The following program runs on physical hardware but get SEGV under KVM. It appears that the I/O permission bits are

Re: I/O port permission bit inheritance between threads

2013-05-21 Thread Gleb Natapov
On Tue, May 21, 2013 at 11:50:30AM +0200, Joerg Roedel wrote: Hey Stephen, On Mon, May 20, 2013 at 02:24:31PM -0700, Stephen Hemminger wrote: ioperm() inheritance across threads is different in KVM then when run on physical hardware. The following program runs on physical hardware but

Re: I/O port permission bit inheritance between threads

2013-05-21 Thread Stephen Hemminger
On Tue, 21 May 2013 13:01:18 +0300 Gleb Natapov g...@redhat.com wrote: On Tue, May 21, 2013 at 11:50:30AM +0200, Joerg Roedel wrote: Hey Stephen, On Mon, May 20, 2013 at 02:24:31PM -0700, Stephen Hemminger wrote: ioperm() inheritance across threads is different in KVM then when run

I/O port permission bit inheritance between threads

2013-05-20 Thread Stephen Hemminger
ioperm() inheritance across threads is different in KVM then when run on physical hardware. The following program runs on physical hardware but get SEGV under KVM. It appears that the I/O permission bits are not shared between threads in the same way. /* Original Copyright 2011, Kees Cook