Re: [uml-devel] [PATCH] UML - Fix locking in skb alloction failure fix

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 11:26:34AM -0700, Andrew Morton wrote: > Doesn't this assume that the arch is only ever uniprocessor, which I > don't think is true on i386 UML?? It is for now, and when that changes, I haven't decided if and when interrupts will be received on multiple CPUs.

Re: [uml-devel] [PATCH] UML - Fix locking in skb alloction failure fix

2007-09-28 Thread Andrew Morton
On Fri, 28 Sep 2007 11:43:14 -0400 Jeff Dike <[EMAIL PROTECTED]> wrote: > Add _irqsave/_irqrestore to the locking in update_drop_skb to keep > uml_net_rx out while the drop skb is being messed with. > > Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> > --- > arch/um/drivers/net_kern.c |5 +++--

Re: [uml-devel] [PATCH] make UML call dentry_open() with a valid vfsmount

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 09:00:14AM -0700, Dave Hansen wrote: > One more thing... have you had any problems getting > arch/um/os-Linux/time.c to compile because of a lack of tv_to_nsec()? That should be fixed in current -mm. Jeff -- Work email - jdike at linux dot

Re: [uml-devel] [PATCH] make UML call dentry_open() with a valid vfsmount

2007-09-28 Thread Dave Hansen
On Fri, 2007-09-28 at 11:03 -0400, Jeff Dike wrote: > On Thu, Sep 27, 2007 at 03:09:23PM -0700, Dave Hansen wrote: > > > > I'm trying to enforce the convention that you may not call > > dentry_open() with a NULL vfsmount. This is so that the > > r/o bind mount patches can consistenty acquire writ

[uml-devel] [PATCH] UML - Fix locking in skb alloction failure fix

2007-09-28 Thread Jeff Dike
Add _irqsave/_irqrestore to the locking in update_drop_skb to keep uml_net_rx out while the drop skb is being messed with. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/net_kern.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) Index: linux-2.6.22/arch/um/drivers

Re: [uml-devel] [PATCH] make UML call dentry_open() with a valid vfsmount

2007-09-28 Thread Jeff Dike
On Thu, Sep 27, 2007 at 03:09:23PM -0700, Dave Hansen wrote: > > I'm trying to enforce the convention that you may not call > dentry_open() with a NULL vfsmount. This is so that the > r/o bind mount patches can consistenty acquire write access > to the mounts there. > > This patch fixes up UML's

Re: [uml-devel] Fwd: How can I write a programm on host to ptrace processes on uml in SKAS mode

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 08:09:06PM +0800, fang zheng wrote: > How can I write a programm on host to ptrace processes on uml in SKAS mode ? skas3 or skas0? Sounds like you're interested in skas3. But why does it have to be done from the host rather than from inside UML? > Is there is some examp

[uml-devel] Fwd: How can I write a programm on host to ptrace processes on uml in SKAS mode

2007-09-28 Thread fang zheng
-- Forwarded message -- From: fang zheng <[EMAIL PROTECTED]> Date: 2007-9-28 下午8:06 Subject: How can I write a programm on host to ptrace processes on uml in SKAS mode To: Jeff Dike <[EMAIL PROTECTED]> How can I write a programm on host to ptrace processes on uml in SKAS mode ? I