Files
linux/drivers/infiniband/hw/hfi1
Douglas Miller 2bbac98d09 RDMA/hfi1: Fix use-after-free bug for mm struct
Under certain conditions, such as MPI_Abort, the hfi1 cleanup code may
represent the last reference held on the task mm.
hfi1_mmu_rb_unregister() then drops the last reference and the mm is freed
before the final use in hfi1_release_user_pages().  A new task may
allocate the mm structure while it is still being used, resulting in
problems. One manifestation is corruption of the mmap_sem counter leading
to a hang in down_write().  Another is corruption of an mm struct that is
in use by another task.

Fixes: 3d2a9d6425 ("IB/hfi1: Ensure correct mm is used at all times")
Link: https://lore.kernel.org/r/20220408133523.122165.72975.stgit@awfm-01.cornelisnetworks.com
Cc: <stable@vger.kernel.org>
Signed-off-by: Douglas Miller <doug.miller@cornelisnetworks.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2022-04-08 15:40:06 -03:00
..
2019-06-28 22:34:26 -03:00
2021-08-25 14:56:48 -03:00
2021-12-07 13:22:54 -04:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-12-07 13:22:54 -04:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2020-05-21 11:23:56 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2019-02-05 18:07:43 -05:00
2019-04-24 11:31:49 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-07-30 10:06:08 -03:00
2021-09-08 08:33:04 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00
2022-03-04 17:22:02 -04:00
2021-08-25 14:56:48 -03:00
2021-08-25 14:56:48 -03:00