gvisor/pkg/tcpip
Ghanan Gowripalan 782041509f Prevent race when reassigning CancellableTimer
Capture a timer's locker for each instance of a CancellableTimer so that
reassigning a tcpip.CancellableTimer does not cause a data race.

Reassigning a tcpip.CancellableTimer updates its underlying locker. When
a timer fires, it does a read of the timer's locker variable to lock it.
This read of the locker was not synchronized so a race existed where one
goroutine may reassign the timer (updating the locker) and another
handles the timer firing (attempts to lock the timer's locker).

Test: tcpip_test.TestCancellableTimerReassignment
PiperOrigin-RevId: 307499822
2020-04-20 16:32:44 -07:00
..
adapters/gonet Mark gonet_test as flaky. 2020-03-12 13:11:48 -07:00
buffer Remove View.First() and View.RemoveFirst() 2020-04-17 13:25:57 -07:00
checker Reduce flakiness in tcp_test. 2020-04-14 19:33:35 -07:00
hash/jenkins Standardize on tools directory. 2020-01-27 12:21:00 -08:00
header Support NDP DNS Search List option 2020-04-17 13:56:19 -07:00
link Remove View.First() and View.RemoveFirst() 2020-04-17 13:25:57 -07:00
network Remove View.First() and View.RemoveFirst() 2020-04-17 13:25:57 -07:00
ports Standardize on tools directory. 2020-01-27 12:21:00 -08:00
sample Standardize on tools directory. 2020-01-27 12:21:00 -08:00
seqnum Don't accept segments outside the receive window 2020-04-19 22:16:14 -07:00
stack Merge pull request #2313 from kevinGC:firstn 2020-04-20 14:31:12 -07:00
transport Merge pull request #2313 from kevinGC:firstn 2020-04-20 14:31:12 -07:00
BUILD Move tcpip.PacketBuffer and IPTables to stack package. 2020-03-24 09:06:26 -07:00
tcpip.go Fix data race in tcp_test. 2020-04-16 16:49:18 -07:00
tcpip_test.go Fix all printf formatting errors. 2020-04-08 10:14:34 -07:00
time.s Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
time_unsafe.go Initial network namespace support. 2020-02-20 15:20:40 -08:00
timer.go Prevent race when reassigning CancellableTimer 2020-04-20 16:32:44 -07:00
timer_test.go Prevent race when reassigning CancellableTimer 2020-04-20 16:32:44 -07:00