Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96935 - usermode linux is broken in 2.6.12
Summary: usermode linux is broken in 2.6.12
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Other
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-24 03:27 UTC by Toralf Förster
Modified: 2005-07-09 08:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
output on the command line using gentoo-sources-2.6.11-r1 as the guest kernel (uml_syslog-2.6.11-gentoo-r11.txt,6.26 KB, text/plain)
2005-07-08 00:20 UTC, Toralf Förster
Details
output on hte command line using usermode-sources-2.6.12 as the guest kernel (uml_syslog-2.6.12-usermode-bs1.txt,9.41 KB, text/plain)
2005-07-08 00:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2005-06-24 03:27:57 UTC
Trying 2.6.12, 2.6.12.1, 2.6.12.1-git5 and gentoo-sources-2.6.12-r1, the
usermode linux is broken, using the same .config I can compile the executable
linux, but after start I got:

tfoerste@n22 /opt/uml $ start_uml.sh
Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
Kernel virtual memory size shrunk to 243269632 bytes
tracing thread pid = 18316

Nothing more and there is a process eating cpu time:

tfoerste@n22 /opt/uml $ ps aux | grep ubda
tfoerste 18128 98.4  0.5 262232  5432 pts/1    R    11:42  42:34
/opt/uml/linux-2.6.12-gentoo-r1/linux (toralf) [(idle thread)]                 
                                                                            
ubda=/opt/uml/root_fs ubdb=/opt/uml/swap_fs ubdc= eth0=tuntap,,,192.168.0.254
mem=256M umid=toralf


instead, UML with gentoo-sources-2.6.11-r11 runs fine.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-07-06 02:56:09 UTC
Please see if you can reproduce with usermode-sources-2.6.12
Comment 2 Toralf Förster gentoo-dev 2005-07-06 04:23:58 UTC
Te download failed :-(  :

n22 usermode-sources # emerge -a usermode-sources

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-kernel/usermode-sources-2.6.12

Do you want me to merge these packages? [Yes/No]
>>> emerge (1 of 1) sys-kernel/usermode-sources-2.6.12 to /
>>> Resuming download...
>>> Downloading
ftp://pandemonium.tiscali.de/pub/gentoo/distfiles/uml-2.6.12-bs1.patch.bz2
--13:22:58-- 
ftp://pandemonium.tiscali.de/pub/gentoo/distfiles/uml-2.6.12-bs1.patch.bz2
           => `/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2'
Resolving pandemonium.tiscali.de... 195.52.219.14
Connecting to pandemonium.tiscali.de[195.52.219.14]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/gentoo/distfiles ... done.
==> SIZE uml-2.6.12-bs1.patch.bz2 ... done.
==> PASV ... done.    ==> REST 15,884 ... done.
==> RETR uml-2.6.12-bs1.patch.bz2 ...
No such file `uml-2.6.12-bs1.patch.bz2'.

>>> Resuming download...
>>> Downloading ftp://mirror.nutsmaas.nl/gentoo/distfiles/uml-2.6.12-bs1.patch.bz2
--13:22:59--  ftp://mirror.nutsmaas.nl/gentoo/distfiles/uml-2.6.12-bs1.patch.bz2
           => `/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2'
Resolving mirror.nutsmaas.nl... 212.54.48.26
Connecting to mirror.nutsmaas.nl[212.54.48.26]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /gentoo/distfiles ... done.
==> SIZE uml-2.6.12-bs1.patch.bz2 ... done.
==> PASV ... done.    ==> REST 15,884 ... done.
==> RETR uml-2.6.12-bs1.patch.bz2 ...
No such file `uml-2.6.12-bs1.patch.bz2'.

>>> Resuming download...
>>> Downloading
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/distfiles/uml-2.6.12-bs1.patch.bz2
--13:22:59-- 
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/distfiles/uml-2.6.12-bs1.patch.bz2
           => `/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2'
Resolving mirrors.sec.informatik.tu-darmstadt.de... 130.83.164.194
Connecting to mirrors.sec.informatik.tu-darmstadt.de[130.83.164.194]:80...
connected.
HTTP request sent, awaiting response... 404 Not Found

Continued download failed on this file, which conflicts with `-c'.
Refusing to truncate existing file
`/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2'.

>>> Resuming download...
>>> Downloading
ftp://mir1.ovh.net/gentoo-distfiles/distfiles/uml-2.6.12-bs1.patch.bz2
--13:23:00--  ftp://mir1.ovh.net/gentoo-distfiles/distfiles/uml-2.6.12-bs1.patch.bz2
           => `/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2'
Resolving mir1.ovh.net... 213.186.33.37
Connecting to mir1.ovh.net[213.186.33.37]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /gentoo-distfiles/distfiles ... done.
==> SIZE uml-2.6.12-bs1.patch.bz2 ... done.
==> PASV ... done.    ==> REST 15,884 ... done.
==> RETR uml-2.6.12-bs1.patch.bz2 ...
No such file `uml-2.6.12-bs1.patch.bz2'.

>>> Resuming download...
>>> Downloading
http://www.user-mode-linux.org/~blaisorblade/patches/guest/uml-2.6.12-bs1/uml-2.6.12-bs1.patch.bz2
--13:23:00-- 
http://www.user-mode-linux.org/%7Eblaisorblade/patches/guest/uml-2.6.12-bs1/uml-2.6.12-bs1.patch.bz2
           => `/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2'
Resolving www.user-mode-linux.org... 66.59.111.166
Connecting to www.user-mode-linux.org[66.59.111.166]:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable

    The file is already fully retrieved; nothing to do.

!!! Couldn't download uml-2.6.12-bs1.patch.bz2. Aborting.
Comment 3 Toralf Förster gentoo-dev 2005-07-06 05:24:44 UTC
Ah, the md5sum differs:

n22 /usr/portage/sys-kernel/usermode-sources/files # grep patch.bz2
digest-usermode-sources-2.6.12
MD5 8f698b9cd743c0f6e68949bedc5612b2 uml-2.6.12-bs1.patch.bz2 15907
n22 /usr/portage/sys-kernel/usermode-sources/files # md5sum
/usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2
46faf2dfc91b68f7154a5afd317423be  /usr/portage/distfiles/uml-2.6.12-bs1.patch.bz2
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2005-07-06 09:18:38 UTC
Strange. Fixed that in cvs - please try again later :)
Comment 5 Toralf Förster gentoo-dev 2005-07-07 00:48:17 UTC
I can start the UML image and it works but during startup I got:

