Re: [uml-devel] Using SKAS, any examples?

2005-05-06 Thread Jeff Dike
On Thu, May 05, 2005 at 06:03:53PM +0100, Ian Rogers wrote: > I've attached the test/example I'm working on to create and manipulate > address spaces uses skas - as I want to allow an emulator to. There are > a few missing functions (that can be pretty much cloned from mem_user.c) > and I've not

Re: [uml-devel] Kernel panic with 2.6.11.6

2005-05-06 Thread Jeff Dike
On Wed, May 04, 2005 at 08:06:22AM -0700, Anthony Brock wrote: > Okay, I've now recompiled the host kernel to include debugging information. I > now get the following: > > myserver:~# > Program received signal SIGSEGV, Segmentation fault. > chan_interrupt (chans=0x4013a3cc, task=0x4013a3fc, tty=

[uml-devel] [PATCH 5/12] UML - S390 preparation, save an extra register

2005-05-06 Thread Jeff Dike
From: Bodo Stroesser <[EMAIL PROTECTED]> s390 tt-mode needs to save not only syscall number, but an further register also. Signed-off-by: Bodo Stroesser <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.12-rc3-mm/arch/um/kernel/tt/syscall_user.c ==

[uml-devel] [PATCH 2/12] UML - Remove include/asm-um/elf.h

2005-05-06 Thread Jeff Dike
I accidentally included include/asm-um/elf.h as a real file in a previous patch. This patch eliminates it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.12-rc3-mm/include/asm-um/elf.h === --- linux-2.6.12-rc3-mm.orig

[uml-devel] [PATCH 11/12] UML - Fix process exit race

2005-05-06 Thread Jeff Dike
From: Bodo Stroesser <[EMAIL PROTECTED]> tt-mode closes switch_pipes in exit_thread_tt and kills processes in switch_to_tt, if the exit_state is EXIT_DEAD or EXIT_ZOMBIE. In very rare cases the exiting process can be scheduled out after having set exit_state and closed switch_pipes (from release_

[uml-devel] [PATCH 9/12] UML - Use CONFIG variable for address space size

2005-05-06 Thread Jeff Dike
From: Bodo Stroesser <[EMAIL PROTECTED]> tt/mem.c still uses hardcoded TOP for i386 instead of CONFIG_TOP_ADDR provided by subarch's Kconfig_, which would be right. Signed-off-by: Bodo Stroesser <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.11/arch/um/kern

[uml-devel] [PATCH 7/12] UML - Turn literal numbers into symbolic constants

2005-05-06 Thread Jeff Dike
So, there I was, looking at my own code, wondering what the magic setjmp return values did. This patch turns the constants that are used to make requests of the initial thread into meaningful symbols. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.11/arch/um/kernel/skas/process.c

[uml-devel] [PATCH 3/12] UML - command line handling cleanup

2005-05-06 Thread Jeff Dike
Command line handling cleanups - a couple of things made static and an unused declaration removed from header. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.12-rc3-mm/arch/um/include/user_util.h === --- linux-2.6.12-

[uml-devel] [PATCH 12/12] UML - x86_64 fixes

2005-05-06 Thread Jeff Dike
This fixes some x86_64 bugs - maybe_map returns -1 on error instead of 0, which is interpretted as physical address 0 removed an include of ipc.h, which isn't needed fixed the calculation of signal frame location the signal delivery code is now immune to the stack expansion check

[uml-devel] [PATCH 10/12] UML - S390 preparation, arch_align_stack

2005-05-06 Thread Jeff Dike
From: Bodo Stroesser <[EMAIL PROTECTED]> Only x86 and x86_64 use arch_align_stack(), all other subarches have: #define arch_align_stack(x) (x) So, if this definition is found, UML's own arch_align_stack() should be skipped. Signed-off-by: Bodo Stroesser <[EMAIL PROTECTED]> Index: linux-2.6.11-mm

[uml-devel] [PATCH 8/12] UML - Makefile cleanup

2005-05-06 Thread Jeff Dike
This eliminates some stuff from arch/um/kernel/Makefile which refers to a file which has long since been deleted. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.12-rc3-mm/arch/um/kernel/Makefile === --- linux-2.6.12-r

[uml-devel] [PATCH 6/12] UML - Eliminate unusable function

2005-05-06 Thread Jeff Dike
Eliminate the non-inline version of switch_mm, which can't be used, considering the inline version in asm/mmu_context.h Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.11-mm/arch/um/kernel/process_kern.c === --- linux-

[uml-devel] [PATCH 1/12] UML - __deprecated makes build unnecessarily noisy

2005-05-06 Thread Jeff Dike
Remove the __deprecated from verify_area_skas and verify_area_tt. Since verify_area is itself marked __deprecated, and it is the only caller of these, then they don't need to be marked. Marking them only makes the build noisier. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.11/a

[uml-devel] [PATCH 4/12] UML - S390 preparation, peekusr/pokeusr defined by subarch

2005-05-06 Thread Jeff Dike
From: Bodo Stroesser <[EMAIL PROTECTED]> s390 needs to change some parts of arch/um/kernel/ptrace.c. Thus, the code regarding PEEKUSER and POKEUSER are shifted to arch/um/sys-/ptrace.c. Also s390 debug registers need to be updated, when singlestepping is switched on / off. Thus, setting/resetting

[uml-devel] Re: NACK on shift-MM_COPY_SEGMENTS for API change

2005-05-06 Thread Bodo Stroesser
Blaisorblade wrote: I understand the purpose of the patch; however, without any mention about the effects (which would be IMHO bad) we no more copy LDT segments on fork/clone, which is bad. No. The patch shifts code only, but AFAICS it doesn't alter the bahavior of UML/i386. If it does, that wou