diff options
author | Maor Gottlieb <maorg@nvidia.com> | 2021-09-01 11:48:13 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-09-07 14:16:55 -0700 |
commit | ee27e330a953595903979ffdb84926843595a9fe (patch) | |
tree | c8a12259f83501822090dc6ada558cde4726de85 /net/unix/af_unix.c | |
parent | dfe6fd72b5f1878b16aa2c8603e031bbcd66b96d (diff) | |
download | linux-ee27e330a953595903979ffdb84926843595a9fe.tar.gz linux-ee27e330a953595903979ffdb84926843595a9fe.tar.bz2 linux-ee27e330a953595903979ffdb84926843595a9fe.zip |
net/mlx5: Fix potential sleeping in atomic context
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: 693c6883bbc4 ("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>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions