Commit cdbd5f86 authored by Maxim Mikityanskiy's avatar Maxim Mikityanskiy Committed by Ziyang Xuan
Browse files

net/tls: Replace TLS_RX_SYNC_RUNNING with RCU

mainline inclusion
from mainline-v5.13-rc5
commit 05fc8b6c
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I990AF


CVE: CVE-2021-47131

--------------------------------

RCU synchronization is guaranteed to finish in finite time, unlike a
busy loop that polls a flag. This patch is a preparation for the bugfix
in the next patch, where the same synchronize_net() call will also be
used to sync with the TX datapath.

Signed-off-by: default avatarMaxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: default avatarTariq Toukan <tariqt@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Conflicts:
	include/net/tls.h
	net/tls/tls_device.c
Signed-off-by: default avatarZiyang Xuan <william.xuanziyang@huawei.com>
parent 6495e334
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment