From: Christian Borntraeger Date: Thu, 28 Aug 2014 21:44:57 +0000 (+0200) Subject: KVM: s390/mm: Fix guest storage key corruption in ptep_set_access_flags X-Git-Tag: fixes-v3.17-rc4~13^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1951497d90d6754201af3e65241a06f9ef6755cd;p=pandora-kernel.git KVM: s390/mm: Fix guest storage key corruption in ptep_set_access_flags 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 Acked-by: Martin Schwidefsky Cc: stable@vger.kernel.org # v3.12+ --- Reading git-diff-tree failed