summaryrefslogtreecommitdiff
path: root/drivers/s390/crypto/vfio_ap_ops.c
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2019-07-08 14:24:38 +0200
committerVasily Gorbik <gor@linux.ibm.com>2019-07-11 20:40:02 +0200
commit9a159190414d461fdac7ae5bb749c2d532b35419 (patch)
tree5a56c4dde47542d0b300506c1a7bb34df0242173 /drivers/s390/crypto/vfio_ap_ops.c
parent73df167c819e49d65576e3015f2b1385034baafb (diff)
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>
Diffstat (limited to 'drivers/s390/crypto/vfio_ap_ops.c')
0 files changed, 0 insertions, 0 deletions