From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Zachary Amsden <zach@vmware.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
davej@codemonkey.org.uk, hpa@zytor.com, bgerst@didntduck.org,
Riley@Williams.Name
Subject: Re: PROBLEM: x86 alignment check bug
Date: Wed, 08 Sep 2004 14:26:35 +0100 [thread overview]
Message-ID: <1094649979.11678.28.camel@localhost.localdomain> (raw)
In-Reply-To: <413E498D.4020807@vmware.com>
On Mer, 2004-09-08 at 00:51, Zachary Amsden wrote:
> Exception reporting for alignment check violations on x86 is broken
> (unfortunately, rather badly, and rather hard to fix). Look at the trap
> function which fills in the si_addr field during an unaligned memory
> access, 2.6.8.1-mm4+, arch/i386/kernel/traps.c, Line 522:
So it fills in a value with random data that should be zero. Ok thats
hardly "badly".
> Clearly, this is not correct. Considering how difficult the fix is (the
> kernel must disassemble the faulting instruction and use register
> information to determine the faulting address)
It would be a nice extension although it would break other OS's if it
used %cr2 for this since they use it for thread id.
next prev parent reply other threads:[~2004-09-08 14:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-07 23:51 PROBLEM: x86 alignment check bug Zachary Amsden
2004-09-08 0:08 ` David S. Miller
2004-09-08 12:12 ` Gabriel Paubert
2004-09-08 18:26 ` David S. Miller
2004-09-08 13:26 ` Alan Cox [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-09-09 16:29 Petr Vandrovec
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=1094649979.11678.28.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=Riley@Williams.Name \
--cc=bgerst@didntduck.org \
--cc=davej@codemonkey.org.uk \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zach@vmware.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.