]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: s390/mm: Fix storage key corruption during swapping
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 28 Aug 2014 19:21:41 +0000 (21:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 20:41:03 +0000 (13:41 -0700)
commit379c54e876e3d4e25e31d4e09c1724458e515c53
tree0da89c43d0e29a0a82e904eac70629da7c86cf62
parentb44f41fa64679b93f22e184767fccd1311ff04cc
KVM: s390/mm: Fix storage key corruption during swapping

commit 3e03d4c46daa849880837d802e41c14132a03ef9 upstream.

Since 3.12 or more precisely  commit 0944fe3f4a32 ("s390/mm:
implement software referenced bits") guest storage keys get
corrupted during paging. This commit added another valid->invalid
translation for page tables - namely ptep_test_and_clear_young.
We have to transfer the storage key into the pgste in that case.

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