syzbot


panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:

Status: fixed on 2024/06/26 15:13
Fix commit: c4dc0321aa40 Do not hold BridgeEndpoint.mu during dispatcher.DeliverNetworkPacket().
First crash: 159d, last: 157d

Sample crash report:
panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
goroutine 309 [running]:
gvisor.dev/gvisor/pkg/tcpip/stack.(*stackRWMutex).RLock(0xc000755dc0)
	bazel-out/k8-fastbuild/bin/pkg/tcpip/stack/stack_mutex.go:59 +0x3c
gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).FindNICNameFromID(0xc000755808, 0x2)
	pkg/tcpip/stack/stack.go:2187 +0x5d
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc0004fc008, 0xc0002be280)
	pkg/tcpip/network/ipv4/ipv4.go:867 +0x5f9
gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc0000406c8, 0x800, 0xc0002be280)
	pkg/tcpip/stack/nic.go:757 +0x217
gvisor.dev/gvisor/pkg/tcpip/stack.(*BridgeEndpoint).injectInboundLocked(...)
	pkg/tcpip/stack/bridge.go:156
gvisor.dev/gvisor/pkg/tcpip/stack.(*bridgePort).DeliverNetworkPacket(0xc00073f810, 0x800, 0xc0002be280)
	pkg/tcpip/stack/bridge.go:58 +0x343
gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000244500, 0x800, 0xc0002be280)
	pkg/tcpip/link/nested/nested.go:61 +0x99
gvisor.dev/gvisor/pkg/tcpip/link/packetsocket.(*endpoint).DeliverNetworkPacket(0xc000244500, 0x800, 0xc0002be280)
	pkg/tcpip/link/packetsocket/packetsocket.go:47 +0x4e
gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc0002444b0, 0x800, 0xc0002be280)
	pkg/tcpip/link/nested/nested.go:61 +0x99
gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc0002444b0, 0x0?, 0xc0002be280)
	pkg/tcpip/link/ethernet/ethernet.go:82 +0x285
gvisor.dev/gvisor/pkg/tcpip/link/veth.(*Endpoint).InjectInbound(0xc000383e00, 0x800, 0xc0002be280)
	pkg/tcpip/link/veth/veth.go:122 +0x99
gvisor.dev/gvisor/pkg/tcpip/link/veth.NewPair.func1()
	pkg/tcpip/link/veth/veth.go:77 +0x8a
created by gvisor.dev/gvisor/pkg/tcpip/link/veth.NewPair in goroutine 191
	pkg/tcpip/link/veth/veth.go:75 +0x491

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/21 23:44 gvisor 0853a7491ddf edc5149a .config console log report syz / log C ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 16:40 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 16:34 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 16:33 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 16:14 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 16:13 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 16:13 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 15:54 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 15:32 gvisor 18c75622863f edc5149a .config console log report syz / log C ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 20:23 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 20:22 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 19:37 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 19:36 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-2-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 19:30 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 19:29 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 15:04 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 15:03 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 14:56 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 14:56 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-2-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 14:49 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 14:49 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 11:15 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 11:01 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 10:21 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/21 10:20 gvisor 18c75622863f edc5149a .config console log report info ci-gvisor-systrap-1-race-cover panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/20 09:04 gvisor 08459dcf9238 41b7e219 .config console log report info ci-gvisor-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
2024/06/19 21:35 gvisor 75c9597d8ec8 41b7e219 .config console log report info ci-gvisor-arm64-ptrace-1-race panic: WARNING: circular locking detected: stack.bridgeRWMutex -> stack.stackRWMutex:
* Struck through repros no longer work on HEAD.