android_kernel_sony_sdm845/include/linux/mlx5
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jack Morgenstein ccb89610b3 net/mlx5: Fix use-after-free in self-healing flow
[ Upstream commit 76d5581c870454be5f1f1a106c57985902e7ea20 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:36:30 +02:00
..
cmd.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
cq.h {net,IB}/mlx5: CQ commands via mlx5 ifc 2016-08-14 14:39:15 +03:00
device.h mlx5: fix bug reading rss_hash_type from CQE 2018-04-13 19:48:04 +02:00
doorbell.h net/mlx5_core: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
driver.h net/mlx5: Fix use-after-free in self-healing flow 2018-09-26 08:36:30 +02:00
fs.h net/mlx5: Add sniffer namespaces 2016-08-18 18:49:59 +03:00
mlx5_ifc.h net/mlx5: Define interface bits for fencing UMR wqe 2018-02-03 17:05:33 +01:00
port.h net/mlx5: Separate query_port_proto_oper for IB and EN 2016-08-18 18:49:52 +03:00
qp.h {net,IB}/mlx5: Modify QP commands via mlx5 ifc 2016-08-17 17:45:58 +03:00
srq.h {net, IB}/mlx5: Refactor internal SRQ API 2016-06-23 11:20:07 -04:00
transobj.h IB/mlx5: Support setting Ethernet priority for Raw Packet QPs 2016-01-21 12:01:09 -05:00
vport.h net/mlx5: Enable setting minimum inline header mode for VFs 2016-08-17 17:45:59 +03:00