aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/futex-contention.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-08-03 16:30:21 +0000
committerJakub Kicinski <[email protected]>2023-08-04 18:27:58 -0700
commita47e598fbd8617967e49d85c49c22f9fc642704c (patch)
tree7d9d662e64eb37268b7197729e3cafac5d59bf81 /tools/perf/scripts/python/futex-contention.py
parentfc2ea6ab0a73b58328c61237017e28ba49b3a21e (diff)
dccp: fix data-race around dp->dccps_mss_cache
dccp_sendmsg() reads dp->dccps_mss_cache before locking the socket. Same thing in do_dccp_getsockopt(). Add READ_ONCE()/WRITE_ONCE() annotations, and change dccp_sendmsg() to check again dccps_mss_cache after socket is locked. Fixes: 7c657876b63c ("[DCCP]: Initial implementation") Reported-by: syzbot <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions