syzbot


panic: addresses IP and fe80::aa do not have the same length

Status: fixed on 2022/08/17 07:30
Fix commit: b195ca54f311 Netstack: Check that the multicast address matches the endpoint protocol.
First crash: 867d, last: 837d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
gvisor panic: addresses IP and fe80::aa do not have the same length (2) 1 748d 748d 14/26 fixed on 2022/11/13 17:07

Sample crash report:
panic: addresses 224.0.0.2 and fe80::aa do not have the same length

goroutine 792736 [running]:
panic({0xfe4320, 0xc00717b820})
	GOROOT/src/runtime/panic.go:941 +0x397 fp=0xc00281cc90 sp=0xc00281cbd0 pc=0x435837
gvisor.dev/gvisor/pkg/tcpip.Address.MatchingPrefix({0xc004ee704c?, 0x4e035e?}, {0xc00037ab10, 0x10})
	pkg/tcpip/tcpip.go:176 +0x1c8 fp=0xc00281ccf8 sp=0xc00281cc90 pc=0x6bbb08
gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).acquireOutgoingPrimaryAddressRLocked.func1({0x140fa30, 0xc000b340a0})
	pkg/tcpip/network/ipv6/ipv6.go:2073 +0x109 fp=0xc00281cde0 sp=0xc00281ccf8 pc=0xb939e9
gvisor.dev/gvisor/pkg/tcpip/stack.(*AddressableEndpointState).ForEachPrimaryEndpoint(0xc00076ea40, 0xc00281ced0)
	pkg/tcpip/stack/addressable_endpoint_state.go:123 +0xec fp=0xc00281ce38 sp=0xc00281cde0 pc=0x96fbec
gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).acquireOutgoingPrimaryAddressRLocked(0x3f475469e040?, {0xc004ee704c, 0x4}, 0x0?)
	pkg/tcpip/network/ipv6/ipv6.go:2053 +0xf9 fp=0xc00281cf68 sp=0xc00281ce38 pc=0xb931b9
gvisor.dev/gvisor/pkg/tcpip/network/ipv6.(*endpoint).AcquireOutgoingPrimaryAddress(0xc00076e400, {0xc004ee704c, 0x4}, 0x0?)
	pkg/tcpip/network/ipv6/ipv6.go:2007 +0xb9 fp=0xc00281cfc8 sp=0xc00281cf68 pc=0xb92e19
gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).primaryEndpoint(0xc0004b4400, 0xb7eeea?, {0xc004ee704c, 0x4})
	pkg/tcpip/stack/nic.go:439 +0x112 fp=0xc00281d028 sp=0xc00281cfc8 pc=0x98a312
gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).getAddressEP(0xc009770860?, 0xc00281d0e8?, {0x0?, 0x56?}, {0xc004ee704c?, 0x140f5f0?}, 0x6c28a80?)
	pkg/tcpip/stack/stack.go:1143 +0x48 fp=0xc00281d068 sp=0xc00281d028 pc=0x99d648
gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).FindRoute.func1(0xc0006b4300, {0xc004ee704c, 0x4}, 0x0, {0x0, 0x0}, 0x0?, 0x0, 0x0?, 0x1, ...)
	pkg/tcpip/stack/stack.go:1333 +0x309 fp=0xc00281d208 sp=0xc00281d068 pc=0x99f289
gvisor.dev/gvisor/pkg/tcpip/stack.(*Stack).FindRoute(0xc0006b4300, 0x0, {0x0, 0x0}, {0xc004ee704c, 0x4}, 0x5280840?, 0xc0?)
	pkg/tcpip/stack/stack.go:1359 +0x6db fp=0xc00281d400 sp=0xc00281d208 pc=0x99e73b
gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*Endpoint).SetSockOpt(0xc005f82920, {0x13f7fa0?, 0xc0052808d0})
	pkg/tcpip/transport/internal/network/endpoint.go:926 +0x7e5 fp=0xc00281d658 sp=0xc00281d400 pc=0xb1d4e5
gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).SetSockOpt(0x20000e0?, {0x13f7fa0?, 0xc0052808d0?})
	pkg/tcpip/transport/raw/endpoint.go:500 +0x1f8 fp=0xc00281d6b0 sp=0xc00281d658 pc=0xb27438
