[uml-devel] [PATCH 4/6] UML - __user annotation in arch_prctl

2006-06-05 Thread Jeff Dike
From: Al Viro <[EMAIL PROTECTED]> fix uml/amd64 prctl() put_user() there should go to (long __user *)addr, not &addr Signed-off-by: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17-mm/arch/um/sys-x86_64/syscalls.c ==

Re: [uml-devel] [PATCH] uml: fix signal code x86-64 [for 2.6.15]

2006-06-05 Thread Blaisorblade
On Sunday 04 June 2006 21:06, Andi Kleen wrote: > > It isn't yet perfect, because we don't yet save floating point context. > > But that will come later. Additionally, there's a potential problem since > > RED zones will alternate stacks are used, unlike x86_64, so more stack > > space (128 bytes m

[uml-devel] [PATCH 0/6] UML - small fixes and cleanups for 2.6.17

2006-06-05 Thread Jeff Dike
The following patches are small changes which either fix important bugs or which have no functional effect. The first one, which adds include/asm-um/irqflags.h should go to mainline when (or if) the lock validator does. Jeff _

[uml-devel] [PATCH 2/6] UML - Fix wall_to_monotonic initialization

2006-06-05 Thread Jeff Dike
Initialize wall_to_monotonic correctly. This fixes a problem where sleeps lasted about one secone less than they should. This also called for a bit of code restructuring, following a patch which Blaisorblade had been keeping. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17-mm/ar

[uml-devel] [PATCH 6/6] UML - add -ffreestanding to CFLAGS

2006-06-05 Thread Jeff Dike
This fixes the undefined reference to strcpy seen when building modules on i386. Tracked down by Al Viro. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.16/arch/um/Makefile-i386 === --- linux-2.6.16.orig/arch/um/Makef

Re: [uml-devel] [PATCH 2/8] UML - Define jmpbuf access constants

2006-06-05 Thread Blaisorblade
On Wednesday 08 February 2006 17:43, Jeff Dike wrote: > On Tue, Feb 07, 2006 at 11:23:42AM -0800, Ulrich Drepper wrote: > > If you need this > > functionality, implement it yourself. setjmp is most likely overkill > > anyway. > > OK, I'll roll my own version. What about #ifdef'ing out the offendi

[uml-devel] [PATCH 5/6] UML - more __user annotations

2006-06-05 Thread Jeff Dike
Fram: Al Viro <[EMAIL PROTECTED]> uml __user annotations Signed-off-by: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17-mm/arch/um/sys-i386/syscalls.c === --- linux-2.6.17-mm.orig/arc

Re: [uml-devel] [PATCH] uml: fix signal code x86-64 [for 2.6.15]

2006-06-05 Thread Andi Kleen
> It isn't yet perfect, because we don't yet save floating point context. But > that will come later. Additionally, there's a potential problem since RED > zones will alternate stacks are used, unlike x86_64, so more stack space > (128 bytes more) is used. But this shouldn't be a problem. > Instea

[uml-devel] [PATCH] uml: fix signal code x86-64 [for 2.6.15]

2006-06-05 Thread Paolo 'Blaisorblade' Giarrusso
From: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> The problems in this area came to light while fixing a compile failure with GCC 4, in commit bcb01b8a67476e6f748086e626df8424cc27036d. I went comparing this code with x86_64 frame construction (which we should ABI compatible with) and resync

Re: [uml-devel] [PATCH 2/8] UML - Define jmpbuf access constants

2006-06-05 Thread Jeff Dike
On Sun, Jun 04, 2006 at 08:19:59PM +0200, Blaisorblade wrote: > What about #ifdef'ing out the offending code #ifndef one of these constants > (they'll be defined or not altogether). As expectable, this wasn't yet > implemented - let's give the right priority to things. > (I've just met this on my

[uml-devel] [PATCH 1/6] UML - Add asm/irqflags.h

2006-06-05 Thread Jeff Dike
Add an empty asm/irqflags.h, which seems to satisfy the lock validator enough that UML builds. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17-mm/include/asm-um/irqflags.h === --- /dev/null 1970-01-01 00:00:00.

Re: [uml-devel] non-scalar ktime addition and subtraction broken

2006-06-05 Thread Blaisorblade
On Friday 02 June 2006 23:34, Jeff Dike wrote: > On Fri, Jun 02, 2006 at 08:28:37PM +0200, Blaisorblade wrote: > > Ok, since I now I'll never finish it: > > $ ll old-patch-scripts/patches/uml-fix-timers.patch > > -rw-r--r-- 1 paolo paolo 6763 2005-07-24 06:41 > > old-patch-scripts/patches/uml-fix-t

Re: [uml-devel] [PATCH] uml: fix signal code x86-64 [for 2.6.15]

2006-06-05 Thread Andi Kleen
On Monday 05 June 2006 13:06, Blaisorblade wrote: > On Sunday 04 June 2006 21:06, Andi Kleen wrote: > > > It isn't yet perfect, because we don't yet save floating point context. > > > But that will come later. Additionally, there's a potential problem since > > > RED zones will alternate stacks are

[uml-devel] UML book review on Slashdot

2006-06-05 Thread William Stearns
Good afternoon, all, Ravi Kumar just posted a review of Jeff's UML book on Slashdot: http://books.slashdot.org/article.pl?sid=06/06/05/169212 In inimitable Slashdot fashion, the comments currently are a discussion of whether UML should stand for User-Mode Linux or Unified Modeli

[uml-devel] [PATCH 3/6] UML - Fix a typo in do_uml_initcalls

2006-06-05 Thread Jeff Dike
We had a spurious semicolon somehow. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.17-mm/arch/um/os-Linux/main.c === --- linux-2.6.17-mm.orig/arch/um/os-Linux/main.c2006-05-01 14:37:32.0 -0400 +++ lin