diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2019-03-19 01:05:41 -0700 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-04-09 12:33:50 -0700 |
commit | df3a8344d404a810b4aadbf19b08c8232fbaa715 (patch) | |
tree | cb0651e664c37def8385d8ebf9fee536116309ab /tools/perf/scripts/python/stackcollapse.py | |
parent | 31634bf5dcc418b5b2cacd954394c0c4620db6a2 (diff) |
net/mlx5: FPGA, tls, idr remove on flow delete
Flow is kfreed on mlx5_fpga_tls_del_flow but kept in the idr data
structure, this is risky and can cause use-after-free, since the
idr_remove is delayed until tls_send_teardown_cmd completion.
Instead of delaying idr_remove, in this patch we do it on
mlx5_fpga_tls_del_flow, before actually kfree(flow).
Added synchronize_rcu before kfree(flow)
Fixes: ab412e1dd7db ("net/mlx5: Accel, add TLS rx offload routines")
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions