linux-um archives
 help / color / mirror / Atom feed
* RE: [uml-devel] Panic while core dumping in tt-mode
@ 2004-10-07 16:13 Stroesser, Bodo
  2004-10-12 23:34 ` Jeff Dike
  0 siblings, 1 reply; 4+ messages in thread
From: Stroesser, Bodo @ 2004-10-07 16:13 UTC (permalink / raw)
  To: Stroesser, Bodo, user-mode-linux-devel; +Cc: Jeff Dike, BlaisorBlade

> Testing my extensions for vsyscall/sysenter I need to check the
presence of the vsyscall-page in the core. But in tt-mode the kernel
panics if core dump > is started. In copy_fpu_fxsave_tt() the line
> 
>   struct i387_fxsave_struct *fpu = SC_FXSR_ENV(PT_REGS_SC(regs));
> 
> sets fpu to 0x70, then memcpy() segfaults.
> Maybe the reason is in the new signal-delivery?
No, silly speculation! The real reason is, that in signal delivery
no fp-status is written and the pointer to the fp-status in the
signalcontext is set to NULL, if a thread had never used the fp-regs.
Easy to fix that, but what with the other issues:
- In skas fpregs never are dumped. (Instead random data is written
  to core)
- dumping the register sets of other threads running in the same
  thread group and mm is not supported
- fpxregs are not dumped. They could be dumped "if (have_fpx_regs)"
  (from arch/um/os-Linux/sys-i386/registers.c)
Should I try a fix? Does it make sense to fix all this?

Bodo


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [uml-devel] Panic while core dumping in tt-mode
@ 2004-10-06 12:57 Stroesser, Bodo
  0 siblings, 0 replies; 4+ messages in thread
From: Stroesser, Bodo @ 2004-10-06 12:57 UTC (permalink / raw)
  To: user-mode-linux-devel; +Cc: Jeff Dike, BlaisorBlade

Testing my extensions for vsyscall/sysenter I need to check the
presence of the vsyscall-page in the core. But in tt-mode the
kernel panics if core dump is started. In copy_fpu_fxsave_tt()
the line

  struct i387_fxsave_struct *fpu = SC_FXSR_ENV(PT_REGS_SC(regs));

sets fpu to 0x70, then memcpy() segfaults.
Maybe the reason is in the new signal-delivery?

Bodo


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-13 16:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-07 16:13 [uml-devel] Panic while core dumping in tt-mode Stroesser, Bodo
2004-10-12 23:34 ` Jeff Dike
2004-10-13 16:55   ` Bodo Stroesser
  -- strict thread matches above, loose matches on Subject: below --
2004-10-06 12:57 Stroesser, Bodo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox