summaryrefslogtreecommitdiff
path: root/drivers/regulator/ad5398.c
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-03-10 11:52:55 +0300
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-03-10 16:35:42 +0300
commite370e4769463a65dcf8806fa26d2874e0542ac41 (patch)
tree29ab4542734a87a38ac31d709e7c5507661e44eb /drivers/regulator/ad5398.c
parent8f100bb1ff27873dd71f636da670e503b9ade3c6 (diff)
downloadlinux-e370e4769463a65dcf8806fa26d2874e0542ac41.tar.xz
s390: fix floating pointer register corruption (again)
There is a tricky interaction between the machine check handler and the critical sections of load_fpu_regs and save_fpu_regs functions. If the machine check interrupts one of the two functions the critical section cleanup will complete the function before the machine check handler s390_do_machine_check is called. Trouble is that the machine check handler needs to validate the floating point registers *before* and not *after* the completion of load_fpu_regs/save_fpu_regs. The simplest solution is to rewind the PSW to the start of the load_fpu_regs/save_fpu_regs and retry the function after the return from the machine check handler. Tested-by: Christian Borntraeger <borntraeger@de.ibm.com> Cc: <stable@vger.kernel.org> # 4.3+ Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/regulator/ad5398.c')
0 files changed, 0 insertions, 0 deletions