From: Rob Landley <rob@landley.net>
To: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] How to reproduce my race condition.
Date: Sat, 8 Oct 2005 17:13:32 -0500 [thread overview]
Message-ID: <200510081713.32447.rob@landley.net> (raw)
Here's what I do:
Grab the binaries tarball from http://www.landley.net/code/firmware/broken.tbz
(this is about 650k compressed, and 1.3 megs uncompressed).
Extract it, and remember where it is.
Build UML, as follows:
tar xvjf linux-2.6.13.2.tar.bz2
cd linux-2.6.13.2
make ARCH=um allnoconfig
cat >> .config << EOF
CONFIG_MODE_SKAS=y
CONFIG_BINFMT_ELF=y
CONFIG_HOSTFS=y
CONFIG_STDERR_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_BLK_DEV_LOOP=y
CONFIG_LBD=y
CONFIG_PROC_FS=y
EOF
yes "" | make ARCH=um oldconfig
make ARCH=um
Run this UML via:
./linux rootfstype=hostfs rw init=/bin/sh LD_ASSUME_KERNEL=2.4.1
And now run the test:
chroot /path/to/broken /test.sh
An example run on my laptop:
chroot /home/landley/newbuild/firmware-build-0.8.1/broken /test.sh
/busybox install -c test.sh /sub/1
/busybox install -c test.sh /sub/2
/busybox install -c test.sh /sub/3
/busybox install -c test.sh /sub/4
/busybox install -c test.sh /sub/5
/busybox install -c test.sh /sub/6
/busybox install -c test.sh /sub/7
/busybox install -c test.sh /sub/8
/busybox install -c test.sh /sub/9
/busybox install -c test.sh /sub/10
/busybox install -c test.sh /sub/11
/busybox install -c test.sh /sub/12
/busybox install -c test.sh /sub/13
install: unable to open `/sub/13/test.sh': No such file or directory
install: cannot change permissions of /sub/13/test.sh: No such file or
directory
install: cannot change ownership of /sub/13/test.sh: No such file or directory
sh-3.00#
It's possible that busybox or uClibc is doing something wrong, but this is
_rock_solid_ on a normal kernel, and on 2.6.11-um (under -tt mode, anyway).
On 2.6.13, this happens in both -tt mode and -skas0 mode.
Help?
Rob
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
reply other threads:[~2005-10-08 22:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200510081713.32447.rob@landley.net \
--to=rob@landley.net \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox