Re: [uml-user] Configure UML to generate core file

2013-09-22 Thread richard -rw- weinberger
On Fri, Sep 13, 2013 at 7:33 AM, madhusudan r wrote: > Hi, > > The UML I run on Ubuntu crashes occasionally, but does not generate any core > file. I'd like to know the necessary configuration to be applied on UML so > it generates a core when it crashes. Also, additional configuration which > wil

Re: [uml-user] tsc.c in UML

2013-08-24 Thread richard -rw- weinberger
On Fri, Aug 23, 2013 at 8:35 PM, Han wrote: > Hi, > > I am using Linux kernel 2.6.27 for building UML kernel. It seems like > "arch/x86/kernel/tsc.c" is not built in and the symbol "cpu_khz" is not > available. > > My question is: what's the reason that "tsc.c" not included in UML? Is > there a

Re: [uml-user] UML build broken since 3.0.75 (also affects 3.2.x)

2013-05-25 Thread richard -rw- weinberger
On Sat, May 25, 2013 at 2:18 PM, Greg KH wrote: > On Sat, May 25, 2013 at 05:55:22PM +0700, Antoine Martin wrote: >> Linus' vm patches broke the UML build in 3.0.75 onwards: >> >> CC mm/memory.o >> mm/memory.c: In function ‘vm_iomap_memory’: >> mm/memory.c:2363:2: error: implicit declaratio

Re: [uml-user] [info] syscalls mmap and mremap no longer fails w/ SLUB

2013-05-12 Thread richard -rw- weinberger
On Tue, May 7, 2013 at 7:19 PM, Toralf Förster wrote: > Since today both syscalls seems to work fine with SLUB and guest kernel > linux-v3.9-10998-g1b9b170 at a stable Getnoo 32 bit, now just these 4 > are still forcing kernel bugs if stressed with trinity : > > -x mount -x request_key -x add_key

Re: [uml-user] WARNING: at mm/slab_common.c:376 kmalloc_slab+0x33/0x80()

2013-05-11 Thread richard -rw- weinberger
On Fri, May 10, 2013 at 11:52 PM, Toralf Förster wrote: > The bisected commit introduced this WARNING: on a user mode linux guest > if the UML guest is fuzz tested with trinity : > > > 2013-05-10T22:38:42.191+02:00 trinity kernel: [ cut here > ] > 2013-05-10T22:38:42.191+0

Re: [uml-user] trinity triggers (a different ?) madvise syscall issue: "BUG: Bad page map" and "BUG: Bad rss-counter"

2013-04-14 Thread richard -rw- weinberger
On Sun, Apr 14, 2013 at 3:09 PM, Toralf Förster wrote: > The following issue at a guest kernel using current v3.9-rc6-186-g5b55d70 > guest kernel > and 3.8.7 host kernel (both 32 bit Gentoo Linux) can repeatable be triggered: > > > 2013-04-14T15:04:00.366+02:00 trinity kernel: BUG: Bad page map i

Re: [uml-user] build error with latest git kernel for a user mode linux build

2013-04-12 Thread richard -rw- weinberger
On Fri, Apr 12, 2013 at 7:51 PM, Toralf Förster wrote: > On 04/12/2013 07:41 PM, richard -rw- weinberger wrote: >> You .config build perfectly fine here. >> Have you tried a "make mrproper"? > ick - I forgot to un-apply your patch you sent to me related to the &

Re: [uml-user] build error with latest git kernel for a user mode linux build

2013-04-12 Thread richard -rw- weinberger
On Fri, Apr 12, 2013 at 7:26 PM, Toralf Förster wrote: > On 04/12/2013 05:00 PM, richard -rw- weinberger wrote: >> Did you specify ARCH=um and SUBARCH=? > Only ARCH=um, but the full line give the same : > > $ make ARCH=um SUBARCH=x86 > scripts/kconfig/conf --silentoldconfi

Re: [uml-user] build error with latest git kernel for a user mode linux build

2013-04-12 Thread richard -rw- weinberger
On Fri, Apr 12, 2013 at 4:52 PM, Toralf Förster wrote: > I get : > .. > CC kernel/bounds.s > GEN include/generated/bounds.h > CC arch/um/kernel/asm-offsets.s > In file included from > /home/tfoerste/devel/linux/arch/um/include/asm/mman.h:5:0, > from > /home/t

Re: [uml-user] user mode linux: trinity syscall "madvise" triggers quickly BUG: Bad page map

2013-04-06 Thread richard -rw- weinberger
On Sat, Apr 6, 2013 at 2:55 PM, Toralf Förster wrote: > On 04/06/2013 02:47 PM, Toralf Förster wrote: >> On 04/06/2013 01:43 PM, richard -rw- weinberger wrote: >>>> What I get with the this trinity command line >>>> >>>> gt; trinity --children 2 -c ma

Re: [uml-user] user mode linux: trinity syscall "madvise" triggers quickly BUG: Bad page map

2013-04-06 Thread richard -rw- weinberger
On Thu, Apr 4, 2013 at 7:04 PM, Toralf Förster wrote: > > if SLUB is used (SLAB works fine till now with this syscall). > > What I get with the this trinity command line > > gt; trinity --children 2 -c madvise Does the attached patch fix the problem? -- Thanks, //richard stub_pte_fix.diff Desc

Re: [uml-user] user mode linux: trinity syscall "madvise" triggers quickly BUG: Bad page map

2013-04-04 Thread richard -rw- weinberger
>> 2013-04-04T19:00:29.220+02:00 trinity kernel: BUG: Bad page map in process trinity-child1 pte:0032d045 pmd:3932e1e1 >> 2013-04-04T19:00:29.220+02:00 trinity kernel: page:0a73f5a0 count:1 mapcount:-1 mapping: (null) index:0x0 >> 2013-04-04T19:00:29.220+02:00 trinity kernel: page flags: 0x404(re

Re: [uml-user] user mode linux: trinity syscall "madvise" triggers quickly BUG: Bad page map

2013-04-04 Thread richard -rw- weinberger
On Thu, Apr 4, 2013 at 7:04 PM, Toralf Förster wrote: > if SLUB is used (SLAB works fine till now with this syscall). > > What I get with the this trinity command line > > $> trinity --children 2 -c madvise > > 2013-04-04T19:00:29.220+02:00 trinity kernel: BUG: Bad page map in process > trinity-ch

Re: [uml-user] linux-v3.9-rc3: BUG: Bad page map in process trinity-child6 pte:002f9045 pmd:29e421e1

2013-03-27 Thread richard -rw- weinberger
On Wed, Mar 27, 2013 at 12:03 AM, Hugh Dickins wrote: > On Tue, 26 Mar 2013, Toralf Foerster wrote: >> On 03/25/2013 11:53 PM, Andrew Morton wrote: >> > On Fri, 22 Mar 2013 18:28:36 +0100 Toralf Foerster >> > wrote: >> > >> >> > Using trinity I often trigger under a user mode linux image with ho

Re: [uml-user] kmalloc returns NULL during module init

2013-03-15 Thread richard -rw- weinberger
On Fri, Mar 15, 2013 at 6:01 PM, Han wrote: > I started UML with "mem=128M", the module init only kmalloc 8 bytes: > > kmalloc(size, GFP_KERNEL); > > where "size" is 8. This has to work. Just in case, please retry with a more recent kernel. -- Thanks, //richard ---

Re: [uml-user] kmalloc returns NULL during module init

2013-03-15 Thread richard -rw- weinberger
On Fri, Mar 15, 2013 at 5:38 PM, Han wrote: > On Fri, Mar 15, 2013 at 1:35 AM, richard -rw- weinberger > wrote: >> On Fri, Mar 15, 2013 at 5:39 AM, Han wrote: >>> Hi, >>> >>> I am trying to build and to install a kernel module into UML. The UML >>&g

Re: [uml-user] kmalloc returns NULL during module init

2013-03-15 Thread richard -rw- weinberger
On Fri, Mar 15, 2013 at 5:39 AM, Han wrote: > Hi, > > I am trying to build and to install a kernel module into UML. The UML > kernel is built from linux 2.6.2, 32-bit i386. The rootfs is > Debian-Squeeze-x86-root_fs. I was able to build the kernel module > successful. But when I tried to insmo

Re: [uml-user] SLUB + UML : WARNING: at mm/page_alloc.c:2386

2013-03-14 Thread richard -rw- weinberger
On Thu, Mar 14, 2013 at 10:24 PM, Toralf Förster wrote: > On 03/14/2013 10:21 PM, Dave Jones wrote: >> hah, strndup_user taking a signed long instead of a size_t as it's length >> arg. >> >> either it needs to change, or it needs an explicit check for < 1 >> >> I wonder how many other paths make

Re: [uml-user] SLAB + UML : WARNING: at mm/page_alloc.c:2386

2013-03-14 Thread richard -rw- weinberger
On Thu, Mar 14, 2013 at 8:07 PM, Toralf Förster wrote: > The following WARNING: can be triggered sometimes with trinity [1] under a > user mode linux image > using the SLUB allocator (and not with SLAB) > > > 2013-03-14T19:09:51.071+01:00 trinity kernel: [ cut here > ] >

Re: [uml-user] SLAB + UML : WARNING: at mm/page_alloc.c:2386

2013-03-14 Thread richard -rw- weinberger
On Thu, Mar 14, 2013 at 8:07 PM, Toralf Förster wrote: > The following WARNING: can be triggered sometimes with trinity [1] under a > user mode linux image > using the SLUB allocator (and not with SLAB) > > > 2013-03-14T19:09:51.071+01:00 trinity kernel: [ cut here > ] >

Re: [uml-user] WARNING: at mm/page_alloc.c:2386 __alloc_pages_nodemask+0x153/0x750()

2013-03-13 Thread richard -rw- weinberger
On Tue, Mar 12, 2013 at 9:59 PM, Toralf Förster wrote: > While trying trinity under a UML I often run into this situation : > > > 2013-03-12T21:54:41.934+01:00 trinity kernel: [ cut here > ] > 2013-03-12T21:54:41.934+01:00 trinity kernel: WARNING: at > mm/page_alloc.c:238

Re: [uml-user] does running trinity within a user mode linux makes sense

2013-03-11 Thread richard -rw- weinberger
On Mon, Mar 11, 2013 at 11:17 PM, Dave Jones wrote: > ah, cool. For some reason I thought there were some uml specific extensions. In UML you run your regular x86 binary. UML uses ptraces() to trap all systemcalls and instead of entering kernel mode you enter the UML kernel... -- Thanks, //ric

Re: [uml-user] does running trinity within a user mode linux makes sense

2013-03-11 Thread richard -rw- weinberger
On Mon, Mar 11, 2013 at 7:01 PM, Toralf Förster wrote: > On 03/10/2013 10:41 PM, Dave Jones wrote: >> On Sun, Mar 10, 2013 at 10:25:01PM +0100, Toralf Förster wrote: >> > ? >> >> It would need to be ported due to the different syscall table. >> I wrote aobut this being fairly easy recently: >> ht

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-11 Thread richard -rw- weinberger
On Thu, Mar 7, 2013 at 6:28 PM, Toralf Förster wrote: > 2013-03-07T18:23:59.185+01:00 n22stab4 kernel: WARNING: at > drivers/tty/tty_buffer.c:428 flush_to_ldisc+0x51/0x190() > 2013-03-07T18:23:59.185+01:00 n22stab4 kernel: tty is NULL > 2013-03-07T18:23:59.185+01:00 n22stab4 kernel: 3979fea0: [<

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-08 Thread richard -rw- weinberger
On Thu, Mar 7, 2013 at 6:28 PM, Toralf Förster wrote: > On 03/07/2013 05:34 PM, richard -rw- weinberger wrote: >> So, xterm is broken in 3.9-rc1? >> Please bisect it. >> > Cannot be reproduced under host kernel 3.7.10, and host kernel 3.8.2 suffers > from a complete han

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-07 Thread richard -rw- weinberger
On Thu, Mar 7, 2013 at 5:11 PM, Toralf Förster wrote: >> issue is fixed here too - thx. > > FWIW something like "con=pts con0=fd:0,fd:1" is now mandatory, > otherwise an xterm is open and user root can login, but I experienced > strange things with my Gentoo : So, xterm is broken in 3.9-rc1? Plea

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-06 Thread richard -rw- weinberger
On Wed, Mar 6, 2013 at 7:24 PM, richard -rw- weinberger wrote: > On Wed, Mar 6, 2013 at 7:10 PM, Toralf Förster wrote: >> On 03/06/2013 12:32 AM, richard -rw- weinberger wrote: >>> What is your console? I suspect it is not stdio_console. >> >> I tried both with &q

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-06 Thread richard -rw- weinberger
On Wed, Mar 6, 2013 at 7:10 PM, Toralf Förster wrote: > On 03/06/2013 12:32 AM, richard -rw- weinberger wrote: >> What is your console? I suspect it is not stdio_console. > > I tried both with "con=pts con0=fd:0,fd:1" as well as without specifying > console/tty at the

Re: [uml-user] Not possible to insmod kernel modules when MEM > 450MB

2013-03-06 Thread richard -rw- weinberger
On Wed, Jan 23, 2013 at 4:11 PM, Lars-Göran Nordh wrote: > Hello, > > I have built a couple of kernel modules and successfully loaded them using > modprobe. > Since I needed more memory i changed MEM=1024MB to the kernel start line. > The module that earlier was loaded without any problem now give

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-05 Thread richard -rw- weinberger
On Tue, Mar 5, 2013 at 6:57 PM, Toralf Förster wrote: > On 03/05/2013 06:30 PM, richard -rw- weinberger wrote: >> On Tue, Mar 5, 2013 at 4:33 PM, Toralf Förster >> wrote: >>> On 03/05/2013 01:51 AM, Pierluigi Rolando wrote: >>>> I think what's going

Re: [uml-user] resizing a KDE Konsole let a UML instance crash

2013-03-05 Thread richard -rw- weinberger
On Tue, Mar 5, 2013 at 4:33 PM, Toralf Förster wrote: > On 03/05/2013 01:51 AM, Pierluigi Rolando wrote: >> I think what's going on >> here is that UML gets a signal it can't handle when you resize. > > Yes - something _is_ wrong with the signal handling, but my command line > looks not suspicou

Re: [uml-user] v3.8-6988-g9e2d59a compile error

2013-02-24 Thread richard -rw- weinberger
On Sun, Feb 24, 2013 at 12:03 PM, Toralf Förster wrote: > Moin, > > got this wit the attached .config : > > ... > CC kernel/mutex.o > CC kernel/hrtimer.o > kernel/mutex.c:34:37: error: include/asm-generic/mutex-null.h: Input/output > error The compiler got -EIO while opening includ

Re: [uml-user] Recent SKAS3 patches

2012-10-29 Thread richard -rw- weinberger
On Mon, Oct 29, 2012 at 11:22 AM, Stelios M. wrote: > Hello Richard. > > SKAS0 has the same performance as SKAS3 as well? Mostly. SASK0 has no support for /proc/mm. -- Thanks, //richard -- The Windows 8 Center - In par

Re: [uml-user] Recent SKAS3 patches

2012-10-29 Thread richard -rw- weinberger
On Mon, Oct 29, 2012 at 11:12 AM, Stelios M. wrote: > Hello all. > > I'm trying to locate recent version on SKAS3 patches. > Is the SKAS3 functionality integrated into the mainline as SKAS0? Yes. SKAS0 does mostly what SKAS3 did without the need of a patched host kernel. -- Thanks, //richard -

Re: [uml-user] RFC: CONFIG_LBDAF should be auto-selected if EXT4 is choosed in Kconfig

2012-10-26 Thread richard -rw- weinberger
On Fri, Oct 26, 2012 at 3:56 PM, Toralf Förster wrote: > otherwise booting an EXT4 image won't work b/c the root fs can't be > mounted read-write - and as a side effect no syslog messages points the > user to this issue (at least in my setup) ... > :-/ Why is this an UML issue? -- Thanks, //ric

Re: [uml-user] current git UML crashes (git 4d7127d)

2012-10-14 Thread richard -rw- weinberger
On Sun, Oct 14, 2012 at 6:25 PM, Toralf Förster wrote: > On 10/13/2012 09:42 PM, richard -rw- weinberger wrote: >> If UML is looping, no. >> Sorry. >> > Now I got a crash. Running this command at the host: > > $ for i in $(seq 1 1000); do echo -en "$i\r"; f

Re: [uml-user] current git UML crashes (git 4d7127d)

2012-10-13 Thread richard -rw- weinberger
On Sat, Oct 13, 2012 at 9:08 PM, Toralf Förster wrote: > The following data I gathered from a UML process running at 100% COU of 1 > core : > Is something of those data are helpful ? If UML is looping, no. Sorry. -- Thanks, //richard ---

Re: [uml-user] UML compile error in current git kernel

2012-10-12 Thread richard -rw- weinberger
On Fri, Oct 12, 2012 at 8:58 PM, Toralf Förster wrote: > Hi, > > $ make ARCH=um -j1 > CHK include/generated/uapi/linux/version.h > make[3]: Nothing to be done for `all'. > make[1]: `arch/x86/um/user-offsets.s' is up to date. > CHK include/generated/utsrelease.h > CALLscripts/chec

Re: [uml-user] v3.6-rc7-121-g8110e16 still segfaults with apache

2012-09-30 Thread richard -rw- weinberger
On Sun, Sep 30, 2012 at 8:17 PM, Toralf Förster wrote: > This is either related to mysql (phpmyadmin) or purely to apache. > > the .config is attached, the console gives : Was this regression (is it a regression?) introduced in -rc7? -- Thanks, //richard ---

Re: [uml-user] apache2 won't start with v3.6-rc5 (kernel v3.5 works fine)

2012-09-09 Thread richard -rw- weinberger
On Sun, Sep 9, 2012 at 12:01 PM, Toralf Förster wrote: > Hi, > > with current git tree 3.6-rc5 I cannot longer start apache2 at a > UML image with an unstable Gentoo Linux. > > The apache error log gives : > > [Sun Sep 09 11:53:25.225818 2012] [core:emerg] [pid 1054:tid 1078662848] > (22)Invalid a

Re: [uml-user] SMP on UML

2012-08-25 Thread richard -rw- weinberger
On Fri, Aug 24, 2012 at 6:19 PM, Dragos Diaconescu wrote: > Hello, > > I try to compile the UML, from a linux kernel(make ARCH=um SUBARCH=i386) > and I have configured it to use SMP (make config). I am getting the > following error: > > CHK include/generated/utsrelease.h > CC arch/um/

Re: [uml-user] TSC register

2012-08-24 Thread richard -rw- weinberger
On Fri, Aug 24, 2012 at 5:09 PM, Dragos Diaconescu wrote: > Can you please > give me some directions? Shall I implement in the same manner as is > implemented in > /arch/x86/lib/delay.c . What are the big differences between this > implementation and in an implementation > for UML? If you a

Re: [uml-user] TSC register

2012-08-23 Thread richard -rw- weinberger
On Wed, Aug 22, 2012 at 6:34 PM, Dragos Diaconescu wrote: >at an interval of some nanoseconds and to use the ndelay function. I saw > that in the kernel implementation >for the uml there is no "delay_tsc" >function and there is only the "delay_loop" function. I am wondering why > the d

Re: [uml-user] TSC register

2012-08-22 Thread richard -rw- weinberger
On Wed, Aug 22, 2012 at 3:23 PM, Dragos Diaconescu wrote: > On an ubuntu kernel I used a busy waiting, with ndelay function which uses > the TSC register, but > I have noticed that this register cannot be read from an UML. Please provide a test case. -- Thanks, //richard -

Re: [uml-user] Receive segv when creating unix domain socket on hostfs mounted directory

2012-08-21 Thread richard -rw- weinberger
Hi! On Tue, Aug 21, 2012 at 5:15 PM, 张东亚 wrote: > Hi, > I am running linux 3.4 uml,it works quite well, however recently I > want to running openvswitch on the uml instance,I will got an segv > fault. What segfaulted? The UML kernel or some user space application? > I set a breadpoint in th

Re: [uml-user] linxu kernel 3.5 - first experience

2012-07-22 Thread richard -rw- weinberger
On Sun, Jul 22, 2012 at 2:06 PM, Toralf Förster wrote: > On 07/22/2012 01:18 PM, richard -rw- weinberger wrote: > After a given time the system becomes non-reactive. > Neither at the command line (xterm) nor via a network connection the > systems gave any response. > The approp

Re: [uml-user] linxu kernel 3.5 - first experience

2012-07-22 Thread richard -rw- weinberger
Toralf, On Sun, Jul 22, 2012 at 12:42 PM, Toralf Förster wrote: > With Linux n22 3.5.0-rc7+ as a host kernel and 3.5 as guest kernel my > unstable Gentoo system hangs after a while. > The back trace derived from gdb shows : please more details. I've told you many times that we need more than a

Re: [uml-user] John Stultz' leap second check program lets an UML clock jump by few hours

2012-07-10 Thread richard -rw- weinberger
On Tue, Jul 10, 2012 at 2:45 PM, Toralf Förster wrote: > I tested the script of John Stultz (https://lkml.org/lkml/2012/7/1/203) > at a UML of an unstable Gentoo Linux with recent host > kernel linux-v3.5-rc5-98-g9e85a6f > (without his proposed patches) and observed the following time jump of > ro

Re: [uml-user] entropy hole in UML instances too

2012-07-08 Thread richard -rw- weinberger
On Sun, Jul 8, 2012 at 1:21 AM, Paolo Giarrusso wrote: Nice to hear from you Paolo, are you planning to work again on UML? :) > Yep - entropy comes from hardware interrupts, and UML doesn't have > enough such interrupts, as far as I remember; I think interrupts might > be individually marked as

Re: [uml-user] UML is wonderful !!!

2012-07-05 Thread richard -rw- weinberger
On Thu, Jul 5, 2012 at 10:58 PM, Chris Frey wrote: > On Thu, Jul 05, 2012 at 04:38:51PM +0200, richard -rw- weinberger wrote: >> The article describes nothing that is not also doable with KVM these days. >> Anyway, UML is fun and nice to use. :-) > > Doesn't KVM require

Re: [uml-user] UML is wonderful !!!

2012-07-05 Thread richard -rw- weinberger
Hi! On Thu, Jul 5, 2012 at 3:04 PM, James roben wrote: > All, > > I recently read an article in Linux Journal 2012 July issue about UML ( > http://www.linuxjournaldigital.com/linuxjournal/201207?pg=60#pg60 ). I > really came to know the > power of UML. The first thing , i did was to subscrib

Re: [uml-user] sysconf(_SC_NPROCESSORS_CONF) returns incorrect on UML (0)

2012-06-06 Thread richard -rw- weinberger
On Wed, Jun 6, 2012 at 4:15 PM, Lars Ekman G wrote: > > Hello, > > Yes, it works fine; > Okay, I'll queue this patch for -stable. -- Thanks, //richard -- Live Security Virtual Conference Exclusive live event will cover

Re: [uml-user] sysconf(_SC_NPROCESSORS_CONF) returns incorrect on UML (0)

2012-06-06 Thread richard -rw- weinberger
On Wed, Jun 6, 2012 at 1:33 PM, richard -rw- weinberger wrote: > Okay, I have an idea what's going on. > I'll send a patch ASAP. > Does the attached patch solve the problem? -- Thanks, //richard diff --git a/arch/um/Kconfig.common b/arch/um/Kconfig.common index a923483..b

Re: [uml-user] sysconf(_SC_NPROCESSORS_CONF) returns incorrect on UML (0)

2012-06-06 Thread richard -rw- weinberger
On Wed, Jun 6, 2012 at 1:29 PM, Lars Ekman G wrote: > Hello, > > examples/lttng > /lib/libc.so.6 > GNU C Library stable release version 2.11.1 (20100118), by Roland McGrath et > al. > Copyright (C) 2009 Free Software Foundation, Inc. > This is free software; see the source for copying conditions.

Re: [uml-user] sysconf(_SC_NPROCESSORS_CONF) returns incorrect on UML (0)

2012-06-06 Thread richard -rw- weinberger
On Wed, Jun 6, 2012 at 12:56 PM, Lars Ekman G wrote: > I am using UML-kernel; 3.0.26 > > Anyway, this program; > > #include > #include > int main(int argc, char* argv[]) > { >        printf("_SC_NPROCESSORS_CONF = %d\n", sysconf(_SC_NPROCESSORS_CONF)); >        printf("_SC_NPROCESSORS_ONLN = %d\

Re: [uml-user] linux-v3.5-rc1: start of a user mode linux produces a core file

2012-06-03 Thread richard -rw- weinberger
On Sun, Jun 3, 2012 at 11:35 AM, Toralf Förster wrote: > Whenever I start an UML image, I get a core file (nevertheless the UML > starts up fine). > > The gdb back trace is : > > > Core was generated by `/usr/local/bin/linux-v3.5-rc1 earlyprintk > ubda=/home/tfoerste/virtual/uml/gento'. > Program

Re: [uml-user] UML with kernel 2.6.38 does not work a machines running linux kernel 3.1.0

2012-05-27 Thread richard -rw- weinberger
On Sun, May 27, 2012 at 6:54 PM, Avinash Sridharan wrote: > I guess will have to work on porting these modules to 3.1 as well. Why 3.1? Use a recent kernel! > A suggestion, is it possible to mention the version dependancy for UML (for > a given kernel) on the website? There is no version depend

Re: [uml-user] UML with kernel 2.6.38 does not work a machines running linux kernel 3.1.0

2012-05-27 Thread richard -rw- weinberger
So, you're using gcc 4.5. You have to apply the patch below to your UML kernel. Anyway, consider using a recent UML kernel. Or at least one which an active stable tree. commit 534e3adbd22efa327e6ff27cf2d8ebaad8382ecd Author: Richard Weinberger Date: Wed Apr 27 15:26:54 2011 -0700 um: adjus

Re: [uml-user] UML with kernel 2.6.38 does not work a machines running linux kernel 3.1.0

2012-05-27 Thread richard -rw- weinberger
Hi! Running 3.1 x86_64 on top of 3.1 x86_64 works, but 2.6.38 x86_64 on top of 3.1 x86_64 not? Please confirm, so that I can try to produce the issue. However I suspect we have to back port f1c2bb8 (um: implement a x86_64 vDSO). Thanks, //richard ---

Re: [uml-user] UML not shutting down due to "task killall5 blocked for more than 120 seconds"

2012-05-09 Thread richard -rw- weinberger
On Wed, May 9, 2012 at 11:35 AM, Riccardo Murri wrote: > Hello, > > we're having issues with a UML machine that refuses to shut down: the > halt sequence commences and then we get the following kernel error > message and backtrace: > >    Asking all remaining processes to terminate... >    INFO: t

Re: [uml-user] SKAS host patches and wiki

2012-02-15 Thread richard -rw- weinberger
On Wed, Feb 15, 2012 at 9:47 PM, Antoine Martin wrote: > On 01/21/2012 07:14 AM, richard -rw- weinberger wrote: >> On Thu, Jan 19, 2012 at 7:41 PM, Antoine Martin >> wrote: >>> On 01/19/2012 10:01 PM, richard -rw- weinberger wrote: >>>> On Thu, Jan 19,

Re: [uml-user] uml stuck on "Locating the top of the address space"

2012-02-14 Thread richard -rw- weinberger
On Tue, Feb 14, 2012 at 4:08 AM, Joakim Arfvidsson wrote: > To debug, I ran UML in gdb. It segfaulted once during finding the bottom > limit, which is expected I guess. gdb has to ignore UML's SIGSEGV. UML is using it to handle page faults. Type "handle SIGSEGV noprint nostop pass" into gdb. >

Re: [uml-user] SELinux inside a UML

2012-02-13 Thread richard -rw- weinberger
On Mon, Feb 13, 2012 at 10:52 AM, Nicolas Greneche wrote: > Le 11/02/2012 13:03, richard -rw- weinberger a écrit : > >> On Thu, Feb 9, 2012 at 4:11 PM, Nicolas Greneche >>  wrote: >>> >>> Hi, >>> >>> I would like to create a SELinux a

Re: [uml-user] uml stuck on "Locating the top of the address space"

2012-02-12 Thread richard -rw- weinberger
On Mon, Feb 13, 2012 at 12:29 AM, Joakim Arfvidsson wrote: > Yes, the CPU is pegged while this is happening. I've left it for an hour > with no results. > > I looked at that code and couldn't really see a good reason for it to block > forever, except if the address space was so large it took a lon

Re: [uml-user] uml stuck on "Locating the top of the address space"

2012-02-12 Thread richard -rw- weinberger
On Sun, Feb 12, 2012 at 9:23 PM, Joakim Arfvidsson wrote: > It finds the bottom address, but is stuck forever on top address. > > This is all on an Amazon EC2 instance (so it's running within some Xen vm). > Host is running 32 bit RedHat. > > Command line and results: > >> ./kernel32-3.2.5 -v ubda

Re: [uml-user] SELinux inside a UML

2012-02-11 Thread richard -rw- weinberger
On Thu, Feb 9, 2012 at 4:11 PM, Nicolas Greneche wrote: > Hi, > > I would like to create a SELinux aware UML. I compiled a ARCH=um kernel > with SELinux activated. Are you sure? > The UML starts but SELinux seems to be disabled. Libselinux is installed > so I have userspace tools to check selinu

Re: [uml-user] do UML guests need NTP?

2012-02-11 Thread richard -rw- weinberger
On Thu, Feb 9, 2012 at 3:14 PM, Riccardo Murri wrote: > Hello, > > is NTP needed on UML VMs? > > Or does the UML kernel take the time from the host kernel? (so it's > enough if the host runs NTP) > UML takes the timer tick from the host. But it has it's own timekeeping. But I have never used/nee

Re: [uml-user] SKAS host patches and wiki

2012-01-20 Thread richard -rw- weinberger
On Thu, Jan 19, 2012 at 7:41 PM, Antoine Martin wrote: > On 01/19/2012 10:01 PM, richard -rw- weinberger wrote: >> On Thu, Jan 19, 2012 at 3:23 PM, Nick Cripps wrote: >>> I saw this thread: >>> http://sourceforge.net/mailarchive/forum.php?thread_name=CAFLxGvz2w

Re: [uml-user] Running 32bit binaries in a 64bit UML instance

2012-01-20 Thread richard -rw- weinberger
On Sat, Jan 21, 2012 at 12:56 AM, Nick Cripps wrote: > Hi, > When running 'make menuconfig ARCH=uml' there is no 'Executable file > formats / Emulations' menu. I guess this makes sense since I guess > that only binaries that can be run on the host kernel can be run from > UML. Does this mean that

Re: [uml-user] SKAS host patches and wiki

2012-01-19 Thread richard -rw- weinberger
On Thu, Jan 19, 2012 at 5:40 PM, Nick Cripps wrote: > Thanks for the quick reply. What options do I need to have enabled in > the host kernel to support SKAS0? > There is no need to enable SKAS0 in the host kernel. -- Thanks, //richard P.s: Please don't top-post. -

Re: [uml-user] SKAS host patches and wiki

2012-01-19 Thread richard -rw- weinberger
On Thu, Jan 19, 2012 at 3:23 PM, Nick Cripps wrote: > I saw this thread: > http://sourceforge.net/mailarchive/forum.php?thread_name=CAFLxGvz2wdfRtryzJ1t0G11rxzOmhdNEVi6A%3DXS5uLG0PA7VAQ%40mail.gmail.com&forum_name=user-mode-linux-user > which seems to indicate that SKAS3 isn't being maintained but

Re: [uml-user] xterm got kill when i run application in uml, how come ?

2012-01-03 Thread richard -rw- weinberger
On Tue, Jan 3, 2012 at 6:01 PM, ning ji wrote: > Starting system logger: [  OK  ] > Retrigger failed udev events[  OK  ] > [  156.81] helper_wait : waitpid process 13447 failed, errno = 10 > [  156.81] * modprobe tun > [  156.81] * ifconfig tap4 10.38.145.169 netmask 255.255.255.255 up

Re: [uml-user] xterm got kill when i run application in uml, how come ?

2011-12-24 Thread richard -rw- weinberger
On Sat, Dec 24, 2011 at 4:42 AM, ning ji wrote: > I left the error message in the company, but briefly the TAP devices have > issues. Without the exact message nobody can help you. > So far this project turns out to be a mess and i'm praying they won't fire > me. > If UML is the root cause of y

Re: [uml-user] impact on erlang?

2011-12-13 Thread richard -rw- weinberger
On Tue, Dec 13, 2011 at 8:21 PM, Matthias Rieber wrote: > Hi, > > Am 13.12.2011 16:13, schrieb richard -rw- weinberger: > >> I'll try that. What should I grep for in the strace log? >> >> For anything which can cause your problem. >> E.g. Failing system c

Re: [uml-user] impact on erlang?

2011-12-13 Thread richard -rw- weinberger
On Tue, Dec 13, 2011 at 2:55 PM, Matthias Rieber wrote: > Hello, > > On 13.12.2011 13:54, richard -rw- weinberger wrote: >> On Tue, Dec 13, 2011 at 1:10 PM, Matthias Rieber >> wrote: >>> Hi, >>> >>> I've a strange problem with ejabberd(a j

Re: [uml-user] impact on erlang?

2011-12-13 Thread richard -rw- weinberger
On Tue, Dec 13, 2011 at 1:10 PM, Matthias Rieber wrote: > Hi, > > I've a strange problem with ejabberd(a jabber server written in Erlang) > running under the user mode linux kernel. Almost everything works as > expected but a certain function, pubsub/pep, doesn't work. When I run > the very same i

Re: [uml-user] slow ubd performance

2011-12-08 Thread richard -rw- weinberger
On Thu, Dec 8, 2011 at 12:38 PM, Riccardo Murri wrote: > Hi *, > > the file-backed `ubd` devices in my UML instances are terribly slow, > and generate a lot of "iowait" load on the host.  It looks like as if > filesystems mounted from `ubd` devices were using the `sync` option. > > This happens wi

Re: [uml-user] UML, threads and memory usage

2011-12-06 Thread richard -rw- weinberger
On Tue, Dec 6, 2011 at 11:40 PM, wrote: > > I did not read everything carefully but I thought that with the skas0, > I would see only one uml linux process in the host for the whole uml > machine, and also that it would not take the /dev/shm memory anymore. No. Maybe your are referring to SKAS3/

Re: [uml-user] UML, threads and memory usage

2011-12-06 Thread richard -rw- weinberger
On Tue, Dec 6, 2011 at 10:31 PM, wrote: > > Is there still a chance that the skas0 patch will end up in the mainline? > It is already in mainline. -- Thanks, //richard -- Cloud Services Checklist: Pricing and Packagin

Re: [uml-user] UML, threads and memory usage

2011-12-06 Thread richard -rw- weinberger
Hi, On Tue, Dec 6, 2011 at 7:48 PM, Riccardo Murri wrote: > > If I got it right: > >  - The UML kernel runs in its own process (hence kernel space >    separation, enforced by the host kernel), which is the parent of >    all the UML processes (one per guest process). The separation is enforced

Re: [uml-user] sparse files as root images

2011-12-06 Thread richard -rw- weinberger
Hi, On Mon, Dec 5, 2011 at 7:20 PM, wrote: > dd if=/dev/zero of=$OUTFS bs=1024 count=1 seek=$((20*1024*1024-1)) Does it work if the filesystem is not sparse? > but I'm having kernel panics (not syncing) whenever I try to run various > commands inside UML. Please post the complete panic. > So

Re: [uml-user] Can i run uml in the background ?

2011-12-02 Thread richard -rw- weinberger
On Fri, Dec 2, 2011 at 11:39 PM, ning ji wrote: > without sudo, i got this Is your disk image only root-readable? Nobody runs UML as root. -- Thanks, //richard -- All the data continuously generated in your IT infrastr

Re: [uml-user] swapoff killed by OOM despite there is enough RAM available

2011-11-30 Thread richard -rw- weinberger
On Wed, Nov 30, 2011 at 3:12 PM, Dmitry Panov wrote: > On 30/11/2011 14:00, richard -rw- weinberger wrote: >> >> On Tue, Nov 29, 2011 at 6:39 PM, Dmitry Panov >>  wrote: >>> >>> Hi guys, >>> >>> I'm having an issue with swapoff whi

Re: [uml-user] swapoff killed by OOM despite there is enough RAM available

2011-11-30 Thread richard -rw- weinberger
On Tue, Nov 29, 2011 at 6:39 PM, Dmitry Panov wrote: > Hi guys, > > I'm having an issue with swapoff which gets killed by OOM. I was able to > reproduce it with UML guests running different kernel versions, starting > from 2.6.26 to  3.1.3. The only difference is with latest kernels sometimes > it

Re: [uml-user] Compiling UML for x86 (32bit) on an x86_64 machine

2011-10-24 Thread richard -rw- weinberger
On Mon, Oct 24, 2011 at 4:42 PM, Luca Saiu wrote: > Sorry for asking such an obvious question, but we couldn't find any > information on the official documentation: how do we cross-compile a UML > kernel for a 32-bit x86 machine on an x86-64 machine? > Try: make linux ARCH=um SUBARCH=i386 -- T

Re: [uml-user] skas patches?

2011-10-05 Thread richard -rw- weinberger
On Wed, Oct 5, 2011 at 10:01 PM, Dan Bassett wrote: > Is anybody maintaining the skas3 (and/or skas4) patches anymore? AFAIK no. I haven't used skas3/4 for years, skas0 is fine for my use cases. -- Thanks, //richard --

Re: [uml-user] UML for ARM processors?

2011-10-03 Thread richard -rw- weinberger
On Mon, Oct 3, 2011 at 9:32 AM, Troy Piggins wrote: > Hi there.  I'm running an ARM-based Dreamplug with Debian Squeeze on > it.  Contemplating trying UML virtual machines on it, but not sure > if that's possible.  Any ideas or pointers? No. Currently UML runs on only on x86_{32,64}. AFAIK Al Vir

Re: [uml-user] udev hangs on boot when using a cow file

2011-09-28 Thread richard -rw- weinberger
On Wed, Sep 28, 2011 at 10:04 PM, Dan Bassett wrote: > > > On 09/28/2011 02:53 PM, richard -rw- weinberger wrote: >> >> On Tue, Sep 27, 2011 at 7:09 PM, Dan Bassett  wrote: >> >>> >>> I did some more digging after finding some more debugging flags f

Re: [uml-user] udev hangs on boot when using a cow file

2011-09-28 Thread richard -rw- weinberger
On Tue, Sep 27, 2011 at 7:09 PM, Dan Bassett wrote: > I did some more digging after finding some more debugging flags for > start_udev and I have more information today.  After serializing udev's > startup process, it looks like the boot process always hangs in the same > spot.  During the process

Re: [uml-user] udev hangs on boot when using a cow file

2011-09-28 Thread richard -rw- weinberger
On Tue, Sep 27, 2011 at 7:09 PM, Dan Bassett wrote: > I did some more digging after finding some more debugging flags for > start_udev and I have more information today.  After serializing udev's > startup process, it looks like the boot process always hangs in the same > spot.  During the process

Re: [uml-user] udev hangs on boot when using a cow file

2011-09-28 Thread richard -rw- weinberger
On Tue, Sep 27, 2011 at 7:09 PM, Dan Bassett wrote: > I did some more digging after finding some more debugging flags for > start_udev and I have more information today.  After serializing udev's > startup process, it looks like the boot process always hangs in the same > spot.  During the process

Re: [uml-user] udev hangs on boot when using a cow file

2011-09-26 Thread richard -rw- weinberger
Dan, On Mon, Sep 26, 2011 at 6:27 PM, Dan Bassett wrote: > I'm having issues when using cow files with CentOS6 system images.  It > is specific to CentOS6.  When I tried with a debian image built with > debootstrap, the system booted just fine.  I am experiencing this issue > both with a custom b

Re: [uml-user] Adding bytes to physical memory to account for exec-shield gap Aborted

2011-09-21 Thread richard -rw- weinberger
On Wed, Sep 21, 2011 at 11:33 AM, ratheesh kannoth wrote: > Hi, > > i downloaded linux 2.6.31 version and compiled for  ARCH=um > SUBARCH=i386 ( 32bit uml) > > my linux machine (64bit ubunt lucid )  gcc  version is  (Ubuntu > 4.4.3-4ubuntu5) 4.4.3 Can you please try a newer kernel? .31 is very ol

Re: [uml-user] getcap/setcap in UML?

2011-09-19 Thread richard -rw- weinberger
On Tue, Sep 20, 2011 at 12:27 AM, Chris Frey wrote: > On Tue, Sep 20, 2011 at 12:28:53AM +0200, richard -rw- weinberger wrote: >> Can you run strace on it? >> Let's see what the system call returns... > > I get this: > > capget(0x20080522, 0, NULL)        

Re: [uml-user] getcap/setcap in UML?

2011-09-19 Thread richard -rw- weinberger
On Mon, Sep 19, 2011 at 11:44 PM, Chris Frey wrote: > > When I run it manually, I get: > > [root@fedora15 ~]# getcap /usr/libexec/pt_chown > Failed to get capabilities of file `/usr/libexec/pt_chown' (Operation not > supported) > Can you run strace on it? Let's see what the system call returns..

Re: [uml-user] SMP in UML?

2011-08-31 Thread richard -rw- weinberger
On Wed, Aug 31, 2011 at 4:14 PM, Riccardo Murri wrote: > Hi *, > > a possibly stupid question: is there a way to simulate an SMP Linux > machine with UML? > I cannot find CONFIG_SMP in "make ARCH=um menuconfig" and running > "./linux --help" > does not show any relevent option... Sorry, UML does

Re: [uml-user] "do_syscall_stub: syscall 8 failed" in UML

2011-08-18 Thread richard -rw- weinberger
On Wed, Aug 17, 2011 at 2:52 PM, Riccardo Murri wrote: > Hi Richard, > > On Tue, Aug 16, 2011 at 10:41 AM, richard -rw- weinberger > wrote: >> Memory within UML is mapped to the "real" memory on the host side >> using mmap().  [...]  On my desktop /proc/sys/vm

Re: [uml-user] java exceptions in UML

2011-08-18 Thread richard -rw- weinberger
On Tue, Aug 16, 2011 at 8:37 AM, Gunnar Lindroth wrote: > Hi Richard, > Unfortunately I will not be able to bisect the issue - I really don't have > the knowledge to do that. > My best contribution will probably be the testing of a future solution, > please let me know if you need any assistance w

Re: [uml-user] "do_syscall_stub: syscall 8 failed" in UML

2011-08-16 Thread richard -rw- weinberger
On Tue, Aug 16, 2011 at 10:20 AM, Riccardo Murri wrote: > Hi Richard, > > On Tue, Aug 16, 2011 at 9:39 AM, richard -rw- weinberger > wrote: >>> Just before the application is killed, these lines >>> appear on the console: >>> >>>   [102159.27000

Re: [uml-user] "do_syscall_stub: syscall 8 failed" in UML

2011-08-16 Thread richard -rw- weinberger
On Mon, Aug 15, 2011 at 5:14 PM, Riccardo Murri wrote: > Hello, > > We've been using UML to run some computational applications (developed > in-house).  The application runs fine for nearly 24h, then is killed > with signal 9.  Just before the application is killed, these lines > appear on the con

  1   2   >