[uml-devel] [PATCH 19/22] um: Introducing asm/syscalls.h

2008-07-20 Thread Jaswinder Singh
Declaring arch-dependent syscalls for um architecture Signed-off-by: Jaswinder Singh <[EMAIL PROTECTED]> --- arch/um/kernel/exec.c |1 + arch/um/kernel/signal.c |3 +-- arch/um/kernel/syscall.c |1 + include/asm-um/syscalls.h | 32 4 files cha

Re: [uml-devel] 2.6.25 uml kernel crashes when it calls down() on a semaphore with zero counter

2008-07-20 Thread Jeff Dike
On Mon, Jul 21, 2008 at 12:20:22AM +0900, Mattia Dongili wrote: > it's not entirely clear to me why, but that patch fixes a segfault that > I experience when booting uml 2.6.25 built with gcc-4.3 on a 2.6.25 > host (I also applied your ICE workaround patch). Hmmm, get a stack trace from it and let

Re: [uml-devel] 2.6.25 uml kernel crashes when it calls down() on a semaphore with zero counter

2008-07-20 Thread Mattia Dongili
On Fri, Jul 18, 2008 at 04:53:42PM -0400, Jeff Dike wrote: > On Thu, Jul 17, 2008 at 12:55:09PM +0800, Jiaying Zhang wrote: > > The patch below solves the 2.6.25 uml crash problem for me. Looks like the > > problem should be away in 2.6.26 kernel because down_interruptible has > > changed to the C

[uml-devel] [PATCH] missed kmalloc() in vde_user.c

2008-07-20 Thread Luca Bigliardi
Hi, I'm attaching a patch for 2.6.26. missed kmalloc() in vde_user.c Signed-off-by: Luca Bigliardi <[EMAIL PROTECTED]> luca -- Beware of programmers who carry screwdrivers. -- Leonard Brandwein http://www.artha.org/ - http://www.yue.it/ diff --git a/arch/um/drivers

Re: [uml-devel] Kernel panic - not syncing: do_syscall_stub : PTRACE_SETREGS failed, errno = 5

2008-07-20 Thread Jeff Dike
On Sun, Jul 20, 2008 at 05:15:16PM +0800, Peter Teoh wrote: > And ptrace_setregs() calling ptrace() seemed to returned -errno almost > immediately: > > (gdb) s > ptrace_setregs (pid=19131, regs=0x820aae0) at > /mnt/hd0/download/linux-2.6-latest/arch/um/sys-i386/ptrace_user.c:18 > 18 i

Re: [uml-devel] Kernel panic - not syncing: do_syscall_stub : PTRACE_SETREGS failed, errno = 5

2008-07-20 Thread Peter Teoh
The problem lies in the function: static inline long do_syscall_stub(struct mm_id * mm_idp, void **addr) { int n, i; long ret, offset; unsigned long * data; unsigned long * syscall; int err, pid = mm_idp->u.pid; if (proc_mm) /* FIXME