diff options
author | Maxim Mikityanskiy <[email protected]> | 2020-11-25 14:18:10 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2020-11-25 17:31:06 -0800 |
commit | 025cc2fb6a4e84e9a0552c0017dcd1c24b7ac7da (patch) | |
tree | a5e744c9d95e149dfe038bff54488d6094b633e0 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a060133c2058bcc5bf2f82e1135ce76b4bc9865b (diff) |
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 <[email protected]>
Signed-off-by: Saeed Mahameed <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions