summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorFrederic Barrat <fbarrat@linux.vnet.ibm.com>2016-06-17 18:53:28 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2016-10-19 20:32:49 +1100
commitd2cf909cda5f8c5609cb7ed6cda816c3e15528c7 (patch)
tree5d33b795fcf64aba8e091649544b551b20c23015 /Kconfig
parent1001354ca34179f3db924eb66672442a173147dc (diff)
powerpc/mm: Prevent unlikely crash in copro_calculate_slb()
If a cxl adapter faults on an invalid address for a kernel context, we may enter copro_calculate_slb() with a NULL mm pointer (kernel context) and an effective address which looks like a user address. Which will cause a crash when dereferencing mm. It is clearly an AFU bug, but there's no reason to crash either. So return an error, so that cxl can ack the interrupt with an address error. Fixes: 73d16a6e0e51 ("powerpc/cell: Move data segment faulting code out of cell platform") Cc: stable@vger.kernel.org # v3.18+ Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com> Acked-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions