diff options
author | Ghanan Gowripalan <ghanan@google.com> | 2021-03-05 15:04:24 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-05 15:06:55 -0800 |
commit | 2db8f748593c09a283f5ce229bb6bfedc92849d1 (patch) | |
tree | 034dda4ee7c279bf18681358e20c8d09b1fa47c5 /pkg/tcpip/network/ipv4/BUILD | |
parent | 498709250a134d4d09a22d11cffdfdc402d9f052 (diff) |
Fix network protocol/endpoint lock order violation
IPv4 would violate the lock ordering of protocol > endpoint when closing
network endpoints by calling `ipv4.protocol.forgetEndpoint` while
holding the network endpoint lock.
PiperOrigin-RevId: 361232817
Diffstat (limited to 'pkg/tcpip/network/ipv4/BUILD')
-rw-r--r-- | pkg/tcpip/network/ipv4/BUILD | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/tcpip/network/ipv4/BUILD b/pkg/tcpip/network/ipv4/BUILD index 4b21ee79c..5e7f10f4b 100644 --- a/pkg/tcpip/network/ipv4/BUILD +++ b/pkg/tcpip/network/ipv4/BUILD @@ -32,12 +32,14 @@ go_test( "ipv4_test.go", ], deps = [ + "//pkg/sync", "//pkg/tcpip", "//pkg/tcpip/buffer", "//pkg/tcpip/checker", "//pkg/tcpip/faketime", "//pkg/tcpip/header", "//pkg/tcpip/link/channel", + "//pkg/tcpip/link/loopback", "//pkg/tcpip/link/sniffer", "//pkg/tcpip/network/arp", "//pkg/tcpip/network/internal/testutil", |