diff options
author | lstewart <lstewart@FreeBSD.org> | 2009-07-13 11:59:38 +0000 |
---|---|---|
committer | lstewart <lstewart@FreeBSD.org> | 2009-07-13 11:59:38 +0000 |
commit | d3041990a52003f5774eb40cf3224a22d2dca3e8 (patch) | |
tree | e83d9042b5936e6b6840720eb706159296313759 /ObsoleteFiles.inc | |
parent | 31cb6fd0f611d62a67ef9aa10d33bec66c2ca87e (diff) | |
download | FreeBSD-src-d3041990a52003f5774eb40cf3224a22d2dca3e8.zip FreeBSD-src-d3041990a52003f5774eb40cf3224a22d2dca3e8.tar.gz |
Fix a race in the manipulation of the V_tcp_sack_globalholes global variable,
which is currently not protected by any type of lock. When triggered, the bug
would sometimes cause a panic when the TCP activity to an affected machine
eventually slowed during a lull. The panic only occurs if INVARIANTS is compiled
into the kernel, and has laid dormant for some time as a result of INVARIANTS
being off by default except in FreeBSD-CURRENT.
Switch to atomic operations in the locations where the variable is changed.
Reads have not been updated to be protected by atomics, so there is a
possibility of accounting errors in any given calculation where the variable is
read. This is considered unlikely to occur in the wild, and will not cause
serious harm on rare occasions where it does.
Thanks to Robert Watson for debugging help.
Reported by: Kamigishi Rei <spambox at haruhiism dot net>
Tested by: Kamigishi Rei <spambox at haruhiism dot net>
Reviewed by: silby
Approved by: re (rwatson), kensmith (mentor temporarily unavailable)
Diffstat (limited to 'ObsoleteFiles.inc')
0 files changed, 0 insertions, 0 deletions