summaryrefslogtreecommitdiff
path: root/fs/ext2
diff options
context:
space:
mode:
authorVaibhav Jain <vaibhav@linux.ibm.com>2019-01-29 16:36:18 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-23 14:35:23 +0100
commitb22d9f07fc559c4a9674d7d0f893899042416467 (patch)
tree5332fcb8be17805f907529990da37e1178576718 /fs/ext2
parent5e89ae3d9ab7afd5332945255e79e2e2f3275a89 (diff)
cxl: Wrap iterations over afu slices inside 'afu_list_lock'
commit edeb304f659792fb5bab90d7d6f3408b4c7301fb upstream. Within cxl module, iteration over array 'adapter->afu' may be racy at few points as it might be simultaneously read during an EEH and its contents being set to NULL while driver is being unloaded or unbound from the adapter. This might result in a NULL pointer to 'struct afu' being de-referenced during an EEH thereby causing a kernel oops. This patch fixes this by making sure that all access to the array 'adapter->afu' is wrapped within the context of spin-lock 'adapter->afu_list_lock'. Fixes: 9e8df8a21963 ("cxl: EEH support") Cc: stable@vger.kernel.org # v4.3+ Acked-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Acked-by: Frederic Barrat <fbarrat@linux.ibm.com> Acked-by: Christophe Lombard <clombard@linux.vnet.ibm.com> Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ext2')
0 files changed, 0 insertions, 0 deletions