Skip to content

Commit 634692a

Browse files
author
Martin Schwidefsky
committed
s390/suspend: fix stack setup in swsusp_arch_suspend
The patch that added support for the virtually mapped kernel stacks changed swsusp_arch_suspend to switch to the nodat-stack as the vmap stack is not available while going in and out of suspend. Unfortunately the switch to the nodat-stack is incorrect which breaks suspend to disk. Cc: stable@vger.kernel.org # v4.20 Fixes: ce3dc44 ("s390: add support for virtually mapped kernel stacks") Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent f17b5f0 commit 634692a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/s390/kernel/swsusp.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
.section .text
3131
ENTRY(swsusp_arch_suspend)
3232
lg %r1,__LC_NODAT_STACK
33-
aghi %r1,-STACK_FRAME_OVERHEAD
3433
stmg %r6,%r15,__SF_GPRS(%r1)
34+
aghi %r1,-STACK_FRAME_OVERHEAD
3535
stg %r15,__SF_BACKCHAIN(%r1)
36-
lgr %r1,%r15
36+
lgr %r15,%r1
3737

3838
/* Store FPU registers */
3939
brasl %r14,save_fpu_regs

0 commit comments

Comments
 (0)