gvisor.dev/gvisor/pkg/sentry/socket/netstack.setSockOptIP(0xc0076d4000, {0x1410cd8, 0xc005e17a40}, {0x3f4746be3ac0, 0xc005f82900}, 0x23, {0xc0076d4944, 0xc, 0x90})
	pkg/sentry/socket/netstack/netstack.go:2464 +0xe82 fp=0xc00281d768 sp=0xc00281d6b0 pc=0xbc2382
gvisor.dev/gvisor/pkg/sentry/socket/netstack.SetSockOpt(0x0?, {0x1410cd8?, 0xc005e17a40?}, {0x3f4746be3ac0?, 0xc005f82900?}, 0x90?, 0x140f5f0?, {0xc0076d4944, 0xc, 0x90})
	pkg/sentry/socket/netstack/netstack.go:1804 +0xb0 fp=0xc00281d7c0 sp=0xc00281d768 pc=0xbbe350
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*SocketVFS2).SetSockOpt(0xc005e17a40, 0x1419538?, 0x0, 0x23, {0xc0076d4944, 0xc, 0x90})
	pkg/sentry/socket/netstack/netstack_vfs2.go:268 +0x2e7 fp=0xc00281d878 sp=0xc00281d7c0 pc=0xbca847
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SetSockOpt(0xc0076d4000, {{0x5}, {0x0}, {0x23}, {0x20000000}, {0xc}, {0x0}})
	pkg/sentry/syscalls/linux/vfs2/socket.go:552 +0x2bb fp=0xc00281d958 sp=0xc00281d878 pc=0xd03fbb
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc0076d4000, 0x36, {{0x5}, {0x0}, {0x23}, {0x20000000}, {0xc}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:142 +0x80b fp=0xc00281dc98 sp=0xc00281d958 pc=0xa2b14b
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc0076d4000, 0xc0090ab1e0?, {{0x5}, {0x0}, {0x23}, {0x20000000}, {0xc}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:322 +0x54 fp=0xc00281dcf8 sp=0xc00281dc98 pc=0xa2c734
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000348400?, 0xc00281de40?, {{0x5}, {0x0}, {0x23}, {0x20000000}, {0xc}, {0x0}})
	pkg/sentry/kernel/task_syscall.go:282 +0x85 fp=0xc00281dd58 sp=0xc00281dcf8 pc=0xa2c325
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc009a1f3f0?)
	pkg/sentry/kernel/task_syscall.go:257 +0x3ac fp=0xc00281de50 sp=0xc00281dd58 pc=0xa2bfec
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0xc00a216b80?, 0xc0076d4000)
	pkg/sentry/kernel/task_run.go:253 +0x1125 fp=0xc00281df60 sp=0xc00281de50 pc=0xa1dda5
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc0076d4000, 0x49df)
	pkg/sentry/kernel/task_run.go:94 +0x1ec fp=0xc00281dfc0 sp=0xc00281df60 pc=0xa1c5ec
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start.func1()
	pkg/sentry/kernel/task_start.go:370 +0x2a fp=0xc00281dfe0 sp=0xc00281dfc0 pc=0xa295ea
runtime.goexit()
	src/runtime/asm_amd64.s:1571 +0x1 fp=0xc00281dfe8 sp=0xc00281dfe0 pc=0x469321
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:370 +0x105

Crashes (102):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/11 18:23 gvisor e06df74a657e 787ed7e0 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/08 12:56 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/08 01:08 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/07 22:21 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/06 15:54 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/06 06:01 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/06 04:26 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/06 01:15 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/05 14:37 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/04 14:18 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/04 03:52 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/03 21:44 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/03 20:32 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/03 12:16 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/03 10:16 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/03 01:26 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/02 13:05 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/02 04:38 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/08/01 13:06 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/31 15:19 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/31 03:50 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/30 20:51 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/30 18:32 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/30 16:35 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/30 01:03 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/29 18:38 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/29 14:14 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/29 12:00 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/29 10:54 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/27 23:52 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/27 10:11 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/27 02:24 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/26 22:46 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/26 21:01 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/26 16:47 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/26 00:14 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/25 20:41 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/25 18:49 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/25 13:41 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/25 09:39 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/24 22:50 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/24 19:29 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/24 06:51 gvisor 3fe2b84bb44f 5e6028b9 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/21 14:04 gvisor be6ffa78e4df b5765a15 .config console log report info ci-gvisor-ptrace-2-cover panic: addresses IP and fe80::aa do not have the same length
2022/07/13 05:48 gvisor 84e56e8b50df 1434eec0 .config console log report info ci-gvisor-kvm-cover panic: addresses IP and fe80::aa do not have the same length
* Struck through repros no longer work on HEAD.