Home
last modified time | relevance | path

Searched hist:"9 a159190414d461fdac7ae5bb749c2d532b35419" (Results 1 – 1 of 1) sorted by relevance

/linux/arch/s390/kernel/
H A Dunwind_bc.cdiff 9a159190414d461fdac7ae5bb749c2d532b35419 Mon Jul 08 14:24:38 CEST 2019 Vasily Gorbik <gor@linux.ibm.com> s390/unwind: avoid int overflow in outside_of_stack

When current task is interrupted in-between stack frame allocation
and backchain write instructions new stack frame backchain pointer
is left uninitialized. That invalid backchain value is passed into
outside_of_stack for sanity check. Make sure int overflow does not happen
by subtracting stack_frame size from the stack "end" rather than adding
it to "random" backchain value.

Fixes: 41b0474c1b1c ("s390/unwind: introduce stack unwind API")
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>