]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:28 +0000 (18:14 -0700)
commit907a2dd41bc56bb8bee077ad09e5a84ea652e79b
tree20d32b50b88d8dfa2346316eed51390fc37b98ff
parent8feeb87d772d6611d7eaf9e0e870d1ed981ef322
powerpc/sysfs: Disable writing to PURR in guest mode

commit d1211af3049f4c9c1d8d4eb8f8098cc4f4f0d0c7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/sysfs.c