From: Mattia Dongili <malattia@linux.it>
To: Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Jiaying Zhang <jiayingz@google.com>
Subject: Re: [uml-devel] 2.6.25 uml kernel crashes when it calls down() on a semaphore with zero counter
Date: Mon, 21 Jul 2008 00:20:22 +0900 [thread overview]
Message-ID: <20080720152022.GE1520@inferi.kami.home> (raw)
In-Reply-To: <20080718205342.GE13572@c2.user-mode-linux.org>
On Fri, Jul 18, 2008 at 04:53:42PM -0400, Jeff Dike wrote:
> On Thu, Jul 17, 2008 at 12:55:09PM +0800, Jiaying Zhang wrote:
> > The patch below solves the 2.6.25 uml crash problem for me. Looks like the
> > problem should be away in 2.6.26 kernel because down_interruptible has
> > changed to the C code since 2.6.26. But I got kernel panic while booting
> > the 2.6.26 kernel :(.
> >
> > --- linux-2.6.25.4/lib/semaphore-sleepers.c 2008-05-15
> > 23:00:12.000000000 +0800
> > +++ linux-2.6.25.4-new/lib/semaphore-sleepers.c 2008-07-17
> > 12:20:47.000000000 +0800
> > @@ -48,12 +48,12 @@
> > * we cannot lose wakeup events.
> > */
> >
> > -void __up(struct semaphore *sem)
> > +asmregparm void __up(struct semaphore *sem)
> > {
> > wake_up(&sem->wait);
> > }
>
> You continue to ignore a few important facts:
>
> 1 - There are a ton of semaphores in UML
> 2 - They all work, except for yours
> Therefore, a patch which changes all semphores across all
> architectures for which asmregparam has meaning can't possibly be the
> correct fix.
>
> However, you might have treated this as an important clue, and looked
> at whether your broken semaphore has a different set of declarations
> in force than those in the rest of the kernel.
Jeff,
it's not entirely clear to me why, but that patch fixes a segfault that
I experience when booting uml 2.6.25 built with gcc-4.3 on a 2.6.25
host (I also applied your ICE workaround patch).
I'm booting a debian sid image that I usually run before uploading the
new uml package in debian.
I've got no fancy modules written by me and the segfault is 100%
reproducible with that debian image (a different image -a gentoo-
doesn't crash).
I'll provide more info tomorrow, I'll try to further trace the crash
with gdb.
cheers
--
mattia
:wq!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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:[~2008-07-20 15:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 7:53 [SPAM] [uml-devel] 2.6.25 uml kernel crashes when it calls down() on a semaphore with zero counter Jiaying Zhang
2008-07-03 13:56 ` [SPAM] " Jeff Dike
2008-07-04 1:06 ` Jiaying Zhang
2008-07-10 2:25 ` Jiaying Zhang
2008-07-10 17:02 ` Jeff Dike
2008-07-14 9:06 ` Jiaying Zhang
2008-07-14 14:46 ` Jeff Dike
2008-07-16 9:52 ` Jiaying Zhang
2008-07-17 4:55 ` Jiaying Zhang
2008-07-18 20:53 ` Jeff Dike
2008-07-20 15:20 ` Mattia Dongili [this message]
2008-07-20 15:44 ` Jeff Dike
2008-07-21 12:54 ` Mattia Dongili
2008-08-02 5:54 ` Mattia Dongili
2008-08-04 16:44 ` Jeff Dike
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=20080720152022.GE1520@inferi.kami.home \
--to=malattia@linux.it \
--cc=jdike@addtoit.com \
--cc=jiayingz@google.com \
--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