From: Ralf Baechle <ralf@linux-mips.org>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
sathesh_edara2003@yahoo.co.in, rajat.noida.india@gmail.com,
linux-mips@linux-mips.org
Subject: Re: unaligned access
Date: Fri, 23 Feb 2007 16:18:40 +0000 [thread overview]
Message-ID: <20070223161840.GA23178@linux-mips.org> (raw)
In-Reply-To: <005701c7573f$6aca0890$10eca8c0@grendel>
On Fri, Feb 23, 2007 at 09:18:59AM +0100, Kevin D. Kissell wrote:
> One thing about the current, system-call based interface that is kind-of
> cool, and different from both what you propose and what was described
> as being implemented for ARM, is that Ralf's scheme is per-thread.
> I don't know if that power really outweighs the ease-of-use aspect
> of being able to manipuate it from the shell command line, but it's
> not something to throw away lightly. I have no issues with moving
> the log data, should it be resurrected, from syslog to /sys/kernel/whatever,
> though.
There are two different things here that need to be sorted out - but for
years nobody noticed so this never really did show up on the radar:
o sysmips is really a compatibility interface meant to support software
that did originate on IRIX, RISC/os and maybe even MIPS/os. But
sysmips(MIPS_FIXADE,...) is a new operation that I came up with for
Linux. So I'd like this interface to die.
o sysmips(MIPS_FIXADE, ...) does control only the fixup operation of the
kernel on a per thread base. Loggin is not controlled by it; that was
available in the dark past only as a compile time option.
o The MIPS_FIXADE setting is inherited across clone and fork. I could
almost bet no software relying on this feature is actually explicitly
enabling it. Maybe the default should be off to make programmers
aware of this kind of issue in their code?
o The MIPS_FIXADE setting is valid for both kernel and user mode. So if
for example the TCP stack is taking an unaligned exception to process
an incoming packet, it will look at the setting of the process that just
happens to be running on the CPU.
o I think it would be handy to have a method to externally control the
MIPS_FIXADE setting of a process.
o Logging unaligned accesses is a dangerous thing; it can easily reach
a DoS-like volume.
Ralf
next prev parent reply other threads:[~2007-02-23 16:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-22 7:10 unaligned access sathesh babu
2007-02-22 7:53 ` Rajat Jain
2007-02-22 9:18 ` sathesh babu
2007-02-22 15:06 ` Kevin D. Kissell
2007-02-22 15:06 ` Kevin D. Kissell
2007-02-23 3:06 ` Ralf Baechle
2007-02-23 3:36 ` Atsushi Nemoto
2007-02-23 8:18 ` Kevin D. Kissell
2007-02-23 8:18 ` Kevin D. Kissell
2007-02-23 15:12 ` Atsushi Nemoto
2007-02-23 16:18 ` Ralf Baechle [this message]
2007-02-23 16:29 ` Maciej W. Rozycki
2007-02-23 9:48 ` sathesh babu
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=20070223161840.GA23178@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=anemo@mba.ocn.ne.jp \
--cc=kevink@mips.com \
--cc=linux-mips@linux-mips.org \
--cc=rajat.noida.india@gmail.com \
--cc=sathesh_edara2003@yahoo.co.in \
/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.