]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
cxl: Unmap MMIO regions when detaching a context
authorIan Munsie <imunsie@au1.ibm.com>
Mon, 8 Dec 2014 08:18:01 +0000 (19:18 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 12 Dec 2014 02:06:48 +0000 (13:06 +1100)
commitb123429e6a9e8d03aacf888d23262835f0081448
treeb1b9c9eb381437982de078d061c274264a25c104
parenta98e6e9f4e0224d85b4d951edc44af16dfe6094a
cxl: Unmap MMIO regions when detaching a context

If we need to force detach a context (e.g. due to EEH or simply force
unbinding the driver) we should prevent the userspace contexts from
being able to access the Problem State Area MMIO region further, which
they may have mapped with mmap().

This patch unmaps any mapped MMIO regions when detaching a userspace
context.

Cc: stable@vger.kernel.org
Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/context.c
drivers/misc/cxl/cxl.h
drivers/misc/cxl/file.c