powerpc/sysfs: Disable writing to PURR in guest mode
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Tue, 1 Oct 2013 19:04:10 +0000 (00:34 +0530)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 3 Oct 2013 07:22:53 +0000 (17:22 +1000)
arch/powerpc/kernel/sysfs.c exports PURR with write permission.
This may be valid for kernel in phyp mode. But writing to
the file in guest mode causes crash due to a priviledge violation

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org>

No differences found