root_fs is an unmodified gentoo 2005.1 athlon-xp stage3. Host is amd64 running 2.6.14-skas3-v9-pre7.

Host glibc is 2.3.5-r2. Host gcc is 3.4.4-r1. 32-bit chroot (see 32-bit test below) glibc is 2.3.4.20041102-r1, 32-bit chroot's gcc is 3.3.5.20050130-r1. Root_fs is same image as chroot.

Guest kernel is built with defconfig + enabling TT. (Note comment about processor features at bottom of mail). Guest kernel is vanilla 2.6.15, no patches applied.


2.6.15 compiled in 64-bit mode:
+++++++++++++++++++++++++++++++
(compiled on 64-bit host *without* adding SUBARCH=i386)

TT: Busy hang
-------------
...
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
VFS: Mounted root (ext2 filesystem).
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c


SKAS0: Busy hang
----------------
...
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c
request_module: runaway loop modprobe binfmt-464c


SKAS3: Crash
------------
...
Kernel panic - not syncing: map_stub_pages : /proc/mm map for code failed, err 
= 22
Modules linked in:
Pid: 1, comm: swapper Not tainted 2.6.15
RIP: 0033:[<000000006015fad9>]
RSP: 00002aaaaaaacfc0  EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000003c6b RCX: ffffffffffffffff
RDX: 0000000000000000 RSI: 0000000000000013 RDI: 0000000000003c6b
RBP: 00002aaaaaaacfc8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000003c68
R13: 00002aaaaaaac000 R14: 00007fffffffe0f8 R15: 00007fffffffe508
Call Trace:
603e3878:  [<60012dbf>] panic_exit+0x2d/0x47
603e3898:  [<60039c1e>] notifier_call_chain+0x25/0x38
603e38a0:  [<6015faa1>] __sigprocmask+0x11/0x40
603e38c8:  [<600292c4>] panic+0xe4/0x175
603e3910:  [<6000e87c>] copy_to_user_proc+0x0/0x1b
603e3948:  [<60170c49>] __syscall_error_1+0x6/0x1d
603e3958:  [<600223c3>] file_io+0xac/0xcc
603e3968:  [<6016ca20>] __libc_write+0x0/0x80
603e39b8:  [<60016da6>] map_stub_pages+0xb5/0x189
603e39d8:  [<6004e8b7>] prep_new_page+0x6c/0x75
603e39f8:  [<6016c8a3>] __libc_open64+0xc3/0x150
603e3ac8:  [<600175a7>] new_mm+0xb4/0xc4
603e3ad8:  [<6004f588>] __mod_page_state+0x2c/0x34
603e3b08:  [<600582c3>] __pte_alloc+0x4f/0x82
603e3b38:  [<600160fe>] init_stub_pte+0x8e/0x13e
603e3b78:  [<600162d1>] init_new_context_skas+0x123/0x196
603e3bc8:  [<600725c5>] do_execve+0xca/0x235
603e3bf0:  [<6000c184>] init+0x0/0x140
603e3c18:  [<6000c758>] execve1+0x26/0x77
603e3c58:  [<6000c7b4>] um_execve+0xb/0x3c
603e3c78:  [<6000c15d>] run_init_process+0x48/0x6f
603e3ca8:  [<6000c298>] init+0x114/0x140
603e3cd8:  [<6002399b>] run_kernel_thread+0x3e/0x43
603e3ce8:  [<6000c184>] init+0x0/0x140
603e3d00:  [<6000c184>] init+0x0/0x140
603e3d28:  [<6002398a>] run_kernel_thread+0x2d/0x43
603e3d68:  [<600103d7>] unblock_signals+0xe/0x10
603e3d78:  [<60025b73>] schedule_tail+0x2b/0x186
603e3db0:  [<6000c184>] init+0x0/0x140
603e3dc8:  [<60017309>] new_thread_handler+0xf6/0x12c
603e3e38:  [<6015f820>] __restore_rt+0x0/0x10
603e3ee8:  [<6015fad9>] __kill+0x9/0x20


2.6.15 compiled in 32-bit mode:
+++++++++++++++++++++++++++++++
(compiled in 32-bit chroot)


TT: boots but crashes later on
-----------------------------
* Checking all filesystems ... [ ok ] * Mounting local filesystems ... [ ok ] * Activating (possibly) more swap ... [ ok ] * Setting system clock to hardware clock [UML] ... [ ok ] * Caching service dependencies ... [ ok ] * Configuring kernel parameters ... [ ok ] * Updating environment ... [ ok ]
 * Cleaning /var/lock, /var/run ...
Kernel panic - not syncing: Kernel mode fault at addr 0x2f2c, ip 0xa002177a


SKAS0: boots and works fine
---------------------------


SKAS3: busy hang
----------------
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Initialized stdio console driver
Console initialized on /dev/tty0
Initializing software serial port version 1
 ubda: unknown partition table
 ubdb: unknown partition table
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem).


Comments
++++++++
When compiling guest for 32-bit I noticed an option for host processor features, where I could enable generic x86. This option did not appear in 64-bit mode. Is the binfmt stuff due to no 32-bit emulation compatibility? I have yet to test the 64-bit guest with a 64-bit root_fs. (Maybe it's a "doh!" on my side that the 64-bit guest kernel doesn't work with 32-bit root_fs's)


  // Joel



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to