From: BlaisorBlade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: David Jeffery <djeffery@britsys.net>
Subject: Re: [uml-devel] [PATCH] nptl/sys_clone fix for i386/ppc
Date: Sun, 5 Sep 2004 17:35:07 +0200 [thread overview]
Message-ID: <200409051735.07479.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <20040826020626.GA28471@malice.crymeariver.org>
Alle 04:06, giovedì 26 agosto 2004, David Jeffery ha scritto:
> This is a patch against 2.6.8.1-mm4 to fix a skas UML problem with a
> nptl glibc.
> UML with an nptl enabled glibc causes process creation to fail with
> this assertion failure in nptl:
I have just one problem in understanding you: are you talking about:
- linking the Uml binary against a NPTL glibc,
or
- using NPTL inside the Uml virtual machine?
From the actual patch, it seems that you are doing the second thing, but
nobody has been able, so far, to use NPTL *inside* UML, and we all thought
that since UML misses the new NPTL syscalls, that was the reason. If this
patch, instead, was enough for you, I'm very happy.
> The problem is caused by the incorrect implementation of sys_clone().
> sys_clone() is an ugly beast that has different arguements depending on
> the architecture. For i386 and ppc, the child tid is passed as the
> 5th arguement instead of as the 4th arguement as as some other
> architectures (like x86-64) do. The 4th arguement on i386 and ppc
> doesn't look to be used by the kernel.
Ok, it seems reasonable.
> With this patch I've been running several UML skas images with a Debian
> Sarge based systems for several days without problem. The patch adds a
> sys_clone_5arg() on i386 and ppc which just raps around the current
> sys_clone() so the child tid pointer in the 5th arguement will be passed
> down correctly. I don't get any style points for this patch so feel
> free to pretty it up.
> diff -urN linux-2.6.8.1-mm4.orig/arch/um/Makefile
> linux-2.6.8.1-mm4/arch/um/Makefile ---
> linux-2.6.8.1-mm4.orig/arch/um/Makefile 2004-08-25 20:52:56.000000000 -0400
> +++ linux-2.6.8.1-mm4/arch/um/Makefile 2004-08-22 16:55:52.000000000 -0400
> @@ -59,7 +59,8 @@
>
> CFLAGS += $(CFLAGS-y) -D__arch_um__ -DSUBARCH=\"$(SUBARCH)\" \
> -D_LARGEFILE64_SOURCE $(ARCH_INCLUDE) -Derrno=kernel_errno \
> - -Dsigprocmask=kernel_sigprocmask $(MODE_INCLUDE)
> + -Dsigprocmask=kernel_sigprocmask $(MODE_INCLUDE) \
> + -D__subarch_$(SUBARCH)__
Isn't enough the -DSUBARCH= ?
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id\x10808&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2004-09-05 19:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 2:06 [uml-devel] [PATCH] nptl/sys_clone fix for i386/ppc David Jeffery
2004-09-05 15:35 ` BlaisorBlade [this message]
2004-09-07 23:12 ` Michael Ralston
2004-09-10 23:52 ` Jeff Dike
2004-09-11 13:33 ` [uml-devel] " Sven Köhler
2004-09-11 14:18 ` Ralph Paßgang
2004-09-11 15:19 ` BlaisorBlade
2004-09-11 20:11 ` Sven Köhler
2004-09-12 18:19 ` BlaisorBlade
2004-09-11 15:45 ` [uml-devel] " BlaisorBlade
2004-09-11 18:26 ` Jeff Dike
2004-09-12 15:52 ` BlaisorBlade
2004-09-13 3:10 ` Jeff Dike
2004-09-13 18:50 ` BlaisorBlade
2004-09-12 15:54 ` [uml-devel] Unsent fixes by Andrew Morton BlaisorBlade
[not found] <BACKUPJQjdF8qoH28Db000022d5@NOSPAM.BRITSYS.NET>
2004-09-08 0:29 ` [uml-devel] [PATCH] nptl/sys_clone fix for i386/ppc David Jeffery
2004-09-08 18:09 ` BlaisorBlade
-- strict thread matches above, loose matches on Subject: below --
2004-09-11 22:27 Wichmann, Mats D
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=200409051735.07479.blaisorblade_spam@yahoo.it \
--to=blaisorblade_spam@yahoo.it \
--cc=djeffery@britsys.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