Files
twx-linux/include/net
Maxim Mikityanskiy 2ba413da62 net/tls: Protect from calling tls_dev_del for TLS RX twice
[ Upstream commit 025cc2fb6a ]

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: e8f6979981 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-08 10:18:52 +01:00
..
2019-07-03 13:14:42 +02:00
…
2019-06-17 19:51:56 +02:00
2019-03-23 20:09:51 +01:00
…
…
…
…
2019-02-23 09:07:27 +01:00
…
…
…
…
…
…
…
…
…
…
2019-11-10 11:27:54 +01:00
…
2020-07-22 09:31:58 +02:00
…
…
…
…
…
2019-03-10 07:17:19 +01:00
…
…
…
…
…
…
…
2019-11-20 18:46:35 +01:00
2018-06-18 22:40:32 +02:00
…
…
…
…
…
…
2018-04-07 22:32:31 -04:00
…
…
…
…
2018-05-16 07:23:35 +02:00
…
…
2018-05-16 07:23:35 +02:00
…
2018-05-31 22:48:46 -04:00
2018-06-22 13:43:27 +09:00
2018-06-22 13:43:27 +09:00
…
…
…
2020-05-20 08:18:38 +02:00
…
…
2018-04-17 13:53:13 -04:00
…
…
…