From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
To: Dominik Vogt <dominik.vogt@gmx.de>
Cc: user-mode-linux-devel@lists.sourceforge.net,
Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] Kernel panic in dump fpu with 2.6.11.11
Date: Tue, 28 Jun 2005 17:24:17 +0200 [thread overview]
Message-ID: <42C16BA1.4060902@fujitsu-siemens.com> (raw)
In-Reply-To: <6028.1119969442@www81.gmx.net>
Dominik Vogt wrote:
> When I run a certain mulithreaded application in a virtual
> machine, I get a UML kernel panic. The host and the VM are both
> running Debian-3.1r0a (sarge) on i386. The application gets a
> SIGSEGV after a couple of seconds and generates a core dump. In
> this process, the UML kernel panics un the dump_fpu() function at
> position 0x61 with a NULL pointer reference:
>
> C: (ptrace.c, line 333, inline function copy_fpu_fxsave_tt)
> struct i387_fxsave_struct *fpu = SC_FXSR_ENV(PT_REGS_SC(regs));
>
> assembler: (eax being 0)
> 0xa0031b4d <dump_fpu+61>: mov 0x4(%eax),%eax
>
> I can prevent the kernel panic by commenting out the line
>
> copy_fpu_fxsave(regs, (struct user_i387_struct *) fpu);
>
> in dump_fpu(), so that copy_fpu_fxsave_tt() is never called. The
> application always coredumps in
>
> /lib/tls/libc.so.6(__clone+0x5a)[0x4026118a]
>
> which I guess is part of the threading library in libc. This
> crash is 100% reproducable.
The kernel panic in case UML/tt tries to core dump is a known bug.
The reason is host's kernel not providing the fp-regs in sigcontext,
of the SIGSEGV, if fp-regs were not used before the SIGSEGV happens.
In sigcontext the pointer to the fp-regs is NULL in this case, which
makes UML crash, as the pointer is used without a check.
Bodo
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
prev parent reply other threads:[~2005-06-28 15:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 14:37 [uml-devel] Kernel panic in dump fpu with 2.6.11.11 Dominik Vogt
2005-06-28 15:16 ` Frank Sorenson
2005-06-29 22:08 ` Dominik Vogt
2005-06-28 15:24 ` Bodo Stroesser [this message]
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=42C16BA1.4060902@fujitsu-siemens.com \
--to=bstroesser@fujitsu-siemens.com \
--cc=dominik.vogt@gmx.de \
--cc=jdike@addtoit.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