LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Mackerras <paulus@samba.org>
To: Roland McGrath <roland@redhat.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: unprivileged use of MSR_SE
Date: Thu, 20 Mar 2008 15:15:00 +1100	[thread overview]
Message-ID: <18401.58564.246569.341133@cargo.ozlabs.ibm.com> (raw)
In-Reply-To: <20080320002407.D911C26F995@magilla.localdomain>

Roland McGrath writes:

> I'd like to clean this up for powerpc too.  If there is no way at all for
> user-mode to set MSR_SE, then it doesn't much matter whether it shows up
> when ptrace reads it--ptrace just needs to ignore attempts to set it.  So
> if there's no reason not to, what I would do is remove MSR_SE from the
> MSR_DEBUGCHANGE mask and make sigreturn always clear MSR_SE.

OK, I found MSR_DEBUGCHANGE, it's in ptrace.c. :)  So it only applies
to attempts to change the MSR of a process using ptrace.  So, what you
want is just to disallow changing MSR via PTRACE_POKEUSR or
equivalent, then?

Paul.

      parent reply	other threads:[~2008-03-20  4:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-20  0:24 unprivileged use of MSR_SE Roland McGrath
2008-03-20  4:10 ` Paul Mackerras
2008-03-20  7:43   ` Roland McGrath
2008-03-20  4:15 ` Paul Mackerras [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=18401.58564.246569.341133@cargo.ozlabs.ibm.com \
    --to=paulus@samba.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=roland@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox