linux-brain/drivers/net/ethernet/mellanox
Maor Gottlieb cd78d9c996 net/mlx5: Fix potential sleeping in atomic context
commit ee27e330a953595903979ffdb84926843595a9fe upstream.

Fixes the below flow of sleeping in atomic context by releasing
the RCU lock before calling to free_match_list.

build_match_list() <- disables preempt
-> free_match_list()
   -> tree_put_node()
      -> down_write_ref_node() <- take write lock

Fixes: 693c6883bb ("net/mlx5: Add hash table for flow groups in flow table")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-22 12:26:41 +02:00
..
mlx4 mlx4: Fix missing error code in mlx4_load_one() 2021-08-04 12:27:39 +02:00
mlx5/core net/mlx5: Fix potential sleeping in atomic context 2021-09-22 12:26:41 +02:00
mlxfw net/mlxfw: Fix out-of-memory error in mfa2 flash burning 2020-01-04 19:18:44 +01:00
mlxsw mlxsw: spectrum_mr: Update egress RIF list before route's action 2021-05-11 14:04:14 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00