]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: fix addressing exception after suspend/resume
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Tue, 7 Aug 2018 16:57:11 +0000 (18:57 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 9 Aug 2018 06:05:48 +0000 (08:05 +0200)
commit723e9c204b74306358a802b2138bd29ff0b2b19d
tree1632e0bf35b441b454f9d0ebda84c1e99ecbe454
parentc158968911639ee768cd1c5ea80350279e583b95
s390/mm: fix addressing exception after suspend/resume

Commit 347e01a39a67 "s390/mm: tag normal pages vs pages used in page tables"
accidentally changed the logic in arch_set_page_states(), which is used by
the suspend/resume code. set_page_stable(page, order) was changed to
set_page_stable_dat(page, 0). After this, only the first page of higher order
pages will be set to stable, and a write to one of the unstable pages will
result in an addressing exception.

Fix this by using "order" again, instead of "0".

Fixes: 347e01a39a67 ("s390/mm: tag normal pages vs pages used in page tables")
Cc: stable@vger.kernel.org # 4.14+
Reviewed-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/page-states.c