[Pkg-uml-devel] 1) noexec for shm 2) Is that a uml bug? 3) Is that rootstrap bug?

shaulka at 012.net.il shaulka at 012.net.il
Sun Nov 12 00:58:34 CET 2006


1) noexec for shm:
    =============
  On Wednesday, November 8, 2006, Mattia Dongili 
Subject: Re: [Pkg-uml-devel] Are you aware to 386945 and lkml 0609.2/1537.html

> The initscripts have been reverted to the old behaviour for
> etch already but I think the package has yet to be migrated from sid.
> 

   Still, this is only temporary:

$ zgrep -A1 etch /usr/share/doc/sysvinit/changelog.Debian.gz
  * Drop the 'noexec' flag from the /dev/shm/ mount point until etch
    is released, to avoid breaking dosemu and user-mode-linux.  It will
    be reintroduced after etch is released.  This is related to
    bugs #386945 and #386368.

  I only skimmed those bug reports. If I understood it correctly, the 
noexec flag is claimed to be a security risk.


2) Is the following a uml bug?
   ======================
  By  taking sysvinit from sid I managed to get rootstrap running. However
now I believe my first problem is the following:

$ grep -A21 Failed rootstrap.log
Failed to open 'root_fs', errno = 2
 ubdb: unknown partition table
VFS: Mounted root (hostfs filesystem) readonly.
builder running...
idr_remove called for id=2 which is not allocated.
0891ba10:  [<0805d048>] dump_stack+0x1c/0x20
0891ba28:  [<08135a69>] idr_remove_warning+0x15/0x19
0891ba38:  [<08135b34>] sub_remove+0xc7/0xd0
0891ba70:  [<08135b5c>] idr_remove+0x1f/0x85
0891ba8c:  [<0813f550>] release_dev+0x5bc/0x5de
0891bb30:  [<0813f7dc>] tty_open+0x26a/0x2bd
0891bb60:  [<080b16a0>] chrdev_open+0xd1/0xf9
0891bb80:  [<080a9384>] __dentry_open+0xb3/0x187
0891bb9c:  [<080a9552>] nameidata_to_filp+0x20/0x35
0891bbbc:  [<080a948d>] do_filp_open+0x35/0x3e
0891bc24:  [<080a972f>] do_sys_open+0x3f/0xbc
0891bc50:  [<080a97bf>] sys_open+0x13/0x15
0891bc68:  [<0805eeb7>] handle_syscall+0x87/0xa0
0891bcb4:  [<0806d816>] userspace+0x1fc/0x240
0891bcfc:  [<0805ebe3>] fork_handler+0x97/0x9f
0891bd1c:  [<a7ef3420>] 0xa7ef3420

  It looks as if the lines starting with `idr_remove' get repeated 2 more times
(haven't carefully compared the text).


3) Is the following a rootstrap bug? 
   ==========================
  I used rootstrap -o option. I do have more problems with uml,  such as setting
the network. Still, I got a shell. However the shell prompt, `sh-3.1# ', as well as
my keystrokes and the output of the commands were only printed to the log file.
I was expecting it to appear on the tty too. Is that related to the previous oops?
Is that a rootstrap bug?





More information about the Pkg-uml-devel mailing list