]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390/mm: try a cow on read only pages for key ops
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 19 Aug 2014 14:19:35 +0000 (16:19 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 25 Aug 2014 12:35:28 +0000 (14:35 +0200)
commit3a2c8c5b047a8e290cd9fd28ff0af736598e4e09
tree223d790283f4379ce84a87660d100a1f1933cffd
parentcf827075ba61a2a0e76165ba9c3a8369c5cda365
KVM: s390/mm: try a cow on read only pages for key ops

The PFMF instruction handler  blindly wrote the storage key even if
the page was mapped R/O in the host. Lets try a COW before continuing
and bail out in case of errors.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Cc: stable@vger.kernel.org
arch/s390/mm/pgtable.c