Commit a7c48e30 authored by Eric Dumazet's avatar Eric Dumazet Committed by Yang Yingliang
Browse files

net: udp: annotate data race around udp_sk(sk)->corkflag



stable inclusion
from linux-4.19.209
commit f6a6cced386920fe3d24b79ea129827766ae4106

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

commit a9f59707 upstream.

up->corkflag field can be read or written without any lock.
Annotate accesses to avoid possible syzbot/KCSAN reports.

Fixes: 1da177e4 ("Linux-2.6.12-rc2")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: default avatarJason Yan <yanaijie@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 987cb6d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment