unprivileged use of MSR_SE

Paul Mackerras paulus at samba.org
Thu Mar 20 15:15:00 EST 2008


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.



More information about the Linuxppc-dev mailing list