Commit 574659dd authored by Eric Dumazet's avatar Eric Dumazet Committed by Zheng Zengkai
Browse files

tcp: sk->sk_bound_dev_if once in inet_request_bound_dev_if()

stable inclusion
from stable-v5.10.137
commit b7325b27d8697a64858f673bbaba0741cff740cc
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b7325b27d8697a64858f673bbaba0741cff740cc



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

[ Upstream commit fdb5fd7f ]

inet_request_bound_dev_if() reads sk->sk_bound_dev_if twice
while listener socket is not locked.

Another cpu could change this field under us.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent a2df8254
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment