aboutsummaryrefslogtreecommitdiff
path: root/fs/befs
diff options
context:
space:
mode:
authorMaxim Mikityanskiy2021-01-22 18:42:29 +0200
committerSaeed Mahameed2021-02-11 18:50:13 -0800
commitb850bbff965129c34f50962638c0a66c82563536 (patch)
tree2fe06a2fb7523d985f56786b85efd889ee4aaab4 /fs/befs
parentebf79b6be67c0a77a9ab7cdf74c43fd7d9619f0c (diff)
net/mlx5e: kTLS, Use refcounts to free kTLS RX priv context
wait_for_resync is unreliable - if it timeouts, priv_rx will be freed anyway. However, mlx5e_ktls_handle_get_psv_completion will be called sooner or later, leading to use-after-free. For example, it can happen if a CQ error happened, and ICOSQ stopped, but later on the queues are destroyed, and ICOSQ is flushed with mlx5e_free_icosq_descs. This patch converts the lifecycle of priv_rx to fully refcount-based, so that the struct won't be freed before the refcount goes to zero. Fixes: 0419d8c9d8f8 ("net/mlx5e: kTLS, Add kTLS RX resync support") Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com> Reviewed-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'fs/befs')
0 files changed, 0 insertions, 0 deletions