From: Jeff Dike <jdike@addtoit.com>
To: Blaisorblade <blaisorblade@yahoo.it>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Testing requested - [PATCH] Fixing SKAS0 compilation problem / TT mode bug report
Date: Sun, 27 Nov 2005 23:23:27 -0500 [thread overview]
Message-ID: <20051128042327.GA28500@ccure.user-mode-linux.org> (raw)
In-Reply-To: <200511272159.38069.blaisorblade@yahoo.it>
On Sun, Nov 27, 2005 at 09:59:37PM +0100, Blaisorblade wrote:
> The attached patch is a (hacky) proposal, alternative to Jeff's
> fix-stub-syscall6, to fix the SKAS0 compilation problem.
Bleah :-)
> In fact, Jeff's patch makes the problem appear on my system (where I never
> reproduced it).
What assembly did you end up with, with my patch?
> As an aside, I saw this code crashing at shutdown in TT mode, from
> fs/proc/array.c:do_task_stat() :
>
> if (mm) {
> vsize = task_vsize(mm);
> eip = KSTK_EIP(task);
> esp = KSTK_ESP(task);
> }
>
> Went looking and guess what? There is full crap (starting from 2.6.14, due to
> the fixes for sysrq-t IIRC):
>
> include/asm-um/processor-i386.h
>
> #define KSTK_EIP(tsk) KSTK_REG(tsk, EIP)
> #define KSTK_ESP(tsk) KSTK_REG(tsk, UESP)
> #define KSTK_EBP(tsk) KSTK_REG(tsk, EBP)
>
> include/asm-um/processor-generic.h
>
> #ifdef CONFIG_MODE_SKAS
> #define KSTK_REG(tsk, reg) \
> ({ union uml_pt_regs regs; \
> get_thread_regs(®s, tsk->thread.mode.skas.switch_buf); \
> UPT_REG(®s, reg); })
> #else
> #define KSTK_REG(tsk, reg) (0xbadbabe)
> #endif
Oops, needs fixing.
Jeff
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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
next prev parent reply other threads:[~2005-11-28 3:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-27 20:59 [uml-devel] Testing requested - [PATCH] Fixing SKAS0 compilation problem / TT mode bug report Blaisorblade
2005-11-28 0:47 ` [uml-devel] Blaisorblade's UML binaries - MORE MORE... please give us an x86_64 UML UML
2005-11-29 12:22 ` Phill Wombat
2005-11-29 16:52 ` Blaisorblade
2005-11-30 20:32 ` Phill Wombat
2005-12-01 12:34 ` Blaisorblade
2005-11-28 4:23 ` Jeff Dike [this message]
2005-11-29 16:28 ` [uml-devel] Testing requested - [PATCH] Fixing SKAS0 compilation problem / TT mode bug report Blaisorblade
2005-11-29 17:55 ` Jeff Dike
2005-12-02 0:18 ` Blaisorblade
2005-12-03 5:54 ` 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=20051128042327.GA28500@ccure.user-mode-linux.org \
--to=jdike@addtoit.com \
--cc=blaisorblade@yahoo.it \
--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