aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stat-cpi.py
diff options
context:
space:
mode:
authorGuillaume Nault <[email protected]>2019-12-06 11:38:49 +0000
committerDavid S. Miller <[email protected]>2019-12-07 05:05:14 +0000
commit721c8dafad26ccfa90ff659ee19755e3377b829d (patch)
tree725d07517fb3ffada269bee3a5c69861c6a831c8 /tools/perf/scripts/python/stat-cpi.py
parenttcp: tighten acceptance of ACKs not matching a child socket (diff)
downloadkernel-721c8dafad26ccfa90ff659ee19755e3377b829d.tar.gz
kernel-721c8dafad26ccfa90ff659ee19755e3377b829d.zip
tcp: Protect accesses to .ts_recent_stamp with {READ,WRITE}_ONCE()
Syncookies borrow the ->rx_opt.ts_recent_stamp field to store the timestamp of the last synflood. Protect them with READ_ONCE() and WRITE_ONCE() since reads and writes aren't serialised. Use of .rx_opt.ts_recent_stamp for storing the synflood timestamp was introduced by a0f82f64e269 ("syncookies: remove last_synq_overflow from struct tcp_sock"). But unprotected accesses were already there when timestamp was stored in .last_synq_overflow. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Guillaume Nault <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions