Owned by Dan Jurgens
Get this repository:
git clone https://git.launchpad.net/~danielj-mellanox/ubuntu/+source/linux-bluefield
Only Dan Jurgens can upload to this repository. If you are Dan Jurgens please log in for upload directions.


Name Last Modified Last Commit
tls_fixes 2021-02-19 20:42:51 UTC
net/tls: Protect from calling tls_dev_del for TLS RX twice

Author: Maxim Mikityanskiy
Author Date: 2020-11-25 22:18:10 UTC

net/tls: Protect from calling tls_dev_del for TLS RX twice

tls_device_offload_cleanup_rx doesn't clear tls_ctx->netdev after
calling tls_dev_del if TLX TX offload is also enabled. Clearing
tls_ctx->netdev gets postponed until tls_device_gc_task. It leaves a
time frame when tls_device_down may get called and call tls_dev_del for
RX one extra time, confusing the driver, which may lead to a crash.

This patch corrects this racy behavior by adding a flag to prevent
tls_device_down from calling tls_dev_del the second time.

Fixes: e8f69799810c ("net/tls: Add generic NIC offload infrastructure")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20201125221810.69870-1-saeedm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 025cc2fb6a4e84e9a0552c0017dcd1c24b7ac7da)

11 of 1 result
This repository contains Public information 
Everyone can see this information.