Hello,

I've run into problems trying to nest a 2.6.20 kernel inside a 
2.6.20 (vanilla, skas0). I've also tried with 2.6.20.4 with the same 
results. The configuration for both kernels is exactly the same except 
that the inner kernel has CONFIG_NEST_LEVEL=1. Both kernels have
CONFIG_HOST_VMSPLIT_3G=y.

This is what I encounter when running the inner uml:

-- INNER UML OUTPUT  --
...
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
mapping mmap stub failed, errno = 12
Kernel panic - not syncing: start_userspace : expected SIGSTOP, got status = 256
 
EIP: 0073:[<40045d51>] CPU: 0 Not tainted ESP: 007b:40151fac EFLAGS: 00000246
    Not tainted
EAX: 00000000 EBX: 00000795 ECX: 00000013 EDX: 00000795
ESI: 00000792 EDI: 00000011 EBP: 40151fb8 DS: 007b ES: 007b
087fbe20:  [<08076f12>] show_regs+0x102/0x110
087fbe3c:  [<080616ec>] panic_exit+0x2c/0x50
087fbe4c:  [<0808ab56>] notifier_call_chain+0x36/0x50
087fbe6c:  [<0808ac1f>] atomic_notifier_call_chain+0x1f/0x30
087fbe80:  [<0807c196>] panic+0x76/0x130
087fbea4:  [<08073378>] start_userspace+0x108/0x1c0
087fbedc:  [<0806194e>] init_new_context_skas+0xfe/0x1a0
087fbf04:  [<080c2045>] do_execve+0x95/0x220
087fbf28:  [<0805c4f8>] execve1+0x38/0x60
087fbf4c:  [<0805c540>] um_execve+0x20/0x60
087fbf68:  [<0805f93b>] kernel_execve+0x3b/0x50
087fbf88:  [<0805bc98>] run_init_process+0x28/0x30
087fbf9c:  [<0805bda4>] init+0x104/0x160
087fbfb4:  [<0806f6f1>] run_kernel_thread+0x41/0x50
087fbfe0:  [<08061b90>] new_thread_handler+0x60/0x90
087fbffc:  [<a55a5a5a>] 0xa55a5a5a
-- END OUTPUT --


I've also applied the recent 'panic-pause' patch and this is a 
stack trace as seen through gdb:

-- INNER UML OUTPUT (with panic-pause patch applied) --
(gdb) bt
#0  0x400ab03b in nanosleep () from /lib/tls/libc.so.6
#1  0x400aae8e in sleep () from /lib/tls/libc.so.6
#2  0x0807c1bc in panic (fmt=0x8254c84 "start_userspace : expected SIGSTOP, got 
status = %d") at kernel/panic.c:84
#3  0x080733a8 in start_userspace (stub_stack=146317312) at 
arch/um/os-Linux/skas/process.c:252
#4  0x0806197e in init_new_context_skas (task=0x82cd840, mm=0x8ba4db4) at 
arch/um/kernel/skas/mmu.c:121
#5  0x080c1fb5 in do_execve (filename=0x824c071 "/sbin/init", argv=0x8278040, 
envp=0x8278260, regs=0x82cd9f4) at include/asm/mmu_context.h:66
#6  0x0805c528 in execve1 (file=0x824c071 "/sbin/init", argv=0x8278040, 
env=0x8278260) at arch/um/kernel/exec.c:51
#7  0x0805c570 in um_execve (file=0x824c071 "/sbin/init", argv=0x8278040, 
env=0x8278260) at arch/um/kernel/exec.c:68
#8  0x0805f96b in kernel_execve (filename=0x824c071 "/sbin/init", 
argv=0x8278040, envp=0x8278260) at arch/um/kernel/syscall.c:175
#9  0x0805bcc8 in run_init_process (init_filename=0x824c071 "/sbin/init") at 
init/main.c:713
#10 0x0805bdd4 in init (unused=0x0) at init/main.c:793
#11 0x0806f721 in run_kernel_thread (fn=0x805bcd0 <init>, arg=0x0, 
jmp_ptr=0x82cdccc) at arch/um/os-Linux/process.c:289
#12 0x08061bc0 in new_thread_handler () at arch/um/kernel/skas/process.c:64
#13 0xa55a5a5a in ?? ()
-- END OUTPUT --


This is what inner uml's /proc/2068/maps looks like at the time of 
the second stack trace above:

-- INNER UML /proc/2068/mem --
mel:/proc/2068# cat maps 
08048000-08291000 rwxp 00000000 62:00 819212     /opt/virtual/vm/grumpy/vmlinux
08291000-082c9000 rw-p 08291000 00:00 0          [heap]
082c9000-087dc000 rw-s 00281000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
087dc000-087dd000 rwxs 00794000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
087dd000-087f4000 rw-s 00795000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
087f4000-087f5000 rwxs 007ac000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
087f5000-0c048000 rw-s 007ad000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
0c800000-0c801000 rwxs 00bc1000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
0c802000-0c803000 rwxs 00569000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
0c804000-0c805000 rwxs 0052e000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
0c806000-0c807000 rwxs 0052f000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
0c808000-0c809000 rwxs 0051c000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
0c80a000-0c80b000 rwxs 0051d000 00:0e 6611       /dev/shm/vm_file-W1iOzj 
(deleted)
40000000-40015000 r-xp 00000000 62:00 147473     /lib/ld-2.3.6.so
40015000-40017000 rw-p 00014000 62:00 147473     /lib/ld-2.3.6.so
40017000-40019000 rw-p 40017000 00:00 0 
40019000-4001b000 r-xp 00000000 62:00 147519     /lib/tls/libutil-2.3.6.so
4001b000-4001d000 rw-p 00001000 62:00 147519     /lib/tls/libutil-2.3.6.so
4001d000-40145000 r-xp 00000000 62:00 147500     /lib/tls/libc-2.3.6.so
40145000-4014a000 r--p 00127000 62:00 147500     /lib/tls/libc-2.3.6.so
4014a000-4014c000 rw-p 0012c000 62:00 147500     /lib/tls/libc-2.3.6.so
4014c000-40154000 rw-p 4014c000 00:00 0 
40154000-40155000 rwxp 40154000 00:00 0 
bf9af000-bf9c5000 rwxp bf9af000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
-- END --


This is my first time trying to nest UML so I'm hoping I just missed 
something obvious. Any suggestions would be greatly appreciated.

Thanks,

jez


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to