]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390: Correct register corruption in critical section cleanup
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 21 Jun 2018 12:49:38 +0000 (14:49 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 14 Jan 2019 09:28:55 +0000 (09:28 +0000)
commit3d9bc478f80d19f14465bafb813c3fee57ce1f17
tree1e980fa59a908642730c68e224825f902975a71f
parent402116291a8e49478094f0f03567915019010dc5
s390: Correct register corruption in critical section cleanup

BugLink: http://bugs.launchpad.net/bugs/1808399
commit 891f6a726cacbb87e5b06076693ffab53bd378d7 upstream.

In the critical section cleanup we must not mess with r1.  For march=z9
or older, larl + ex (instead of exrl) are used with r1 as a temporary
register. This can clobber r1 in several interrupt handlers. Fix this by
using r11 as a temp register.  r11 is being saved by all callers of
cleanup_critical.

Fixes: 6dd85fbb87 ("s390: move expoline assembler macros to a header")
Cc: stable@vger.kernel.org #v4.16
Reported-by: Oliver Kurz <okurz@suse.com>
Reported-by: Petr Tesařík <ptesarik@suse.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/s390/kernel/entry.S