Skip to content
Commit 76f33296 authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski
Browse files

sock: annotate data-races around prot->memory_pressure



*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>
parent d44036ca
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment