Re: [uml-devel] UML tools anywhere?

2016-08-17 Thread Jeff Dike
Jeff -- Jeff Dike AddToIt 978-254-0789 (o) 978-394-8986 (c) -- ___ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourc

Re: [uml-devel] [PATCH] um: fix FPU register double-restore after sigreturn

2016-03-19 Thread Jeff Dike
ut it? My (vague) recollection was that with libc in there, I couldn't be confident that it wouldn't unexpectedly use FP for something. So, saving and restoring FP state was a hedge against that happening. Jeff -- Jeff Dike AddToIt 978-2

Re: [uml-devel] linux-4.2-rc2/arch/um/drivers/net_user.c:258: possible missing call to va_end ?

2015-07-13 Thread Jeff Dike
> Since you've been so nice about it, here is my umpteenth go at a > linux kernel patch. Just eyeballing it, that looks right to me. It just needs your original bug report above the Signed-off-by. Jeff -- Jeff Dike AddToIt 978-254-0789 (o) 978-

Re: [uml-devel] [PATCH] um: umid: Use strdup to simplify code

2015-07-08 Thread Jeff Dike
On Wed, Jul 08, 2015 at 10:01:23PM +0200, Richard Weinberger wrote: > BTW: I'd like to move away from sf.net soon. Maybe to lists.infradead.org. > Is that okay for you? Fine by me - it's your call. Jeff -

Re: [uml-devel] [PATCH] um: umid: Use strdup to simplify code

2015-07-08 Thread Jeff Dike
... Nice patch elided ... I have a bit of a problem here - Christophe isn't a member of uml-devel, so Mailman is sitting on his post until it's approved by a list moderator, namely me. So far, so good, except that my uml-devel password stopped working, so I now have no ability to approve this (an

Re: [uml-devel] [PATCH 8/9] um: fix strrchr problems

2011-08-29 Thread Jeff Dike
On Mon, Aug 29, 2011 at 02:27:05PM -0700, Andrew Morton wrote: > ok, I give up. How does this work? It fixes symbol clashes between libc and kernel names by redefining the kernel name in any file that is built against kernel headers. This fix is fairly nasty, but simple and it works. My long-ra

Re: [uml-devel] reading heap memory in kernel space .

2010-07-28 Thread Jeff Dike
On Wed, Jul 28, 2010 at 09:54:37PM +0530, ratheesh k wrote: > I have a simple user space program . > > char *ptr=(char *)malloc(100); > strcpy(ptr , "Hi Kernel , How are you "); > . > sendmsg(...) > > > > I compiled this program and executed on 2.6.32 user mode linux . > when

Re: [uml-devel] [PATCH] x86, hweight: Fix UML boot crash

2010-05-31 Thread Jeff Dike
On Mon, May 31, 2010 at 03:51:32PM +0200, Borislav Petkov wrote: > includes which are > the optimized variants. But how does UML get to arch/x86/include/asm/bitops.h in the first place? It must go through an arch/um/include/asm/something.h (where something might be bitops) first, right?

Re: [uml-devel] [PATCH] x86, hweight: Fix UML boot crash

2010-05-31 Thread Jeff Dike
On Sun, May 30, 2010 at 09:39:56PM +0200, Borislav Petkov wrote: > Which begs the question why _is_ UML sucking in x86 stuff and can anyone > provide us with some sensible reasons? Because if there aren't any, it > is their includes that should be fixed. Let me see what I can do to > redirect hweig

Re: [uml-devel] [PATCH 2/5] uml: Drop private round_down definition

2010-04-20 Thread Jeff Dike
On Tue, Apr 20, 2010 at 04:35:52PM +0200, Jiri Kosina wrote: > On Tue, 20 Apr 2010, Amerigo Wang wrote: > > Shouldn't this signal.c #include ? > > Well, it gets included implicitly through uaccess.h -> sched.h -> > kernel.h. You're depending on the internal details of uaccess.h and sched.h. If

Re: [uml-devel] [PATCH] uml: Fix build breakage after slab.h changes

2010-04-20 Thread Jeff Dike
On Mon, Apr 19, 2010 at 10:12:04PM +0200, Jiri Kosina wrote: > Well, if Jeff isn't actively maintaining UML any more, either you can take > over the maintainership yourself, or feed the non-trivial patches through > Andrew Morton. Yes, these generally go through Andrew.

Re: [uml-devel] [PATCH 2/5] uml: Drop private round_down definition

2010-04-20 Thread Jeff Dike
On Tue, Apr 20, 2010 at 04:33:58PM +0800, Amerigo Wang wrote: > On Mon, Apr 19, 2010 at 11:53:05PM +0200, Jan Kiszka wrote: > >Already defined in kernel.h. The official version assumes that 'n' is > >power of two - which it is in our case. > > > >Signed-off-by: Jan Kiszka > >--- > > arch/um/sys-x8

Re: [uml-devel] [PATCH 3/5] uml: Fix warning due to missing task_struct declaration

2010-04-20 Thread Jeff Dike
On Tue, Apr 20, 2010 at 06:09:49PM +0800, Amerigo Wang wrote: > On Mon, Apr 19, 2010 at 11:53:06PM +0200, Jan Kiszka wrote: > >We can't pull in linux/sched.h, so just declare the struct. > > > > Did you meet any build error? If yes, please include it. What does this patch fix, aside from being a

Re: [uml-devel] [PATCH 66/66] arch/um/sys-x86_64/shared/sysdep/skas_ptrace.h: Checkpatch cleanup

2010-02-28 Thread Jeff Dike
On Sun, Feb 28, 2010 at 03:06:21PM +0100, Andrea Gelmini wrote: > 2010/2/27 Jeff Dike : > Hi Jeff, >and thanks for your reply. > > > Don't you have anything better to do with your time? > > It's a dirty job, but somebody has to do it... To be a bit mor

Re: [uml-devel] [PATCH 66/66] arch/um/sys-x86_64/shared/sysdep/skas_ptrace.h: Checkpatch cleanup

2010-02-27 Thread Jeff Dike
On Sat, Feb 27, 2010 at 05:51:47PM +0100, Andrea Gelmini wrote: > arch/um/sys-x86_64/shared/sysdep/skas_ptrace.h:10: ERROR: code indent should > use tabs where possible > arch/um/sys-x86_64/shared/sysdep/skas_ptrace.h:11: ERROR: code indent should > use tabs where possible Don't you have anythin

Re: [uml-devel] [Patch] um: tell git to ignore generated files

2010-02-20 Thread Jeff Dike
On Sat, Feb 20, 2010 at 03:16:05PM +, Al Viro wrote: > On Sat, Feb 20, 2010 at 03:09:36PM +, Al Viro wrote: > > On Sat, Feb 20, 2010 at 10:33:59PM +0800, Am??rico Wang wrote: > > > > > > git should ignore these files, since they are generated. > > > > > +include/shared/kern_constants.h >

Re: [uml-devel] [PATCH] UML: Fix some apparent bitrot

2009-06-25 Thread Jeff Dike
On Fri, Jun 26, 2009 at 12:01:11PM +1000, Stephen Rothwell wrote: > On out PowerPC host I am using > > make ARCH=um SUBARCH=i386 CROSS_COMPILE= > > I am just building defconfig, would another config also be useful? defconfig is good - that's my normal test config. > Currently plain "make

Re: [uml-devel] [PATCH] UML: Fix some apparent bitrot

2009-06-25 Thread Jeff Dike
On Thu, Jun 25, 2009 at 06:49:01PM +0800, Amerigo Wang wrote: > make ARCH=um SUBARCH=ppc? Or something similar... It would need to be make ARCH=um with an x86 cross-compiler. Jeff ---

Re: [uml-devel] Building/runing UML in SMP mode

2009-06-15 Thread Jeff Dike
On Mon, Jun 15, 2009 at 06:22:46PM -0700, Paul Menage wrote: > On Mon, Jun 15, 2009 at 6:03 PM, Jeff Dike wrote: > > > > The problem with SMP on skas0 > > Does that mean that it works more easily on skas3? Yup. That completely avoids ptrace issues. I think things should ju

Re: [uml-devel] Building/runing UML in SMP mode

2009-06-15 Thread Jeff Dike
On Thu, Jun 11, 2009 at 12:02:56PM -0700, Paul Menage wrote: > For a while now (since tt mode was dropped and skas mode became the > only option?) it looks as though UML has been UP-only on x86-64. And > even though the configs appear to allow building SMP on x86-32, there > are things like the pa

Re: [uml-devel] [Patch] Save FPU registers between task switches

2009-04-23 Thread Jeff Dike
On Sat, Apr 18, 2009 at 05:40:21PM +0200, Ingo van Lil wrote: > some time ago Jeff prepared a patch [1] for UML to stop saving the > process FP state between task switches. The assumption was that since > with SKAS0 every guest process runs inside a host process context the > host OS will take care

Re: [uml-devel] can UML run on AIX?

2009-04-23 Thread Jeff Dike
On Mon, Apr 20, 2009 at 02:27:24PM -0400, Mark S. Waterbury wrote: > Does anyone know if anyone has successfully "ported" UML to run on top > of AIX? Nope. The only port is the Linux one. Jeff

Re: [uml-devel] [PATCH] Fix ARCH=um segfault on x86-64.

2009-03-06 Thread Jeff Dike
On Fri, Mar 06, 2009 at 07:18:34PM +0800, Am??rico Wang wrote: > It does work well x86_64, but my question is that whether this will > break i386 or not, since before, CONFIG_3_LEVEL_PGTABLES depends on > EXPERIMENTAL on i386, this patch removes it. As long as CONFIG_3_LEVEL_PGTABLES is off on 32-

Re: [uml-devel] [Patch] UML: spurious interrupt freezes guest

2009-01-19 Thread Jeff Dike
On Mon, Jan 19, 2009 at 08:53:25PM -0700, Shane Hathaway wrote: > A new instance of user mode linux that I created over the past couple of > days worked pretty well except that it had a habit of freezing after a > few minutes. Every time it froze, the last message on the console was > either: > >

Re: [uml-devel] [Patch] uml: fix a link error

2009-01-19 Thread Jeff Dike
On Sun, Jan 18, 2009 at 02:23:46PM +0800, Daolong Wang wrote: > I can confirm this link error. In what environment? I see no problems here. > And this patch works for me. Maybe it fixes the link failure. But I really doubt that sigprocmask works. Jeff -- Wor

Re: [uml-devel] [Patch] uml: fix a link error

2009-01-16 Thread Jeff Dike
On Fri, Jan 16, 2009 at 12:41:58PM -0800, Andrew Morton wrote: > On Thu, 15 Jan 2009 19:40:33 + > Am__rico Wang wrote: > > #define sys_vm86old sys_ni_syscall > > #define sys_vm86 sys_ni_syscall > > +#define sys_sigprocmask sigprocmask > > > > #define old_mmap old_mmap_i386 > > > > For

Re: [uml-devel] UML crashes when built with _FORTIFY_SOURCE

2008-11-02 Thread Jeff Dike
On Sat, Oct 25, 2008 at 02:08:31AM +0300, Roman Yepishev wrote: > Temporary solution is to fix file declaration to be 108 or less bytes > but checks should be introduced when socket path is constructed. I don't really understand what you mean by checks being introduced, but how do you like the pat

Re: [uml-devel] Strange code in smp_prepare_cpus?

2008-10-23 Thread Jeff Dike
On Wed, Oct 22, 2008 at 01:34:59PM +1100, Rusty Russell wrote: > ... > cpu_clear(me, cpu_online_map); > cpu_set(me, cpu_online_map); > > Something subtle here? I'd like to be able to claim so, but no. Looks like a botched merge to me. Jeff -- Work e

Re: [uml-devel] parallel I/O

2008-10-03 Thread Jeff Dike
On Thu, Oct 02, 2008 at 03:34:27PM +0200, Nicolas Boullis wrote: > I wrote: > > > > For what it's worth, here is my quick-n-dirty proof-of-concept patch > > that enables parallel I/O. Note that it is based on 2.6.24. > > > > If people are interested, I can try to make a clean patch out of it. >

Re: [uml-devel] [PATCH 2/6] UML: Don't valgrind userspace

2008-09-06 Thread Jeff Dike
On Sat, Sep 06, 2008 at 01:55:34PM -0700, John Reiser wrote: > > This is effectively appropriating part of the kernel's ABI for > > valgrind's use. > > UML is part of the kernel, so getting a memory reference checker (valgrind) > running in UML is part of the kernel, too. The concept of "escape

Re: [uml-devel] [PATCH 2/6] UML: Don't valgrind userspace

2008-09-05 Thread Jeff Dike
On Fri, Aug 29, 2008 at 04:15:24PM -0700, Steve VanDeBogart wrote: > Add a flag to tell Valgrind to run the forked child natively. Necessary > because Valgrind makes additional system calls to instrumented processes, > which confuse UML. > +#ifdef UML_CONFIG_VALGRIND_SUPPORT > + flags

Re: [uml-devel] Connecting UML_SWITCH and Wireshark

2008-09-03 Thread Jeff Dike
On Mon, Sep 01, 2008 at 05:44:39PM +0200, Julien Iguchi-Cartigny wrote: > I'm using Netkit (www.netkit.org): it's a network simulator using UML > and I want to show packets exchanged between the UML machines. I believe > the best way is to > > - use wireshark with the flag "-" to capture packets i

Re: [uml-devel] [Pkg-uml-pkgs] Bug#495611: user-mode-linux: page_mapcount(page) went negative!

2008-09-03 Thread Jeff Dike
On Wed, Sep 03, 2008 at 12:01:19AM +0100, Graham Cobb wrote: > The bisection is complete. It took longer than I expected as many of the > versions git-bisect wanted to test would not build UML without tracking down > some additional patches. > > The bug seems to have been introduced with git c

Re: [uml-devel] [PATCH 1/6] base: Valgrind headers and Kconfig

2008-09-01 Thread Jeff Dike
On Mon, Sep 01, 2008 at 04:22:19PM +0200, Andi Kleen wrote: > > Kernel code can't get headers from the system, unless you're thinking > >#include "/usr/include/valgrind.h" > > or something similar. > > Some um files at least least include sys/* files which are surely > user space? If they

Re: [uml-devel] [PATCH 1/6] base: Valgrind headers and Kconfig

2008-09-01 Thread Jeff Dike
On Mon, Sep 01, 2008 at 11:32:00AM +0200, Andi Kleen wrote: > Steve VanDeBogart <[EMAIL PROTECTED]> writes: > > Kconfig option for Valgrind. Suppression file, for known non-issues. > > Valgrind header files (svn 8534) that define the client request > > mechanism used to annotate programs plus a co

Re: [uml-devel] [Pkg-uml-pkgs] Bug#495611: user-mode-linux: page_mapcount(page) went negative!

2008-08-27 Thread Jeff Dike
On Wed, Aug 27, 2008 at 04:05:24PM +0100, Graham Cobb wrote: > However, how would I go about bisecting through the large number of patches > which are the difference between these? Is there somewhere I can get interim > kernel versions from? Set up a git tree, and git-bisect will chose versions

Re: [uml-devel] [RFC PATCH] uml: fix double statement if missing braces

2008-08-27 Thread Jeff Dike
On Wed, Aug 27, 2008 at 12:34:08PM +0300, Ilpo Järvinen wrote: > They usually say that you might want to put the return on a different line > unless you have something to hide :-). Whoops, right you are. Jeff -- Work email - jdike at linux dot intel dot com -

Re: [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr'

2008-08-27 Thread Jeff Dike
On Wed, Aug 27, 2008 at 09:04:29AM +0100, Graham Cobb wrote: > On Tuesday 26 August 2008 21:20:12 Jeff Dike wrote: > > A symbol clash between libc and the kernel. Try this: > >... > > The patch itself didn't apply for me (probably because I copy/paste'd it fr

Re: [uml-devel] FP registers corruption

2008-08-27 Thread Jeff Dike
t its size and changed the return value to reflect that. Also some minor formatting changes] Signed-off-by: Tom Spink <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torval

Re: [uml-devel] [Pkg-uml-pkgs] Bug#495611: user-mode-linux: page_mapcount(page) went negative!

2008-08-26 Thread Jeff Dike
On Tue, Aug 19, 2008 at 09:01:55PM +0900, Mattia Dongili wrote: > one more bug report on 2.6.26.2. It looks like .25 is affected as well > are both suffering from it. Sigh, I was hoping that this wasn't seen on anything later than 2.6.24. Any chance it can be bisected? Since this is an overnight

Re: [uml-devel] Bug#494995: user-mode-linux: static build fails with multiple definition of `strrchr'

2008-08-26 Thread Jeff Dike
On Tue, Aug 19, 2008 at 08:47:04PM +0900, Mattia Dongili wrote: > In short statically linking the uml kernel fails with the error below. > Any idea what may be wrong? A symbol clash between libc and the kernel. Try this: Index: linux-2.6.22/arch/um/Makefile =

Re: [uml-devel] FP registers corruption

2008-08-26 Thread Jeff Dike
On Tue, Aug 26, 2008 at 08:07:20PM +0200, Stanislav Meduna wrote: > My host is current Ubuntu and I was unable to test 2.6.25.x > there due to > Locating the top of the address space ... Address 0x0 no good? > which AFAIK was a known problem caused by some ubuntu-specific > patch. You can work a

Re: [uml-devel] Error starting uml

2008-08-26 Thread Jeff Dike
On Tue, Aug 12, 2008 at 01:02:39PM -0300, Roberto Alcântara wrote: > Yes, my gcc version is 4.2.3 and I will do what you say. This patch is in 2.6.26.2 now, so use that if you don't feel like patching 2.6.26. Jeff -- Work email - jdike at linux dot intel dot com

Re: [uml-devel] FP registers corruption

2008-08-26 Thread Jeff Dike
On Tue, Aug 26, 2008 at 09:20:56AM +0200, Stanislav Meduna wrote: > I tried to isolate the exact version, but I was not able > to compile/run all the UML versions in my test environment > (current Ubuntu) - obviously the UML is quite sensitive > to the host kernel as well. It's not. Any 2.6 UML s

Re: [uml-devel] [RFC PATCH] uml: fix double statement if missing braces

2008-08-26 Thread Jeff Dike
On Tue, Aug 19, 2008 at 09:09:16AM +0300, Ilpo Järvinen wrote: > ...I'm not fully sure what's the intention here, ie., whether > the return belongs to a block with the assignment or not. Yes, this is confused, although it just happens to compile to something sane. Your patch is fine, but I think

Re: [uml-devel] FP registers corruption

2008-08-25 Thread Jeff Dike
On Fri, Aug 08, 2008 at 02:35:39PM +0200, Stanislav Meduna wrote: > Erm.. after debugging the FP corruption for several hours > trying to isolate the cause I stumbled upon a patch from > Jeff Dike from February: > > http://article.gmane.org/gmane.linux.uml.devel/11412 > > D

Re: [uml-devel] kernel module support broken on x86-64?

2008-08-25 Thread Jeff Dike
On Thu, Aug 07, 2008 at 07:00:53PM +0300, Boaz Harrosh wrote: > Jeff: Is this queued for 2.6.26-stable ? I sent it in before I went on vacation, and it should be in -stable by now. Jeff -- Work email - jdike at linux dot intel dot com -

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

2008-08-05 Thread Jeff Dike
>From 3d5ede6f776bdb1483bcd086f79c3bf41fed3865 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 Morton &l

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

2008-08-05 Thread Jeff Dike
>From 8bfd04b974689f700bbd053ad6e66b0a95fb80c9 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: Andrew

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

2008-08-05 Thread Jeff Dike
<[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/kernel/um_arch.c |5 - 1 files changed, 4 insertions

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

2008-08-05 Thread Jeff Dike
>From b6d8adf477439e7086224bc9674c6b6638780783 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 P

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

2008-08-05 Thread Jeff Dike
is results in an early boot crash when ptrace tries to initialize a process with an empty, uninitialized register set. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/include/init.h |8 1 files changed, 8 i

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

2008-08-05 Thread Jeff Dike
>From f1ef9167ca4494a8c6d71d0031c73e9c8841eadd 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 PROTECTED]>

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

2008-08-05 Thread Jeff Dike
lob. So, the uml_kmalloc wrapper is back. It calls kmalloc or whatever that translates into, and libc code calls it. kfree is left alone since that still works, leaving a somewhat inconsistent API. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <[EMAIL PROTECTED]> Signed-o

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

2008-08-05 Thread Jeff Dike
Here's my 2.6.25 patchset again. I've rebased against 2.6.25.14 and included the correct commit ids this time. Jeff -- Work email - jdike at linux dot intel dot com - This SF.Net email is sp

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

2008-08-05 Thread Jeff Dike
>From 296cd66f7f6e130fe08e6880ecb13c3fc615a8db 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

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

2008-08-05 Thread Jeff Dike
ame to reflect that this function is supposed to return the top of the process address space, not its size and changed the return value to reflect that. Also some minor formatting changes] Signed-off-by: Tom Spink <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Si

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

2008-08-05 Thread Jeff Dike
>From 3e3b48e5198544dd90e27265a70c1a834139e025 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 --git a/arch/um/sys-x86_64

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

2008-08-05 Thread Jeff Dike
[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/os-Linux/time.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/arch/um/os-L

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

2008-08-05 Thread Jeff Dike
d to the timekeeping system. Cc: Nix <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/include/process.h |4 +- arch/um/os-Linux/signal.c |

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

2008-08-05 Thread Jeff Dike
;= 4.0, bringing back the possibility of Uli's crash. If that happens, we'll debug it. I started seeing both the internal compiler errors and unresolved inlines on Fedora 9. This patch fixes both problems, without so far reintroducing the crash reported by Uli. Signed-off-by: J

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

2008-08-05 Thread Jeff Dike
ing that gives you 0 and time is stopped. This is fixed by switching to a microsecond clock, with a multiplier of 1000. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <

Re: [uml-devel] kernel module support broken on x86-64?

2008-08-05 Thread Jeff Dike
On Tue, Aug 05, 2008 at 06:37:18PM +0200, [EMAIL PROTECTED] wrote: > I'm glad to here that the bug has been fixed. Anyway, it does not work > with my configuration: > > - CentOS 5.1 as host system and UML root fs > - Kernel 2.6.25.4 (vanilla, but config taken from the CentOS kernel) > - GCC 4.1.2

Re: [uml-devel] sysconf(_SC_NPROCESSORS_CONF) returning zero

2008-08-04 Thread Jeff Dike
On Mon, Aug 04, 2008 at 10:59:36PM +0200, Stanislav Meduna wrote: > Hmmm... so I have cpu0 similar to yours. What version > of UML and libc do you have? UML 2.6.26 and an older libc: % ls -l /lib/libc.so.6 lrwxrwxrwx 1 root root 11 Jun 2 2007 /lib/libc.so.6 -> libc-2.5.so Looking through libc

Re: [uml-devel] sysconf(_SC_NPROCESSORS_CONF) returning zero

2008-08-04 Thread Jeff Dike
On Mon, Aug 04, 2008 at 03:58:04PM +0200, Stanislav Meduna wrote: > Hi, > > the following program > > === > #include > #include > > main() > { >printf("Number of processors: %d\n", sysconf(_SC_NPROCESSORS_CONF)); > } > === > > produces > >Number of processors: 0 > > on my system. W

Re: [uml-devel] ALSA and host audio relay in UML

2008-08-04 Thread Jeff Dike
On Mon, Jul 28, 2008 at 04:31:06PM +0200, Luca Saiu wrote: > That feature works very well, but as far as I can understand from the > source and from my tests, it's limited to OSS. The host audio driver just uses the host's /dev/sound/dsp and /dev/sound/mixer. Are these OSS-specific? If so, and

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

2008-08-04 Thread Jeff Dike
On Sat, Aug 02, 2008 at 02:54:08PM +0900, Mattia Dongili wrote: > FWIW I can't reproduce this on 2.6.26. Thanks for letting me know. Too bad it's still a mystery though. Jeff -- Work email - jdike at linux dot intel dot com ---

Re: [uml-devel] /dev/random problems _not_ solved in 2.6.26

2008-08-04 Thread Jeff Dike
On Mon, Aug 04, 2008 at 02:40:01PM +0200, Stanislav Meduna wrote: > this is just to let you know that the /dev/random problems > are still not solved in the 2.6.26 version. A small dictionary > attack on sshd (in my case 260 tries over 12 minutes) > are able to produce > > auth.log.0:Aug 3 05:30:

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 al

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

2008-08-01 Thread Jeff Dike
. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: Benny Halevy <[EMAIL PROTECTED]> Cc: Adrian Bunk <[EMAIL PROTECTED]> Cc: Ingo Molnar <[EMAIL PROTECTED]> Cc: Ulrich Drepper <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/Make

[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:

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

2008-08-01 Thread Jeff Dike
up. Cc: Nix <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/os-Linux/time.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) d

[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/pca

[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
e number of ticks delivered to the timekeeping system. Cc: Nix <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/include/process.h |4 +-

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

2008-08-01 Thread Jeff Dike
throwing out initcalls. This results in an early boot crash when ptrace tries to initialize a process with an empty, uninitialized register set. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/include/init.h |8 +++

[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
Christopher S. Aker" <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- arch/um/kernel/um_arch.c |5 - 1 file

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

2008-08-01 Thread Jeff Dike
it doesn't work with slob. So, the uml_kmalloc wrapper is back. It calls kmalloc or whatever that translates into, and libc code calls it. kfree is left alone since that still works, leaving a somewhat inconsistent API. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <

[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

[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

[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]>

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

2008-08-01 Thread Jeff Dike
MAIL PROTECTED]: changed the name to reflect that this function is supposed to return the top of the process address space, not its size and changed the return value to reflect that. Also some minor formatting changes] Signed-off-by: Tom Spink <[EMAIL PROTECTED]> Signed-off-by: Jeff Dike <[EMAIL

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

2008-08-01 Thread Jeff Dike
r, which is 1. Decrementing that gives you 0 and time is stopped. This is fixed by switching to a microsecond clock, with a multiplier of 1000. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> Cc: WANG Cong <[EMAIL PROTECTED]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Sig

Re: [uml-devel] [PATCH] UML - Fix boot crash

2008-07-23 Thread Jeff Dike
On Wed, Jul 23, 2008 at 12:59:25PM -0700, Andrew Morton wrote: > Needed in 2.6.26.x, but also applies to 2.6.25. Is it also needed in > 2.6.25.x? ... and just to be clear, I mean I think it's not exactly 2.6.25.x material. It is definite 2.26.6.x material. Jeff -- Wo

Re: [uml-devel] [PATCH] UML - Fix boot crash

2008-07-23 Thread Jeff Dike
On Wed, Jul 23, 2008 at 12:59:25PM -0700, Andrew Morton wrote: > Needed in 2.6.26.x, but also applies to 2.6.25. Is it also needed in > 2.6.25.x? It does apply nicely, but I think it's not needed for -stable. AIUI, -stable is for actual, realized bugs, and this one is more latent, being enabled

Re: [uml-devel] [PATCH] Fix for 2.6.26 ptrace crash

2008-07-23 Thread Jeff Dike
On Tue, Jul 22, 2008 at 11:27:13AM +0300, Boaz Harrosh wrote: > I'm not sure I fully understand. Could you please explain what you > found. arch/um/include/init.h copies enough definitions from linux/compiler.h and linux/init.h to implement initcall and exitcall et al. It can't include the kernel

[uml-devel] [PATCH] UML - Fix boot crash

2008-07-23 Thread Jeff Dike
e tries to initialize a process with an empty, uninitialized register set. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/init.h |8 1 file changed, 8 insertions(+) Index: linux-2.6.22/arch/u

Re: [uml-devel] [Patch] uml: fix another build error

2008-07-23 Thread Jeff Dike
On Tue, Jul 22, 2008 at 06:41:52PM +0100, WANG Cong wrote: > > Fixed this error: > > CC arch/um/drivers/vde_user.o > /home/wangcong/Projects/linux-2.6/arch/um/drivers/vde_user.c: In > function ‘vde_init_libstuff’: > /home/wangcong/Projects/linux-2.6/arch/um/drivers/vde_user.c:81: > error

[uml-devel] [PATCH] Fix for 2.6.26 ptrace crash

2008-07-21 Thread Jeff Dike
I believe I figured out the ptrace crash that showed up with 2.6.26, thanks to Toralf Förster. The patch is below. I have one confirmation that this fixes the problem - I'd like a few more just to be sure. Jeff -- Work email - jdike at linux dot intel dot com Index: li

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

2008-07-20 Thread Jeff Dike
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 booting uml 2.6.25 built with gcc-4.3 on a 2.6.25 > host (I also applied your ICE workaround patch). Hmmm, get a stack trace from it and let

Re: [uml-devel] Kernel panic - not syncing: do_syscall_stub : PTRACE_SETREGS failed, errno = 5

2008-07-20 Thread Jeff Dike
On Sun, Jul 20, 2008 at 05:15:16PM +0800, Peter Teoh wrote: > And ptrace_setregs() calling ptrace() seemed to returned -errno almost > immediately: > > (gdb) s > ptrace_setregs (pid=19131, regs=0x820aae0) at > /mnt/hd0/download/linux-2.6-latest/arch/um/sys-i386/ptrace_user.c:18 > 18 i

Re: [uml-devel] Kernel panic - not syncing: do_syscall_stub : PTRACE_SETREGS failed, errno = 5

2008-07-18 Thread Jeff Dike
On Sat, Jul 19, 2008 at 03:22:58AM +0800, Peter Teoh wrote: > Next I checkout the 2.6.26 branch (current master), and generated a > UML guest for it. Now the guest have the same version as the host - > 2.6.26. But bootup with errors: > > EXT3-fs: mounted filesystem with ordered data mode. > VFS

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

2008-07-18 Thread Jeff Dike
On Thu, Jul 17, 2008 at 12:55:09PM +0800, Jiaying Zhang wrote: > The patch below solves the 2.6.25 uml crash problem for me. Looks like the > problem should be away in 2.6.26 kernel because down_interruptible has > changed to the C code since 2.6.26. But I got kernel panic while booting > the 2.6.2

Re: [uml-devel] [PATCH] fix extern inline errors with gcc 4.3.0

2008-07-18 Thread Jeff Dike
On Wed, Jul 16, 2008 at 02:55:31PM +0300, Boaz Harrosh wrote: > BTW I use gcc 4.1 on FC7 and all is fine, but I have an x86_64 machine, > is this problem i386 only? It's been seen on both i386 and x86_64. Initially, it was x86_64. I couldn't reproduce it here despite having the same environment

Re: [uml-devel] [PATCH] fix extern inline errors with gcc 4.3.0

2008-07-15 Thread Jeff Dike
On Tue, Jul 15, 2008 at 11:42:05AM -0700, David Shane Holden wrote: > Jeff Dike wrote: > > On Mon, Jul 14, 2008 at 11:30:15AM -0700, David Shane Holden wrote: > >> I tried to build a UML 2.6.26 kernel on Debian (32-bit) and ran into the > >> same problem report

Re: [uml-devel] Build Errors

2008-07-15 Thread Jeff Dike
On Fri, Jul 11, 2008 at 02:53:09AM -0500, Stoyan Gaydarov wrote: > If I did these builds wrong then do let me know what I can > do to fix them and re-run them so that I can provide some useful > information in the future. There's not a lot of point to tarring up 17 logs when there are only four d

Re: [uml-devel] [PATCH] fix extern inline errors with gcc 4.3.0

2008-07-15 Thread Jeff Dike
On Mon, Jul 14, 2008 at 11:30:15AM -0700, David Shane Holden wrote: > I tried to build a UML 2.6.26 kernel on Debian (32-bit) and ran into the > same problem reported here http://marc.info/?t=12101153352&r=1&w=2. It's really 2.6.26, and not something from a day or two earlier? I fixed the c

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

2008-07-14 Thread Jeff Dike
On Mon, Jul 14, 2008 at 05:06:49PM +0800, Jiaying Zhang wrote: > The 2.6.24 kernels are OK, but I have seen this problem with all of the > 2.6.25 kernels I have tried. There have been a lot of changes between > 2.6.24 kernels and 2.6.25 kernels. I am not sure which one may lead > to this problem.

Re: [uml-devel] UML kernel failed to start betvee 2.6.8-rc8 and current git sources

2008-07-10 Thread Jeff Dike
On Thu, Jul 10, 2008 at 08:09:59PM +0200, Toralf Förster wrote: > At Thursday 10 July 2008 18:35:15 Jeff Dike wrote : > > > What's the host? > > [EMAIL PROTECTED] ~ $ uname -a > Linux n22 2.6.25-gentoo-r6 #4 Thu Jul 10 19:49:36 CEST 2008 i686 Intel(R) > P

  1   2   3   4   5   6   7   8   9   10   >