Re: [PATCH 0/5] UM: Fine-tuning for some function implementations

2017-01-19 Thread Jeff Dike
The kmalloc(sizeof(struct foo), ...) => kmalloc(sizeof(*foo), ...) ones are OK. The rest is cargo-cult programming. Jeff -- Jeff Dike AddToIt 978-254-0789 (o) 978-394-8986 (c)

Re: [PATCH 1/5] um: port: Move an assignment for the variable "fd" in port_wait()

2017-01-18 Thread Jeff Dike
y standard kernel coding style. The inline fd = -ERESTARTSYS; is likely free, or close to it, and I believe that having anything besides a goto inside the if could make it significantly more expensive. Jeff -- Jeff Dike AddToIt 978-254-0789 (o) 978-394-8986 (c)

Re: [PATCH 2/5] um: port: Delete three error messages for a failed memory allocation

2017-01-18 Thread Jeff Dike
= fd, I don't see how this eliminates a possible error. It should behave exactly the same. To me, this is an expressiveness issue. !x is something you use with something that is conceptually a Boolean. x == NULL is a question about a pointer, which is the case here. Jeff -- Jeff Dike AddToIt 978-254-0789 (o) 978-394-8986 (c)

Re: Should a x86 gdb work under an x86_64 kernel?

2008-02-25 Thread Jeff Dike
On Mon, Feb 25, 2008 at 09:49:43AM -0500, Theodore Ts'o wrote: > I've noticed that if I try to use a 32-bit x86 gdb to debug a > 32-bit program under a 64-bit x86_64 kernel, gdb (version 6.6-debian, > from Ubuntu Gutsy) immediately core dumps as soon as I run the test > program under the debu

Re: [bug] uml doesn't boot under 2.6.25-rc1 host (was Re: 2.6.24-mm1 bugs)

2008-02-21 Thread Jeff Dike
On Thu, Feb 21, 2008 at 06:20:23PM +0100, Miklos Szeredi wrote: > Bisected it down to > > good e7b5e11eaaa8ef93a34e68016de51152d0d62911 > bad bde6f5f59c2b2b48a7a849c129d5b48838fe77ee > > I strongly suspect it's one of the ptrace cleanup patches. Roland, > could you please have a look? I agree.

Re: [PATCH 09/16] um: use get_personality()

2008-02-20 Thread Jeff Dike
On Wed, Feb 20, 2008 at 07:19:13PM +0800, WANG Cong wrote: > Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Looks good - you should add some sort of changelog though. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the l

Re: 2.6.24-mm1 bugs

2008-02-15 Thread Jeff Dike
On Fri, Feb 15, 2008 at 08:52:04PM +0100, Miklos Szeredi wrote: > > What does it do? > > See below. > [0.42] Checking host MADV_REMOVE support...<3>MADV_REMOVE failed, err > = -38 Where'd MADV_REMOVE go? I have it on 2.6.24. > [0.42] Failed to get registers from stub, errno =

Re: 2.6.24-mm1 bugs

2008-02-15 Thread Jeff Dike
On Fri, Feb 15, 2008 at 12:43:45PM +0100, Miklos Szeredi wrote: > - UML doesn't boot: guest is 2.6.24-mm1 also, haven't tried any >other. Same guest boots fine on 2.6.24 host. What does it do? Any chance you can bisect it? Jeff -- Work email - jdike at lin

[RFC PATCH] Address spaces as independent objects

2008-02-15 Thread Jeff Dike
mp;q=raw http://marc.info/?l=user-mode-linux-devel&m=120223046325197&q=raw http://marc.info/?l=user-mode-linux-devel&m=120223005624238&q=raw These are against 2.6.24. Build both host and guest from this tree. Jeff -- Work email

Re: [uml-devel] [Patch] arch/um/kernel/um_arch.c: some small improvements

2008-02-15 Thread Jeff Dike
On Fri, Feb 15, 2008 at 10:07:42PM +0800, WANG Cong wrote: > > Make some small improvements for arch/um/kernel/um_arch.c. > > Signed-off-by: WANG Cong <[EMAIL PROTECTED]> > Cc: Jeff Dike <[EMAIL PROTECTED]> ACK Jeff -- Work email - jdike at linux dot inte

Re: 2.6.24.2 won't compile UML

2008-02-14 Thread Jeff Dike
On Thu, Feb 14, 2008 at 12:13:09PM +0100, Ph. Marek wrote: > make -C linux-2.6.24.2/ O=output_path/build ARCH=um bzImage > make[2]: *** No rule to make target `bzImage'. Stop. This seems pretty clear, no? bzImage is a x86-ism. Just leave it off, and you'll get linux and vmlinux.

[PATCH] asm-*/futex.h should include linux/uaccess.h

2008-02-13 Thread Jeff Dike
, ia64, mips, and powerpc. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- include/asm-generic/futex.h |2 +- include/asm-ia64/futex.h|2 +- include/asm-mips/futex.h|2 +- include/asm-parisc/futex.h |2 +- include/asm-powerpc/futex.h |2 +- include/asm-sh/f

[PATCH 3/4] UML - Fix helper_wait calls in watchdog

2008-02-12 Thread Jeff Dike
/arch/um/drivers/harddog_user.c:82: error: too many arguments to function 'helper_wait' /arch/um/drivers/harddog_user.c:89: error: too many arguments to function 'helper_wait' Signed-off-by: Johann Felix Soden <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --

[PATCH 1/4] UML - Fix initrd printk

2008-02-12 Thread Jeff Dike
From: Johann Felix Soden <[EMAIL PROTECTED]> If the initrd file has zero-length, the error message should contain the filepath. Cc: WANG Cong <[EMAIL PROTECTED]> Signed-off-by: Johann Felix Soden <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/u

[PATCH 4/4] UML - Fix FP register corruption

2008-02-12 Thread Jeff Dike
essentially sleeping forever. This patch saves the FP state before entering the SIGSEGV handler and restores it afterwards. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/registers.h |2 ++ arch/um/include/sysdep-i386/ptrace_user.h |3 +++ arc

[PATCH 2/4] UML - Remove unused sigcontext accessors

2008-02-12 Thread Jeff Dike
The macros which extract registers from a struct sigcontext are no longer needed and can be removed. They are starting not to build anyway, given the removal of the 'e' and 'r' from register names during the x86 merge. Cc: Jiri Olsa <[EMAIL PROTECTED]> Signed-off-by: J

[PATCH 0/4] UML - Four for 2.6.25

2008-02-12 Thread Jeff Dike
These should go to Linus - there are three build fixes and a serious bug fix. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majord

Re: [PATCH] slob: fix linking for user mode linux

2008-02-11 Thread Jeff Dike
On Mon, Feb 11, 2008 at 02:44:21PM -0800, Christoph Lameter wrote: > UML defined its own external __kmalloc and things. Isnt there some other > way to fix it? I guess including slab.h is not possible here? This is definitely dubious code on my part and I wouldn't support Pekka's patch unless you'

[PATCH] UML - update defconfig

2008-02-07 Thread Jeff Dike
[ This is 2.6.25 fodder ] Update defconfig. Cc: Christoph Hellwig <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/defconfig | 280 -- 1 file changed, 187 insertions(+), 93 deletions(-) Index: linux-

[PATCH 3/5] UML - Improved error handling while locating temp dir

2008-02-06 Thread Jeff Dike
leanups, deleted obsolete comment ] Signed-off-by: Jim Meyering <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/mem.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) Index: linux-2.

[PATCH 2/5] UML - Style fixes in arch/um/os-Linux

2008-02-06 Thread Jeff Dike
longer needed. create_tmp_file was also made static. checkpatch moans about an EXPORT_SYMBOL in user_syms.c which is part of a macro definition - this is copying a bit of kernel infrastructure into the libc side of UML because the kernel headers can't be included there. Signed-off-by: Jeff

[PATCH 1/5] UML - Runtime host VMSPLIT detection

2008-02-06 Thread Jeff Dike
Miklos ran into. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/Kconfig | 11 -- arch/um/Kconfig.i386| 37 - arch/um/Kconfig.x86_64 |4 - arch/um/Makefile| 11 -- a

[PATCH 0/5] UML - Five for 2.6.25

2008-02-06 Thread Jeff Dike
This batch should go into the 2.6.25 merge window. There are a couple of patches which had been sitting in -mm waiting for this merge window, but got lost somehow: runtime host vmsplit detection - Miklos spotted a bug, since fixed, with a 32-bit UML on a 64-bit host style fixes in

[PATCH 5/5] UML - Fix mm_context memory leak

2008-02-06 Thread Jeff Dike
[ Spotted by Miklos ] Fix a memory leak in init_new_context. The struct page ** buffer allocated for install_special_mapping was never recorded, and thus leaked when the mm_struct was freed. Fix it by saving the pointer in mm_context_t and freeing it in arch_exit_mmap. Signed-off-by: Jeff Dike

[PATCH 4/5] UML - x86_64 should copy %fs during fork

2008-02-06 Thread Jeff Dike
%fs needs to be copied from parent to child during fork. Tidied up some whitespace while I was here. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- include/asm-um/processor-x86_64.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-2.6-git/include/asm-um/pro

Re: [PATCH] uml: handle unusual results from find_tempdir.

2008-02-05 Thread Jeff Dike
On Tue, Feb 05, 2008 at 05:25:06PM +0100, Jim Meyering wrote: > > An alternative: make find_tempdir set tempdir to default_tempdir > upon malloc failure. > > * arch/um/os-Linux/mem.c (make_tempfile): Handle NULL tempdir. > Don't let a long tempdir (e.g., via TMPDIR) provoke heap corruption. > >

Re: [-mm Patch] arch/um/kernel/initrd.c: fix a missed conversion specifier

2008-02-05 Thread Jeff Dike
On Wed, Feb 06, 2008 at 12:25:57AM +0800, WANG Cong wrote: > > Fix a missed conversion specifier of a printk in > arch/um/kernel/initrd.c. > > Signed-off-by: WANG Cong <[EMAIL PROTECTED]> > Cc: Jeff Dike <[EMAIL PROTECTED]> ACK - 2.6.25 material. Sigh.

Re: [git Patch] UML: a build error fix

2008-02-01 Thread Jeff Dike
mechananism that was used on x86_64 is gone. arch/um/include/sysdep-i386/syscalls.h got some formatting since I was looking at it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <[EMAIL PROTECTED]> --- arch/um/include/sysdep-i386/syscalls.h |5 +++-- arch/u

Re: [Patch] arch/um/include/init.h: Fix missing macro definitions

2008-02-01 Thread Jeff Dike
m init.h started breaking now for some reason. It turns out that there wasn't a definition of __used. Fixed this by copying the relevant stuff from compiler.h in the userspace case, and including compiler.h in the kernel case. >From WANG Cong <[EMAIL PROTECTED]> - added def

[RFC PATCH] Address spaces as independent objects

2008-01-29 Thread Jeff Dike
Below is a patch which allows address spaces to be created, manipulated, and destroyed independently of processes. The additions are two system calls, new_mm and switch_mm /proc//mm PTRACE_SWITCH_MM new_mm() returns a file descriptor referencing a new address space which i

Re: [PATCH] random - add async I/O support

2008-01-21 Thread Jeff Dike
On Mon, Jan 21, 2008 at 12:43:25PM -0600, Matt Mackall wrote: > This conflicts just about everywhere with my latest code, but I'll fix > that up. Great, thanks. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubscribe lin

[PATCH] random - add async I/O support

2008-01-21 Thread Jeff Dike
if (fcntl(fd, F_SETOWN, getpid()) < 0) { perror("Setting SIGIO"); exit(1); } printf("Drained the pool\n"); read(fd, &n, sizeof(n)); printf("Found more randomness\n"); return(0); } Sign

Re: UML is leaking memory in arch_dup_mmap

2008-01-18 Thread Jeff Dike
On Fri, Jan 18, 2008 at 03:42:54PM +0100, Miklos Szeredi wrote: > uml:~# grep arch_dup_mmap /proc/slab_allocators > size-32: 10861 arch_dup_mmap+0x9f/0x130 Whoops - try the patch below. Jeff -- Work email - jdike at linux dot intel dot com Index: linux-2.6.22/a

Re: [-mm Patch] uml: fix a building error

2008-01-17 Thread Jeff Dike
On Thu, Jan 17, 2008 at 03:17:38PM -0800, Pallipadi, Venkatesh wrote: > >#define X X > > > >is a no-op, yes? > > > > Later there is code in generic.h which is doing > #ifndef ioremap_wc > #define ioremap_wc ioremap_nocache > #endif Ah, that makes a bit more sense. It'd be nice if there was less

Re: [-mm Patch] uml: fix a building error

2008-01-17 Thread Jeff Dike
On Thu, Jan 17, 2008 at 01:41:50PM -0800, Venki Pallipadi wrote: > > And while we're on the subject, what's the deal with these, in > > include/asm-x86/io.h? > > > > #define ioremap_wc ioremap_wc > > #define unxlate_dev_mem_ptr unxlate_dev_mem_ptr > > > > If archs want to override the defaults f

[PATCH 19/20] UML - port mutex conversion

2008-01-17 Thread Jeff Dike
From: Daniel Walker <[EMAIL PROTECTED]> The port_sem is already used as a mutex since it's using DECLARE_MUTEX(), but the underlying construct is still a semaphore .. This patch switches it over to a struct mutex. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> Signed-off-by:

[PATCH 13/20] UML - Spelling fix

2008-01-17 Thread Jeff Dike
From: Joe Perches <[EMAIL PROTECTED]> Spelling fix Signed-off-by: Joe Perches <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/sys-x86_64/signal.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6-git/arch/um/s

[PATCH 1/20] UML - Runtime detection of host VMSPLIT on i386

2008-01-17 Thread Jeff Dike
Miklos ran into. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/Kconfig | 11 -- arch/um/Kconfig.i386| 37 - arch/um/Kconfig.x86_64 |4 - arch/um/Makefile| 11 -- a

[PATCH 15/20] UML - Fix infinite mconsole loop

2008-01-17 Thread Jeff Dike
te the stopping loop and resume the kernel. This is a problem. A better solution is to make the loop infinite and don't leave it until we are explicitly told to. Signed-off-by: Karol Swietlicki <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers

[PATCH 10/20] UML - Move register initialization

2008-01-17 Thread Jeff Dike
Calling init_registers inside the skas3 checking causes mysterious crashes if it doesn't happen because the skas3 checking is bypassed. This patch moves it to os_early_checks. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/start_up.c | 10 +++--- 1 file

[PATCH 2/20] UML - Style fixes in arch/um/os-LInux

2008-01-17 Thread Jeff Dike
longer needed. create_tmp_file was also made static. checkpatch moans about an EXPORT_SYMBOL in user_syms.c which is part of a macro definition - this is copying a bit of kernel infrastructure into the libc side of UML because the kernel headers can't be included there. Signed-off-by: Jeff

[PATCH 7/20] UML - Add back CONFIG_HZ

2008-01-17 Thread Jeff Dike
eter Anvin" <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/Kconfig|4 include/asm-um/param.h |2 +- 2 files changed, 5 insertions(+), 1 deletion(-) Index: linux-2.6.22/arch/um/Kconfig ==

[PATCH 4/20] UML - Implement O_APPEND

2008-01-17 Thread Jeff Dike
The .a flags in openflags never had an implementation. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/file.c |2 ++ 1 file changed, 2 insertions(+) Index: linux-2.6.22/arch/um/os-Linux/file.c === ---

[PATCH 5/20] UML - Remove fakehd

2008-01-17 Thread Jeff Dike
The fakehd switch lost its implementation at some point. Since no one is screaming for it, we might as well remove it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/ubd_kern.c | 20 1 file changed, 4 insertions(+), 16 deletions(-) Index: linux-

[PATCH 6/20] UML - DEBUG_SHIRQ fixes

2008-01-17 Thread Jeff Dike
ome error cleanup in mconsole_init while I was there. Cc: "Karol Swietlicki" <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/line.c |8 +--- arch/um/drivers/mconsole_kern.c |8 +++- 2 files changed, 12 insertions(

[PATCH 8/20] UML - Style fixes in arch/um/sys-x86_64

2008-01-17 Thread Jeff Dike
Style fixes in arch/um/sys-x86_64: updated copyrights CodingStyle fixes added severities to printks which needed them A bunch of functions in sys-*/ptrace_user.c turn out to be unused, so they and their declarations are gone. Signed-off-by: Jeff Dike <[EMAIL PROTEC

[PATCH 0/20] UML - Lots of patches for 2.6.25

2008-01-17 Thread Jeff Dike
This is a lot of cleanup. There are style fixes, printk fixes, spelling fixes, mutex conversions, and small bug fixes. This is all obviously for 2.6.25. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubs

[PATCH 17/20] UML - LDT mutex conversion

2008-01-17 Thread Jeff Dike
From: Daniel Walker <[EMAIL PROTECTED]> The ldt.semaphore conforms to the new struct mutex requirments, so I converted it to use the new API and changed the name. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/sys

[PATCH 12/20] UML - Remove TOPDIR

2008-01-17 Thread Jeff Dike
From: WANG Cong <[EMAIL PROTECTED]> TOPDIR is obsolete, use srctree instead. This patch removes TOPDIR from all UML Makefiles. Cc: Sam Ravnborg <[EMAIL PROTECTED]> Signed-off-by: WANG Cong <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um

[PATCH 18/20] UML - mconsole mutex conversion

2008-01-17 Thread Jeff Dike
From: Daniel Walker <[EMAIL PROTECTED]> The plug_mem_mutex is already used as a mutex since it's using DECLARE_MUTEX(), but the underlying construct is still a semaphore .. This patch switches it over to a struct mutex. Signed-off-by: Daniel Walker <[EMAIL PROTECTED]> Signed-

[PATCH 14/20] UML - Remove map_cb

2008-01-17 Thread Jeff Dike
John Reiser noticed that a physical memory region was being mapped twice. This patch fixes that, and it inlines the responsible function, as that had only one caller. Cc: John Reiser <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/mem.c |8

[PATCH 11/20] UML - Remove unused fields from mm_context

2008-01-17 Thread Jeff Dike
The 3-level page table fixes forgot to remove a couple now-unused fields from struct mm_context. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/um_mmu.h |4 1 file changed, 4 deletions(-) Index: linux-2.6.22/arch/um/include/um

[PATCH 20/20] UML - defconfig tweaks

2008-01-17 Thread Jeff Dike
Tweak the UML defconfig - we probably don't need 256 old-style ptys - this slows down udev noticably enable hostfs disable slab debugging - another noticable performance hit Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/defconfig |6 +++--- 1 file

[PATCH 16/20] UML - Use of a public MAC is a warning, not an error

2008-01-17 Thread Jeff Dike
Downgrade one of the MAC validity checks. If it's one that could be possibly assigned to a physical NIC, then nothing will break. So, emit a warning in this case, but keep the requested MAC. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/net_kern.c |9 --

[PATCH 9/20] UML - Add newlines to printks

2008-01-17 Thread Jeff Dike
Some printks were missing newlines. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/skas/process.c |8 1 file changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6.22/arch/um/os-Linux/skas/pro

[PATCH 3/20] UML - SMP locking commentary

2008-01-17 Thread Jeff Dike
Add some more commentary about various pieces of global data not needing locking. Also got rid of unmap_physmem since that is no longer used. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/net_kern.c |7 ++- arch/um/include/mem_user.h |1 - arch/um/kernel

Re: [-mm Patch] uml: fix a building error

2008-01-17 Thread Jeff Dike
On Thu, Jan 17, 2008 at 11:38:53AM -0800, Pallipadi, Venkatesh wrote: > Apart from unxlate, there is also ioremap_wc which is defined in the > same way. And while we're on the subject, what's the deal with these, in include/asm-x86/io.h? #define ioremap_wc ioremap_wc #define unxlate_dev_mem_ptr u

Re: [-mm Patch] uml: fix a building error

2008-01-17 Thread Jeff Dike
On Thu, Jan 17, 2008 at 07:11:13PM +0100, Mariusz Kozlowski wrote: > I see this on sparc64 as well: > > CC drivers/char/mem.o > drivers/char/mem.c: In function 'read_mem': > drivers/char/mem.c:136: error: implicit declaration of function > 'unxlate_dev_mem_ptr' > make[2]: *** [drivers/char

Re: [-mm Patch] UML: fix a building error

2008-01-17 Thread Jeff Dike
On Thu, Jan 17, 2008 at 09:21:08PM +0800, WANG Cong wrote: > Building uml failed in current -mm tree. ;( > > The below patch fixes this building error: > ... > include/asm/arch/system.h:8:22: error: asm/nops.h: No such file or directory > ... > > Cc: Jeff Dike <[EMAIL

Re: [-mm Patch] uml: fix a building error

2008-01-17 Thread Jeff Dike
On Thu, Jan 17, 2008 at 09:56:41PM +0800, WANG Cong wrote: > > This patch fixes this building error: > ... > drivers/char/mem.c: In function ‘read_mem’: > drivers/char/mem.c:136: error: implicit declaration of function > ‘unxlate_dev_mem_ptr’ > ... > > Cc: Jeff Dike &

Re: question regarding user mode linux

2008-01-13 Thread Jeff Dike
On Sun, Jan 13, 2008 at 03:24:01PM +0100, [EMAIL PROTECTED] wrote: > Any ideas what could be wrong here? What was the problem, exactly? Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel

[PATCH] x86 - Fencepost errors in compat ptrace

2008-01-10 Thread Jeff Dike
The compat PTRACE_SETREGS and PTRACE_GETREGS are verifying_area one word too few. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/x86/ia32/ptrace32.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/ia32/ptrace32.c b/arch/x86/ia32/ptrace32.c index 4

Re: uml and -regparm=3

2008-01-09 Thread Jeff Dike
On Wed, Jan 09, 2008 at 10:50:48PM +0100, Miklos Szeredi wrote: > > FASTCALL is useless and should not make a difference. It enables > > regparm on specific functions, but that should not make a difference > > if it works or not. > > __down_write() in include/asm-x86/rwsem.h seems to assume, that

Re: [uml-devel] UML woes in 2.6.24-rc6-mm1

2008-01-04 Thread Jeff Dike
On Thu, Jan 03, 2008 at 01:55:57PM +0100, Miklos Szeredi wrote: > This is the one: uml-runtime-detection-of-host-vmsplit-on-i386.patch > > The relevant log line (both for successful and failed boots): > > Locating the top of the address space ... 0xffc0 Thanks for narrowing it down. It turn

Re: [uml-devel] UML woes in 2.6.24-rc6-mm1

2008-01-02 Thread Jeff Dike
On Wed, Jan 02, 2008 at 09:52:41PM +0100, Miklos Szeredi wrote: > 32bit UML, 64bit host, config attached. Hadn't tried that, but that works here too. I'll see if your config reproduces it. > Can't reproduce with plain -rc6. Feel like bisecting -mm1? Jeff -- Wo

[PATCH 3/7] UML - Style fixes in arch/um/kernel

2008-01-02 Thread Jeff Dike
Perches <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/exitcode.c | 31 -- arch/um/kernel/gmon_syms.c | 11 +- arch/um/kernel/gprof_syms.c | 13 arch/um/kernel/process

[PATCH 7/7] UML - Style fixes in arch/um/os-Linux

2008-01-02 Thread Jeff Dike
longer needed. create_tmp_file was also made static. checkpatch moans about an EXPORT_SYMBOL in user_syms.c which is part of a macro definition - this is copying a bit of kernel infrastructure into the libc side of UML because the kernel headers can't be included there. Signed-off-by: Jeff

[PATCH 5/7] UML - Fix hostfs tv_usec calculations

2008-01-02 Thread Jeff Dike
From: Dominique Quatravaux <[EMAIL PROTECTED]> To convert from tv_nsec to tv_usec, one needs to divide by 1000, not multiply. Signed-off-by: Dominique Quatravaux <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- fs/hostfs/hostfs_user.c |8

[PATCH 1/7] UML - Re-remove accidentally restored code

2008-01-02 Thread Jeff Dike
off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/process.c | 44 1 file changed, 44 deletions(-) Index: linux-2.6.22/arch/um/kernel/process.c === --- linux-2.6.22.orig/ar

[PATCH 6/7] UML - Remove init_irq_signals

2008-01-02 Thread Jeff Dike
init_irq_signals doesn't need to be called from the context of a new process. It initializes handlers, which are useless in process context. With that call gone, init_irq_signals has only one caller, so it can be inlined into init_new_thread_signals. Signed-off-by: Jeff Dike <[EMAIL P

[PATCH 2/7] UML - Remove current_thread

2008-01-02 Thread Jeff Dike
style cleanups. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/process.c |8 arch/um/sys-i386/signal.c| 18 -- arch/um/sys-x86_64/signal.c |4 ++-- include/asm-um/current.h | 23 ++- include/asm-um/thread_in

[PATCH 4/7] UML - Signal handling tidying

2008-01-02 Thread Jeff Dike
: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/signal.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) Index: linux-2.6-git/arch/um/os-Linux/signal.c === --- linux-2.6-git.orig/a

[PATCH 0/7] UML - Small fixes and cleanups for 2.6.25

2008-01-02 Thread Jeff Dike
This set of patches should wait for 2.6.25. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.or

Re: [uml-devel] UML woes in 2.6.24-rc6-mm1

2008-01-02 Thread Jeff Dike
On Wed, Jan 02, 2008 at 06:53:00PM +0100, Miklos Szeredi wrote: > The below patch was needed to make UML compile in latest -mm. ACK on that - I've got the same patch on its way. > But sometimes it doesn't boot and does weird things (this is a sample > with init=/bin/bash): > (none):/# ls > Segme

Re: [PATCH] uml: user of helper_wait() got missed when it got extra arguments

2008-01-02 Thread Jeff Dike
On Sun, Dec 23, 2007 at 08:01:04PM +, Al Viro wrote: > - helper_wait(pid); > + helper_wait(pid, 1, NULL); Thanks. I know I fixed these - I probably forgot to quilt add the file. Jeff -- Work email - jdike at linux dot intel dot com --

Re: (Try #2) [Patch 1/8] UML: Remove 'TOPDIR' from Makefiles

2008-01-02 Thread Jeff Dike
On Tue, Jan 01, 2008 at 09:01:25PM +0800, WANG Cong wrote: > TOPDIR is obsolete, use srctree instead. > This patch removes TOPDIR from all UML Makefiles. Thanks, I'll send this to Andrew. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe fro

Re: 2.6.24-rc5-mm1 - wonky disk cache and CDROM behavior...

2007-12-18 Thread Jeff Dike
On Tue, Dec 18, 2007 at 06:04:58PM -0800, Andrew Morton wrote: > Nobody seems to look after hppfs. I'll resend the fat and hostfs patches to > maintainers for a review, please. It's mine - I'll take a look at it. Jeff -- Work email - jdike at linux dot intel dot

Re: [PATCH] UML - Add asm/fixmap.h include

2007-12-14 Thread Jeff Dike
On Fri, Dec 14, 2007 at 09:58:40AM -0800, Andrew Morton wrote: > arch/um/include/um_uaccess.h already includes fixmap.h. Is this a -mm-only > fix? Whoops, it is. The include was removed by uml-header-untangling.patch, so folding this into that would work. Jeff -

[PATCH] UML - Add asm/fixmap.h include

2007-12-14 Thread Jeff Dike
[ This needs to go into 2.6.24, as it fixes a build breakage seen on x86_64 ] um_uaccess.h refers to FIXADDR_USER_*, so it should include fixmap.h. I also changed the non-UML includes to use <> instead of "". Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/inclu

Re: [PATCH 05/30] blk_end_request: changing um (take 4)

2007-12-12 Thread Jeff Dike
On Tue, Dec 11, 2007 at 05:42:53PM -0500, Kiyoshi Ueda wrote: > This patch converts um to use blk_end_request interfaces. > Related 'uptodate' arguments are converted to 'error'. > > As a result, the interface of internal function, ubd_end_request(), > is changed. Looks OK to me...

[PATCH 3/6] UML - Get rid of syscall counters

2007-12-12 Thread Jeff Dike
Get rid of some syscall counters which haven't been useful in ages. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/kern_util.h|1 - arch/um/kernel/skas/syscall.c |3 --- arch/um/kernel/syscall.c |3 --- include/asm-um/processo

[PATCH 1/6] UML - tidy helper code

2007-12-12 Thread Jeff Dike
error message when something goes wrong. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/net_user.c |2 arch/um/drivers/slip_user.c |2 arch/um/drivers/slirp_user.c |2 arch/um/include/os.h |2

[PATCH 0/6] UML - Cleanups for 2.6.25

2007-12-12 Thread Jeff Dike
This series is all cleanups. They should wait for 2.6.25. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http:/

[PATCH 5/6] UML - Move sig_handler_common_skas

2007-12-12 Thread Jeff Dike
This patch moves sig_handler_common_skas from arch/um/os-Linux/skas/trap.c to its only caller in arch/um/os-Linux/signal.c. trap.c is now empty, so it can be removed. This is code movement only - the significant cleanup needed here is done in the next patch. Signed-off-by: Jeff Dike <[EM

[PATCH 6/6] UML - Clean up sig_handler_common_skas

2007-12-12 Thread Jeff Dike
be deleted. The special treatment of SIGSEGV similarly goes away, but to compensate, SA_NODEFER is added to sa_mask when registering a signal handler. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/signal.c | 63 +- 1

[PATCH 2/6] UML - don't kill pid 0

2007-12-12 Thread Jeff Dike
whatsoever. This patch add a check for pids less than 2, to also catch 1 and negative pids. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/skas/mmu.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) Index: linux-2.6-git/arch/um/kernel/skas

[PATCH 4/6] UML - Don't allow processes to call into stub

2007-12-12 Thread Jeff Dike
haywire, so it's a good idea to get rid of it in either case. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/skas/process.c |3 +++ 1 file changed, 3 insertions(+) Index: linux-2.6.22/arch/um/os-Linux/ska

[PATCH 2/2] UML - update uml-kill-processes-instead-of-panicing-kernel.patch

2007-12-11 Thread Jeff Dike
instead of panicing on failure, with their callers doing something appropriate. There were also duplicate declarations of save_registers and restore_registers in os.h - these are gone. I noticed and fixed up some whitespace damage. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- a

[PATCH 1/2] UML - Stop gdb from deleting breakpoints when running UML

2007-12-11 Thread Jeff Dike
ike - checkpatch fixes ] Signed-off-by: Stanislaw Gruszka <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/net_user.c |2 - arch/um/drivers/slip_user.c | 12 + arch/um/drivers/slirp_user.c | 15 +

Re: [PATCH 1/3] Fix use of skb after netif_rx

2007-12-10 Thread Jeff Dike
On Sun, Dec 09, 2007 at 09:02:31PM +0100, Julia Lawall wrote: > Recently, Wang Chen submitted a patch > (d30f53aeb31d453a5230f526bea592af07944564) to move a call to netif_rx(skb) > after a subsequent reference to skb, because netif_rx may call kfree_skb on > its argument. The same problem occurs i

[PATCH 2/5] UML - Runtime detection of host VMSPLIT on i386

2007-12-10 Thread Jeff Dike
since the relocation of the stubs makes it irrelevant. All the HOST_VMSPLIT stuff is gone. All references to these in arch/um/Makefile are also gone. I noticed and fixed a missing extern in os.h when adding os_get_task_size. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> ---

[PATCH 1/5] UML - Customize tlb.h

2007-12-10 Thread Jeff Dike
The interfaces which just free page tables, without actually changing mappings, don't need to cause a TLB flush. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/tlb.c | 25 +++--- include/asm-um/tlb.h | 122 ++- 2 fi

[PATCH 4/5] UML - Install panic notifier earlier

2007-12-10 Thread Jeff Dike
t will ask alloc_bootmem for zero bytes, and that will cause the panic. While I was in initrd.c, I gave it a style makeover. Prompted by checkpatch, I moved a couple extern declarations of uml_exitcode to kern_util.h. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/ke

[PATCH 3/5] UML - Eliminate setjmp_wrapper

2007-12-10 Thread Jeff Dike
rapper and given a va_list from which it must extract its arguments. The actual setjmp is moved from buffer_op to do_op_one_page because the copy operation is inside an atomic section (kmap_atomic to kunmap_atomic) and it shouldn't be longjmp-ed out of. Signed-off-by: Jeff Dike <[EMAIL PROTEC

[PATCH 0/5] UML - Five patches for 2.6.25

2007-12-10 Thread Jeff Dike
This is a resend of the tlb.h patch from last week, plus four more small fixes and cleanups. They should wait for 2.6.25. Jeff -- Work email - jdike at linux dot intel dot com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH 5/5] UML - use barrier() instead of mb()

2007-12-10 Thread Jeff Dike
declarations are gone and the mb()'s replaced by barrier()'s. One of the mb()'s was deleted because I see no problematic writes that could be re-ordered past that point. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/os-Linux/signal.c | 28 --

Re: [PATCH 1/6] UML - Customize tlb.h

2007-12-06 Thread Jeff Dike
On Thu, Dec 06, 2007 at 11:46:42AM -0800, Andrew Morton wrote: > > +void flush_tlb_mm(struct mm_struct *mm) > > +{ > > + struct vm_area_struct *vma = mm->mmap; > > + > > + if (atomic_read(&mm->mm_users) == 0) > > + return; > > Under which circumstances does this test succeed? Sigh,

[PATCH 5/6] UML - style fixes in file.c

2007-12-06 Thread Jeff Dike
called without checking the return removed an obsolete comment Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/os.h|1 arch/um/os-Linux/file.c | 232 2 files changed, 118 insertions(+), 115 deletions(-)

[PATCH 1/6] UML - Customize tlb.h

2007-12-06 Thread Jeff Dike
use a TLB flush. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/tlb.c | 28 --- include/asm-um/tlb.h | 121 ++- 2 files changed, 141 insertions(+), 8 deletions(-) Index: linux-2.6-git/arch/um/k

[PATCH 4/6] UML - Miscellaneous code cleanups

2007-12-06 Thread Jeff Dike
was unused, so it is removed ptrace_child called _exit for historical reasons which are no longer valid, so just calls exit instead Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/irq_user.h |1 - arch/um/include/os.h|3 +-- arch/um/kernel/irq

  1   2   3   4   5   6   7   8   9   >