From: Blaisorblade <blaisorblade@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: user-mode-linux-user@lists.sourceforge.net
Subject: [uml-devel] Big SKAS3 bug found with 2.6/CONFIG_REGPARM - please upgrade
Date: Mon, 11 Jul 2005 23:55:05 +0200 [thread overview]
Message-ID: <200507112355.05642.blaisorblade@yahoo.it> (raw)
I've worked during this weekend to diagnose the problem I reported earlier, in
the thread " Please test 2.6.13-rc2 in TT mode! Big problem with syscall
parameters clobbering".
It can affect an application when these conditions are verified:
*) the host is running a 2.6 kernel with SKAS patch and is compiled with
CONFIG_REGPARM
*) it is calling sys_mmap2, old_mmap, sys_mprotect or sys_modify_ldt
*) the call happens via int 0x80
*) on return, the application relies on the values stored in registers
(actually on some specific registers, depending on the exact situation).
Condition 3 means that a dynamically linked app with NPTL glibc won't incur in
this problem, nor will statically linked app compiled on NPTL-only distros.
I've tested 2.6.9-V7, 2.6.11-V8/-V9-pre4 and 2.6.12-V8/-V9-pre4, all with
CONFIG_REGPARM enabled, and compiled with gcc 3.3.4, and they all show this
bug. Analysis with CONFIG_REGPARM disabled show that the problem won't happen.
Probably gcc 3.4 triggers it as well; the buggy code is present
unchanged even in SKAS3-V1 against 2.6.3, although maybe it wouldn't be
triggered by such an old kernel (because CONFIG_REGPARM wasn't present IIRC).
The solution, for user, is to upgrade to SKAS3-V8.2, or to SKAS3-v9-pre7
(which is still to consider as *experimental*).
--
Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894)
http://www.user-mode-linux.org/~blaisorblade
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
reply other threads:[~2005-07-11 21:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200507112355.05642.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=user-mode-linux-devel@lists.sourceforge.net \
--cc=user-mode-linux-user@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