tfoerste@n22 ~ $ start_uml.sh
Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
Kernel virtual memory size shrunk to 243269632 bytes
tracing thread pid = 1359
Linux version 2.6.11-gentoo-r11 (tfoerste@n22) (gcc version 3.3.5-20050130
(Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1)) #2 Thu Jun 30
13:47:36 CEST 2005
Built 1 zonelists
Kernel command line: ubda=/opt/uml/root_fs ubdb=/opt/uml/swap_fs
eth0=tuntap,,,192.168.0.254 mem=256M root=98:0
PID hash table entries: 2048 (order: 11, 32768 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 255744k available


...


tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
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
Failed to open 'root_fs', errno = 2
VFS: Cannot open root device "98:0" or unknown-block(98,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(98,0)

EIP: 0073:[<a01f7382>] CPU: 0 Not tainted ESP: 007b:a08a66b4 EFLAGS: 00200286
    Not tainted
EAX: 00000000 EBX: 00000001 ECX: a08a6754 EDX: a08a66d4
ESI: 00000008 EDI: 0000000a EBP: a08a66bc DS: 007b ES: 007b
a08afb20:  [<a0047f0d>] notifier_call_chain+0x2d/0x50
a08afb30:  [<a015a526>] bust_spinlocks+0x46/0x50
a08afb40:  [<a0035381>] panic+0x71/0x120
a08afb60:  [<a0002a39>] mount_block_root+0xb9/0x120
a08afbb0:  [<a0002c1f>] mount_root+0x5f/0x70
a08afbd0:  [<a0002c71>] prepare_namespace+0x41/0x120
a08afbe4:  [<a00111e0>] init+0x0/0x110
a08afbe8:  [<a00111e0>] init+0x0/0x110
a08afbf0:  [<a00112e5>] init+0x105/0x110
a08afc10:  [<a0014dc8>] run_kernel_thread+0x78/0x80
a08afc28:  [<a00111e0>] init+0x0/0x110
a08afc38:  [<a0014d90>] run_kernel_thread+0x40/0x80
a08afcd4:  [<a00111e0>] init+0x0/0x110
a08afce0:  [<a001be3b>] new_thread_handler+0x15b/0x190
a08afce4:  [<a00111e0>] init+0x0/0x110
a08afd20:  [<a01f7328>] __restore+0x0/0x8
a08afd60:  [<a01f7382>] __sigprocmask+0x22/0x50


Checking for /proc/mm...not found
Checking PROT_EXEC mmap in /tmp...OK
Kernel virtual memory size shrunk to 243269632 bytes
tracing thread pid = 13407

...



BTW from where I got the part "root=98:0", because this is not part of my
command line ?
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-07-07 15:15:17 UTC
I'm confused, and my lack of UML knowledge doesn't help.

In the original bug report, you were running 2.6.12 as the host OS, booting
2.6.11-gentoo-r11 as the guest OS... right?

In comment #5, you were running usermode-sources-2.6.12 as the host OS, booting
2.6.11-gentoo-r11 as the guest, right..?

My understanding is that usermode-sources is supposed to be the guest kernel. So
it might be worth trying that as the guest too.
Comment 7 Toralf Förster gentoo-dev 2005-07-08 00:15:20 UTC
(In reply to comment #6)
> In the original bug report, you were running 2.6.12 as the host OS, booting
> 2.6.11-gentoo-r11 as the guest OS... right?
No, in the original bug report I booted my notebook with
gentoo-sources-2.6.11-gentoo-r11 and tried to use as guest kernel one of the
gentoo-sources-2.6.12-* sources fron kernel.org

> In comment #5, you were running usermode-sources-2.6.12 as the host OS, booting
> 2.6.11-gentoo-r11 as the guest, right..?

No, I switched in the mean time to gentoo-sources-2.6.12-gentoo-r4 for my host
and used usermode-sources-2.6.12 as the guest kernel.

But anyway, the usermode-sources-2.6.12 works, currently I am ignoring the
kernel panic.
Comment 8 Toralf Förster gentoo-dev 2005-07-08 00:20:13 UTC
Created attachment 62882 [details]
output on the command line using gentoo-sources-2.6.11-r1 as the guest kernel

host kernel is gentoo-sources-2.6.12-r4
Comment 9 Toralf Förster gentoo-dev 2005-07-08 00:21:26 UTC
Created attachment 62883 [details]
output on hte command line using usermode-sources-2.6.12 as the guest kernel

host kernel is gentoo-sources-2.6.12-r4
Comment 10 Daniel Drake (RETIRED) gentoo-dev 2005-07-08 03:25:51 UTC
BlaisorBlade: Is the oops here anything to worry about?
Comment 11 BlaisorBlade 2005-07-09 03:20:25 UTC
Thanks for CC'ing me, however I'd say there's nothing to worry about, if my 
hypoteses are correct. 
 
In the attachment you gave, there are two consecutive outputs. The first says 
that the command line is empty, the second works ok and has a full command 
line. When the command line is empty, UML can't start because it does not find  
a root filesystem image to work with. And that's exactly what the message says, 
so you have simply a bug with start_uml.sh it seems, even if that does not 
happen with the other kernel (possibly the script gets somehow confused with 
the different path name, or the different kernel version it gets with vmlinux 
--version). 
 
In the comment, instead, I see the crash with the following command line: 
 
Kernel command line: ubda=/opt/uml/root_fs ubdb=/opt/uml/swap_fs 
eth0=tuntap,,,192.168.0.254 mem=256M root=98:0 
 
Which should indeed work. Is this some confusion on your part or you've really 
got this? 
Comment 12 Toralf Förster gentoo-dev 2005-07-09 08:53:21 UTC
(In reply to comment #11)
> so you have simply a bug with start_uml.sh it seems, even if that does not 
> happen with the other kernel (possibly the script gets somehow confused with 
> the different path name, or the different kernel version it gets with vmlinux 

Ough, there was a bug in a - so long time fine running "ItCannotHaveABug"-script
- your right, sorry again.

In summary : the usermode-sources -2.6.12 runs fine - as I can see.