s390/mm: fix huge pte soft dirty copying
commit1a5751640796ae1a593f9cae99983374c66c91d3
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 7 Jul 2020 13:38:54 +0000 (7 15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:17:28 +0000 (16 08:17 +0200)
tree7e6eada5c2905aef7b5130196e4588e15b052409
parent391a502e5f4858926bc591486917fd5dd67bd1be
s390/mm: fix huge pte soft dirty copying

commit 528a9539348a0234375dfaa1ca5dbbb2f8f8e8d2 upstream.

If the pmd is soft dirty we must mark the pte as soft dirty (and not dirty).
This fixes some cases for guest migration with huge page backings.

Cc: <stable@vger.kernel.org> # 4.8
Fixes: bc29b7ac1d9f ("s390/mm: clean up pte/pmd encoding")
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/mm/hugetlbpage.c