[uml-devel] [PATCH 1/8] UML - Compilation warning removal

2006-02-06 Thread Jeff Dike
With gcc 4.1.0, I get a bunch of warnings about consts being lost in the copy_user code. This patch fixes them by adding consts where necessary. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/include/skas/uaccess-skas.h ==

[uml-devel] [PATCH 0/8] UML - Eight patches for 2.6.16

2006-02-06 Thread Jeff Dike
The upcoming patch series fixes bugs, compilation failures, and warnings, and removes a dead file. Jeff --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Down

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

2006-02-06 Thread Jeff Dike
With newer libcs, the JB_* macros (which we shouldn't be using anyway, probably) go away. This patch defines them if setjmp.h doesn't. It'd be nice to have a real way to do this, as sysrq-t requires a way to get registers from out-of-context threads, which we store in jmpbufs. Signed-off-by: Je

[uml-devel] [PATCH 4/8] UML - Close TUN/TAP file descriptors

2006-02-06 Thread Jeff Dike
When UML opens a TUN/TAP device, the file descriptor could be copied into later, long-lived threads, holding the device open even after the interface is taken down, preventing it from being brought up again. This patch makes these descriptors close-on-exec so that they disappear from helper proces

[uml-devel] [PATCH 5/8] UML - Balance list_add and list_del in the network driver

2006-02-06 Thread Jeff Dike
The network driver added an interface to the "opened" list when it was configured, not when it was brought up, and removed it when it was taken down. A sequence of ifconfig up, ifconfig down, ... caused it to be removed multiple times from the list without being added in between, resulting in a cr

[uml-devel] [PATCH 3/8] UML - Add debug switch for skas mode

2006-02-06 Thread Jeff Dike
It doesn't do anything but emit a warning, but there's a user population that's used to adding 'debug' to the UML command line in order to gdb it. With skas0 mode, that's not necessary, but these users need some indication that 'debug' doesn't do what they want. Signed-off-by: Jeff Dike <[EMAIL PR

[uml-devel] [PATCH 6/8] UML - Block SIGWINCH in ptrace tester child

2006-02-06 Thread Jeff Dike
The process that UML uses to probe the host's ptrace capabilities can (rarely) receive a SIGWINCH, confusing the parent. This fixes that by blocking SIGWINCH. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/os-Linux/start_up.c ===

[uml-devel] [PATCH 7/8] UML - Initialize process FP registers properly

2006-02-06 Thread Jeff Dike
We weren't making sure that we initialized the FP registers of new processes to sane values. This patch also moves some defines in the affected area closer to where they are used. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/sys-x86_64/ptrace_user.c ==

[uml-devel] [PATCH 8/8] UML - Remove a dead file

2006-02-06 Thread Jeff Dike
A previous patch removed a file from the build without removing it from the tree. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Index: linux-2.6.15/arch/um/kernel/skas/process.c === --- linux-2.6.15.orig/arch/um/kernel/skas/process.c