]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390/mm: Fix guest storage key corruption in ptep_set_access_flags
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 28 Aug 2014 21:44:57 +0000 (23:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:03 +0000 (13:41 -0700)
commit52446fb9b34505cb168b5cebe2274b24b69fc7f6
tree1554e3d16fb507330adbc0fc2af07b28ad56222a
parent379c54e876e3d4e25e31d4e09c1724458e515c53
KVM: s390/mm: Fix guest storage key corruption in ptep_set_access_flags

commit 1951497d90d6754201af3e65241a06f9ef6755cd upstream.

commit 0944fe3f4a32 ("s390/mm: implement software referenced bits")
triggered another paging/storage key corruption. There is an
unhandled invalid->valid pte change where we have to set the real
storage key from the pgste.
When doing paging a guest page might be swapcache or swap and when
faulted in it might be read-only and due to a parallel scan old.
An do_wp_page will make it writeable and young. Due to software
reference tracking this page was invalid and now becomes valid.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/include/asm/pgtable.h