linux_dsm_epyc7002/drivers/infiniband
Yishai Hadas a8af8694a5 RDMA/mlx5: Fix async events cleanup flows
As in the prior patch, the devx code is not fully cleaning up its
event_lists before finishing driver_destroy allowing a later read to
trigger user after free conditions.

Re-arrange things so that the event_list is always empty after destroy and
ensure it remains empty until the file is closed.

Fixes: f7c8416cce ("RDMA/core: Simplify destruction of FD uobjects")
Link: https://lore.kernel.org/r/20200212072635.682689-7-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-02-13 09:48:17 -04:00
..
core RDMA/core: Add missing list deletion on freeing event queue 2020-02-13 09:44:49 -04:00
hw RDMA/mlx5: Fix async events cleanup flows 2020-02-13 09:48:17 -04:00
sw RDMA/siw: Remove unwanted WARN_ON in siw_cm_llp_data_ready() 2020-02-11 14:33:58 -04:00
ulp RDMA subsystem updates for 5.6 2020-01-31 14:40:36 -08:00
Kconfig RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00