mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
To: Austin S Hemmelgarn <ahferroin7@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>,
	"H. Peter Anvin" <h.peter.anvin@intel.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Matthew Garrett <mjg59@srcf.ucam.org>
Subject: Re: RFC: Tainting the kernel on raw I/O access
Date: Thu, 4 Sep 2014 17:43:40 +0100	[thread overview]
Message-ID: <20140904174340.24e8bdc0@alan.etchedpixels.co.uk> (raw)
In-Reply-To: <540872E9.7060608@gmail.com>

> > As for the original purpose of taints, I'm not aware of any
> > problems with MSR access or port IO causing excessive 
> > kernel oops reports. Are you?

I'm not. From the bugzilla trends I don't think its a major cause, and we
can usually root out the "user with dumb external module" problem already.

> Really? Either one can be used to modify the running kernel (or
> microcode), and possibly even destroy hardware. 

At least on x86 I would hope not the latter at least on modern systems.
So the most irritating thing you can do is probably rootkit the box. It's
not as if you can't rootkit a typical distribution shipping Linux system
half a dozen other simpler ways than using I/O ports. Besides which once
someone has rootkitted your box it won't show the taint anyway !

As a security measure the tainting is next to useless.

As a debug aid it's potentially handy.

> > If there are none I don't think it makes sense.
> > 
> > At least personally I use MSR accesses quite frequently
> > for benign purposes.
> But how much of that is just reading MSR's, and of the writes, how much
> are either debugging or things that the average user isn't ever going to do?

Most of the uses are benign and sensible things like power monitoring
tools. 

Alan

  reply	other threads:[~2014-09-04 16:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-03 21:20 H. Peter Anvin
2014-09-03 22:15 ` Matthew Garrett
2014-09-03 22:20 ` One Thousand Gnomes
2014-09-03 22:25   ` H. Peter Anvin
2014-09-04 15:56     ` One Thousand Gnomes
2014-09-03 23:46 ` Andi Kleen
2014-09-04 14:10   ` Austin S Hemmelgarn
2014-09-04 16:43     ` One Thousand Gnomes [this message]
2014-09-04  5:07 ` Ingo Molnar
2014-09-04 16:47   ` One Thousand Gnomes

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=20140904174340.24e8bdc0@alan.etchedpixels.co.uk \
    --to=gnomes@lxorguk.ukuu.org.uk \
    --cc=ahferroin7@gmail.com \
    --cc=andi@firstfloor.org \
    --cc=h.peter.anvin@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®