From: "H. Peter Anvin" <hpa@zytor.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Seiji Aguchi <seiji.aguchi@hds.com>,
linux-kernel@vger.kernel.org, x86@kernel.org, tglx@linutronix.de,
mingo@elte.hu, bp@alien8.de, linux-edac@vger.kernel.org,
tony.luck@intel.com, dle-develop@lists.sourceforge.net,
tomoki.sekiyama@hds.com
Subject: Re: [PATCH v13 3/3] trace,x86: Add irq vector tracepoints
Date: Tue, 04 Jun 2013 11:15:59 -0700 [thread overview]
Message-ID: <51AE2EDF.3000505@zytor.com> (raw)
In-Reply-To: <1370303581.26799.109.camel@gandalf.local.home>
On 06/03/2013 04:53 PM, Steven Rostedt wrote:
>
> This way we wont be opening up any easy root holes where if a process
> finds a way to modify some arbitrary kernel memory, we can prevent it
> from modifying the current_idt_descr_ptr and have a nice way to exploit
> the IDT. Sure, one can argue that if they can modify arbitrary kernel
> memory, we may already be lost, but lets not make it easier for them
> than need be.
>
I don't like current_idt_descr_ptr if we can avoid it. It is a direct
proxy for reading and writing the original IDT, in other words, it
really hasn't really addressed the issue.
What I'm thinking we really should have is a function that returns the
IDT that we currently should be using, based on the current state. If
that state is, say, tracing on/off and NMI on/off, then that can be
indicated by bits in a state vector.
The point is that the IDT address itself should not be mutable state if
it can be at all avoided.
-hpa
next prev parent reply other threads:[~2013-06-04 18:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-03 19:25 [PATCH v13 0/3]trace,x86: irq vector tracepoint support Seiji Aguchi
2013-06-03 19:28 ` [PATCH v13 1/3] tracing: Add DEFINE_EVENT_FN() macro Seiji Aguchi
2013-06-03 19:29 ` [PATCH v13 2/3] trace,x86: Introduce entering/exiting_irq() Seiji Aguchi
2013-06-03 19:29 ` [PATCH v13 3/3] trace,x86: Add irq vector tracepoints Seiji Aguchi
2013-06-03 23:53 ` Steven Rostedt
2013-06-04 15:50 ` Seiji Aguchi
2013-06-04 18:15 ` H. Peter Anvin [this message]
2013-06-04 18:32 ` Steven Rostedt
2013-06-04 18:37 ` Seiji Aguchi
2013-06-04 20:20 ` Seiji Aguchi
2013-06-04 20:58 ` Steven Rostedt
2013-06-04 21:01 ` Seiji Aguchi
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=51AE2EDF.3000505@zytor.com \
--to=hpa@zytor.com \
--cc=bp@alien8.de \
--cc=dle-develop@lists.sourceforge.net \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=seiji.aguchi@hds.com \
--cc=tglx@linutronix.de \
--cc=tomoki.sekiyama@hds.com \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
/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.