Commit 802895f0 authored by Eric Dumazet's avatar Eric Dumazet Committed by Yongqiang Liu
Browse files

netlink: annotate data races around sk_state

stable inclusion
from stable-v4.19.272
commit 4988b4ad0f7614d68ff5882b3e89fe37daa2b25b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6KOHU


CVE: NA

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

[ Upstream commit 9b663b5c ]

netlink_getsockbyportid() reads sk_state while a concurrent
netlink_connect() can change its value.

Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 72f0879d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment