From: Blaisorblade <blaisorblade@yahoo.it>
To: Bodo Stroesser <bstroesser@fujitsu-siemens.com>,
Jeff Dike <jdike@addtoit.com>
Cc: user-mode-linux devel
<user-mode-linux-devel@lists.sourceforge.net>,
Gerd Knorr <kraxel@bytesex.org>
Subject: [uml-devel] Re: UML running on a SMP host: bug in SKAS3 patch
Date: Wed, 26 Jan 2005 22:13:32 +0100 [thread overview]
Message-ID: <200501262213.32396.blaisorblade@yahoo.it> (raw)
In-Reply-To: <41F7C963.9080704@fujitsu-siemens.com>
For me it's perfectly ok... I don't remember the exact traces, but some
sporadical SKAS-related Oops were reported... in no case they were repeatable
(since -V1 at least), so they were likely very thin races conditions.
I'm going to merge also the patches for PTRACE_SYSEMU_SINGLESTEP in SKAS,
since I'm now at releasing SKAS updates.
I'm also going to add this patch, which fixes another potential problem:
diff -puN arch/i386/kernel/ptrace.c~skas-add-wmb-for-mm-switch
arch/i386/kernel/ptrace.c
--- vanilla-linux-2.6.9/arch/i386/kernel/ptrace.c~skas-add-wmb-for-mm-switch
2005-01-26 20:12:14.233441416 +0100
+++ vanilla-linux-2.6.9-paolo/arch/i386/kernel/ptrace.c 2005-01-26
20:28:00.902525840 +0100
@@ -570,8 +570,10 @@ asmlinkage int sys_ptrace(long request,
}
atomic_inc(&new->mm_users);
+ task_lock(child);
child->mm = new;
child->active_mm = new;
+ task_unlock(child);
mmput(old);
ret = 0;
break;
/*
* Protects ->fs, ->files, ->mm, ->ptrace, ->group_info, ->comm and
* synchronises with wait4().
*
* Nests both inside and outside of read_lock(&tasklist_lock).
* It must not be nested with write_lock_irq(&tasklist_lock),
* neither inside nor outside.
*/
static inline void task_lock(struct task_struct *p)
{
spin_lock(&p->alloc_lock);
}
The release will wait at least a couple of days, since I'm adding all this
stuff... especially, since there is a lock addition, I'd like at least one
positive report from one SMP user before *officially* releasing.
I've not seen any update to them from their original version (i.e. when they
were first discussed). Is this correct?
And my doubts about their technical merit were totally wrong. I simply was
missing that SYSEMU stands to SYSEMU_SINGLESTEP as SYSCALL stands on
SINGLESTEP (in correct, >=2.6.9 kernels), while I thought SYSEMU_SINGLESTEP
was equal to the correct SINGLESTEP (I was maybe misguided by the "using it
to check the host kernel correctness" hack we need to use).
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
http://www.user-mode-linux.org/~blaisorblade
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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-01-26 21:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-26 16:46 [uml-devel] UML running on a SMP host: bug in SKAS3 patch Bodo Stroesser
2005-01-26 21:13 ` Blaisorblade [this message]
2005-01-27 12:42 ` [uml-devel] " Bodo Stroesser
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=200501262213.32396.blaisorblade@yahoo.it \
--to=blaisorblade@yahoo.it \
--cc=bstroesser@fujitsu-siemens.com \
--cc=jdike@addtoit.com \
--cc=kraxel@bytesex.org \
--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