summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-08-24 20:49:57 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-27 11:00:14 +0200
commita918d32583e0d4ed9d9aac49988c5dfa384f3ede (patch)
tree65e15cbe4d1d598f3b997b298a4566cb8d3c9057 /block
parentc53f01698f68a3d6880c27e24a4e98ca6cd9feb9 (diff)
powerpc: Fix DAR reporting when alignment handler faults
commit f9effe925039cf54489b5c04e0d40073bb3a123d upstream. Anton noticed that if we fault part way through emulating an unaligned instruction, we don't update the DAR to reflect that. The DAR value is eventually reported back to userspace as the address in the SEGV signal, and if userspace is using that value to demand fault then it can be confused by us not setting the value correctly. This patch is ugly as hell, but is intended to be the minimal fix and back ports easily. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions