From: Ralf Baechle <ralf@oss.sgi.com>
To: tommy.christensen@eicon.com
Cc: linux-mips@oss.sgi.com
Subject: Re: Fixup in unaligned.c
Date: Tue, 30 Oct 2001 10:17:09 +0100 [thread overview]
Message-ID: <20011030101709.A3816@dea.linux-mips.net> (raw)
In-Reply-To: <3BDD5B31.E12DE812@eicon.com>; from tommy.christensen@eicon.com on Mon, Oct 29, 2001 at 02:35:45PM +0100
On Mon, Oct 29, 2001 at 02:35:45PM +0100, tommy.christensen@eicon.com wrote:
> It seems we don't always handle bad user-mode pointers correctly.
> If put_user is called with an unmapped AND unaligned address it
> kills the current process instead of returning EFAULT.
>
> The reason for this is that we do compute_return_epc() in do_ade()
> before the exception table is searched, so we never get a match.
The missplaced branch emulation is a known problem in basically all of our
execption handers that have to emulate branches in software. It also
effects ptrace; it is possible that a debugger already observes the new epc
after the branch has been executed but the instruction in the delay slow
wasn't due to some problem like a page fault.
> Below is a simple patch to fix it (attached as well).
> The second part is not related, but it makes sense to only consult
> the MF_FIXADE flag on exceptions originating from user-mode, right?
That's actually an evil one from which local DoS attacks can be constructed.
Ralf
prev parent reply other threads:[~2001-10-30 9:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-29 13:35 Fixup in unaligned.c tommy.christensen
2001-10-30 9:17 ` Ralf Baechle [this message]
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=20011030101709.A3816@dea.linux-mips.net \
--to=ralf@oss.sgi.com \
--cc=linux-mips@oss.sgi.com \
--cc=tommy.christensen@eicon.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.