]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/entry: Fix last breaking event handling in case of stack corruption
authorHeiko Carstens <hca@linux.ibm.com>
Thu, 24 Apr 2025 15:07:01 +0000 (17:07 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 5 May 2025 13:46:34 +0000 (15:46 +0200)
commitae952eea6f4a7e2193f8721a5366049946e012e7
treed9c7713fcedb64c2ff600034001e10aa57e3f7e8
parentd2b8111c22d7d82f28df574acc54aec44ce3d45c
s390/entry: Fix last breaking event handling in case of stack corruption

In case of stack corruption stack_invalid() is called and the expectation
is that register r10 contains the last breaking event address. This
dependency is quite subtle and broke a couple of years ago without that
anybody noticed.

Fix this by getting rid of the dependency and read the last breaking event
address from lowcore.

Fixes: 56e62a737028 ("s390: convert to generic entry")
Acked-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/entry.S