-
由 Eric Dumazet 提交于
mainline inclusion from mainline-v5.4-rc4 commit 1f142c17d19a5618d5a633195a46f2c8be9bf232 category: bugfix bugzilla: 24138 CVE: NA ------------------------------------- tcp_memory_pressure is read without holding any lock, and its value could be changed on other cpus. Use READ_ONCE() to annotate these lockless reads. The write side is already using atomic ops. Fixes: b8da51eb ("tcp: introduce tcp_under_memory_pressure()") Signed-off-by: NEric Dumazet <edumazet@google.com> Signed-off-by: NJakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: Nguodeqing <geffrey.guo@huawei.com> Reviewed-by: NWenan Mao <maowenan@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
ad98797e