From: Andi Kleen <andi@firstfloor.org>
To: William Cattey <wdc@MIT.EDU>
Cc: Andi Kleen <andi@firstfloor.org>,
cra@WPI.EDU, linux-kernel@vger.kernel.org
Subject: Re: vm86.c audit_syscall_exit() call trashes registers
Date: Tue, 14 Aug 2007 23:28:58 +0200 [thread overview]
Message-ID: <20070814212858.GB23308@one.firstfloor.org> (raw)
In-Reply-To: <78642229-39DD-4956-9385-5A3F960BFEEF@mit.edu>
On Tue, Aug 14, 2007 at 04:52:54PM -0400, William Cattey wrote:
> The corruption originally looked like a race condition.
>
> Sometimes the EDID buffer would be all zeros.
> Sometimes it would contain partial data, and then the rest of the
> buffer filled with zeros.
> The amount of data transferred into the buffer before going to all
> zeros is non-deterministic.
>
> When we put a known value in each byte of the buffer before making
> the vm86 call, the known data would always be overwritten either with
> EDID data or zeros.
Hmm, that might be consistent with something going wrong with sleeping.
Was the system under high load? Perhaps something else can thrash
some real mode state when you sleep. On the other hand vm86 in user
mode can schedule anyways, so it might have already happened.
But I think the mutex was actually added post 2.6.16 so if you saw
it in 2.6.16 already it might have been something else.
Also when audit is not enabled (did you have it enabled?) the audit
function doesn't do very much?
If you can reliably reproduce it one way might be to comment
out more and more of the audit code until you find who causes
the corruption (that might cause some corrupted audit data,
but that should be fine for testing)
-Andi
next prev parent reply other threads:[~2007-08-14 21:52 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 18:31 vm86.c audit_syscall_exit() call trashes registers Chuck Anderson
2007-08-14 20:42 ` Andi Kleen
2007-08-14 20:52 ` William Cattey
2007-08-14 21:28 ` Andi Kleen [this message]
2007-08-14 21:37 ` William Cattey
[not found] ` <20070814214622.GE23308@one.firstfloor.org>
[not found] ` <6655DD8B-D9C6-495D-9E22-2FDF6B375C9D@MIT.EDU>
[not found] ` <20070814221927.GH23308@one.firstfloor.org>
2007-09-25 23:38 ` William Cattey
2007-09-29 0:58 ` Jeremy Fitzhardinge
2007-09-29 1:13 ` William Cattey
2007-09-29 6:06 ` Jeremy Fitzhardinge
2007-09-29 6:09 ` Jeremy Fitzhardinge
2007-10-01 22:30 ` William Cattey
2007-10-01 23:49 ` Jeremy Fitzhardinge
2007-10-02 16:44 ` Chuck Ebbert
2007-10-04 23:58 ` William Cattey
2007-10-05 0:10 ` Chuck Ebbert
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=20070814212858.GB23308@one.firstfloor.org \
--to=andi@firstfloor.org \
--cc=cra@WPI.EDU \
--cc=linux-kernel@vger.kernel.org \
--cc=wdc@MIT.EDU \
/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