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

sock: annotate data-races around prot->memory_pressure

mainline inclusion
from mainline-v6.5
commit 76f33296
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I85XNK


CVE: NA

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

*prot->memory_pressure is read/writen locklessly, we need
to add proper annotations.

A recent commit added a new race, it is time to audit all accesses.

Fixes: 2d0c88e8 ("sock: Fix misuse of sk_under_memory_pressure()")
Fixes: 4d93df0a ("[SCTP]: Rewrite of sctp buffer management code")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Abel Wu <wuyun.abel@bytedance.com>
Reviewed-by: default avatarShakeel Butt <shakeelb@google.com>
Link: https://lore.kernel.org/r/20230818015132.2699348-1-edumazet@google.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 96d6ab92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment