summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/network/ipv4/BUILD
diff options
context:
space:
mode:
authorGhanan Gowripalan <ghanan@google.com>2021-03-05 15:04:24 -0800
committergVisor bot <gvisor-bot@google.com>2021-03-05 15:06:55 -0800
commit2db8f748593c09a283f5ce229bb6bfedc92849d1 (patch)
tree034dda4ee7c279bf18681358e20c8d09b1fa47c5 /pkg/tcpip/network/ipv4/BUILD
parent498709250a134d4d09a22d11cffdfdc402d9f052 (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/BUILD2
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",