s390/mm: fix huge pte soft dirty copying
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 7 Jul 2020 13:38:54 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:16:47 +0000 (08:16 +0200)
commit2dfd182451d99dfa007072cb4bc7c7b39938be9a
tree618f65d29a0cb12e9cf4047aee0d299818f1fd94
parent0d62bc7e960f5b86ad8b57f9d39b3ea5fc8e4ad2
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