linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Jack Morgenstein 76d5581c87 net/mlx5: Fix use-after-free in self-healing flow
When the mlx5 health mechanism detects a problem while the driver
is in the middle of init_one or remove_one, the driver needs to prevent
the health mechanism from scheduling future work; if future work
is scheduled, there is a problem with use-after-free: the system WQ
tries to run the work item (which has been freed) at the scheduled
future time.

Prevent this by disabling work item scheduling in the health mechanism
when the driver is in the middle of init_one() or remove_one().

Fixes: e126ba97db ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Reviewed-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2018-09-05 17:08:33 -07:00
..
mlx4
mlx5/core net/mlx5: Fix use-after-free in self-healing flow 2018-09-05 17:08:33 -07:00
mlxfw
mlxsw mlxsw: spectrum_buffers: Set up a dedicated pool for BUM traffic 2018-09-05 07:55:43 -07:00
Kconfig
Makefile