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

2008-08-01 Thread Mattia Dongili
On Mon, Jul 21, 2008 at 09:54:26PM +0900, Mattia Dongili wrote: > On Sun, Jul 20, 2008 at 11:44:20AM -0400, Jeff Dike wrote: > > 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 boot

Re: [uml-devel] [stable] [PATCH 1/14] uml: fix build when SLOB is enabled

2008-08-01 Thread Jeff Dike
On Fri, Aug 01, 2008 at 04:06:24PM -0700, Greg KH wrote: > On Fri, Aug 01, 2008 at 06:41:25PM -0400, Jeff Dike wrote: > > >From 94409ded7768e15b0d0a5a172d611073c72308de Mon Sep 17 00:00:00 2001 > > These git commit ids don't match up to anything in Linus's tree at all > :( Hmmm, OK I'll figure ou

Re: [uml-devel] [stable] [PATCH 1/14] uml: fix build when SLOB is enabled

2008-08-01 Thread Greg KH
On Fri, Aug 01, 2008 at 06:41:25PM -0400, Jeff Dike wrote: > >From 94409ded7768e15b0d0a5a172d611073c72308de Mon Sep 17 00:00:00 2001 These git commit ids don't match up to anything in Linus's tree at all :( Can you resend these patches with the git ids of the patches already in Linus's tree so th

[uml-devel] [PATCH 12/14] [UML] fix gcc ICEs and unresolved externs

2008-08-01 Thread Jeff Dike
>From f9498bcc86dbf5249a4d9baff6ba508c3d4c86fa Mon Sep 17 00:00:00 2001 There are various constraints on the use of unit-at-a-time: - i386 uses no-unit-at-a-time for pre-4.0 (not 4.3) - x86_64 uses unit-at-a-time always Uli reported a crash on x86_64 with gcc 4.1.2 with unit-at-a-time, resultin

[uml-devel] [PATCH 14/14] uml: PATH_MAX needs limits.h

2008-08-01 Thread Jeff Dike
>From 5e544831a3dfb9c0eefd091f578c740496819cec Mon Sep 17 00:00:00 2001 From: Ingo Molnar <[EMAIL PROTECTED]> Include limits.h to get a definition of PATH_MAX. Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTE

[uml-devel] [PATCH 6/14] uml: deal with host time going backwards

2008-08-01 Thread Jeff Dike
>From b547462b600e9d284f9d40ed558ca2b8904af185 Mon Sep 17 00:00:00 2001 Protection against the host's time going backwards (eg, ntp activity on the host) by keeping track of the time at the last tick and if it's greater than the current time, keep time stopped until the host catches up. Cc: Nix <

[uml-devel] [PATCH 5/14] missed kmalloc() in pcap_user.c

2008-08-01 Thread Jeff Dike
>From 058ad32dc7765cde3717d3aaf5415724e5738128 Mon Sep 17 00:00:00 2001 From: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Al Viro <[EMAIL PROTECTED]> Acked-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/drivers/pcap_user.c |2 +- 1 files changed

[uml-devel] [PATCH 8/14] missing export of csum_partial() on uml/amd64

2008-08-01 Thread Jeff Dike
>From 7282ca1a67ef596819e8cf5725b0caa95c5692f1 Mon Sep 17 00:00:00 2001 From: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Al Viro <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/sys-x86_64/ksyms.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --

[uml-devel] [PATCH 4/14] uml: track and make up lost ticks

2008-08-01 Thread Jeff Dike
>From a113552a171e5a30a8a478f7d4dcf8d0ff08f12f Mon Sep 17 00:00:00 2001 Alarm delivery could be noticably late in the !CONFIG_NOHZ case because lost ticks weren't being taken into account. This is now treated more carefully, with the time between ticks being calculated and the appropriate number

[uml-devel] [PATCH 13/14] UML - Fix boot crash

2008-08-01 Thread Jeff Dike
>From 7ca5503f5ee32fb3cd6aa6eca21a8edfe09a7717 Mon Sep 17 00:00:00 2001 My copying of linux/init.h didn't go far enough. The definition of __used singled out gcc minor version 3, but didn't care what the major version was. This broke when unit-at-a-time was added and gcc started throwing out ini

[uml-devel] [PATCH 0/14] UML - 2.6.25.x

2008-08-01 Thread Jeff Dike
These are my -stable patches for 2.6.25.14. Note that one patch, patch 13 "Fix boot crash", was sent in for 2.6.26-stable and described then as being not for 2.6.25-stable. The patch which fixes various build problems, patch 12 "fix gcc ICEs and unresolved externs", is here, thus requiring #13.

[uml-devel] [PATCH 3/14] uml: physical memory shouldn't include initial stack

2008-08-01 Thread Jeff Dike
>From 57c582f7eb25314e650f143c2c5141a0cc4172eb Mon Sep 17 00:00:00 2001 The top of physical memory should be below the initial process stack, not the top of the address space, at least for as long as the stack isn't known to the kernel VM system and appropriately reserved. Cc: "Christopher S. Ake

[uml-devel] [PATCH 1/14] uml: fix build when SLOB is enabled

2008-08-01 Thread Jeff Dike
>From 94409ded7768e15b0d0a5a172d611073c72308de Mon Sep 17 00:00:00 2001 Reintroduce uml_kmalloc for the benefit of UML libc code. The previous tactic of declaring __kmalloc so it could be called directly from the libc side of the house turned out to be getting too intimate with slab, and it doesn

[uml-devel] [PATCH 10/14] uml: stub needs to tolerate SIGWINCH

2008-08-01 Thread Jeff Dike
>From b4783df9f0fefe1af0b828748b8abe39ada65652 Mon Sep 17 00:00:00 2001 We lost the marking of SIGWINCH as being OK to receive during stub execution, causing a panic should that happen. Cc: Benedict Verheyen <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Mo

[uml-devel] [PATCH 11/14] uml: work around broken host PTRACE_SYSEMU

2008-08-01 Thread Jeff Dike
>From 81b956c3fec06a5091b9e8909724a8afc7fff1bc Mon Sep 17 00:00:00 2001 Fedora broke PTRACE_SYSEMU again, and UML crashes as a result when it doesn't need to. This patch makes the PTRACE_SYSEMU check fail gracefully and makes UML fall back to PTRACE_SYSCALL. Signed-off-by: Jeff Dike <[EMAIL PROT

[uml-devel] [PATCH 9/14] uml: memcpy export needs to follow host declaration

2008-08-01 Thread Jeff Dike
>From efc14bf16e1e0d95173875615da633722cc8e467 Mon Sep 17 00:00:00 2001 x86_64 defines either memcpy or __memcpy depending on the gcc version, and it looks like UML needs to follow that in its exporting. Cc: Gabriel C <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by:

[uml-devel] [PATCH 7/14] uml: deal with inaccessible address space start

2008-08-01 Thread Jeff Dike
>From b66c2383ac68f28dc4a463045dac03e3aaea3e40 Mon Sep 17 00:00:00 2001 From: Tom Spink <[EMAIL PROTECTED]> This patch makes os_get_task_size locate the bottom of the address space, as well as the top. This is for systems which put a lower limit on mmap addresses. It works by manually scanning p

[uml-devel] [PATCH 2/14] uml: fix bad NTP interaction with clock

2008-08-01 Thread Jeff Dike
>From 2b95eda726d565d4abe3cac045022d3141a11b23 Mon Sep 17 00:00:00 2001 UML's supposed nanosecond clock interacts badly with NTP when NTP decides that the clock has drifted ahead and needs to be slowed down. Slowing down the clock is done by decrementing the cycle-to-nanosecond multiplier, which i