syzbot


panic: unknown network protocol number NUM

Status: fixed on 2022/03/30 22:15
Fix commit: 6a28dc7c5963 Correct fragmentation reference counting.
First crash: 1053d, last: 1041d

Sample crash report:
panic: unknown network protocol number 0

goroutine 1387 [running]:
panic(0x120e500, 0xc00088cee0)
	GOROOT/src/runtime/panic.go:1065 +0x565 fp=0xc0013767b0 sp=0xc0013766e8 pc=0x437c65
gvisor.dev/gvisor/pkg/tcpip/stack.(*PacketBuffer).Network(0xc000ee8f00, 0xc0005b39e0, 0xed96a9342)
	pkg/tcpip/stack/packet_buffer.go:421 +0x1c7 fp=0xc001376808 sp=0xc0013767b0 pc=0x9e2727
gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).HandlePacket.func1(0xc000d26b00, 0xc000ee8f00, 0xc000ee8f00)
	pkg/tcpip/transport/raw/endpoint.go:688 +0x348 fp=0xc001377e10 sp=0xc001376808 pc=0xbb01c8
gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).HandlePacket(0xc000d26b00, 0xc000ee8f00)
	pkg/tcpip/transport/raw/endpoint.go:818 +0x3f fp=0xc001377e38 sp=0xc001377e10 pc=0xbacdff
gvisor.dev/gvisor/pkg/tcpip/stack.(*transportDemuxer).deliverRawPacket(0xc00033ea08, 0x1, 0xc000ee8a00, 0x8)
	pkg/tcpip/stack/transport_demuxer.go:771 +0x1a3 fp=0xc001377ef0 sp=0xc001377e38 pc=0x9fa083
gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverRawPacket(0xc00000a3c0, 0xc000000001, 0xc000ee8a00)
	pkg/tcpip/stack/nic.go:1126 +0x65 fp=0xc001377f28 sp=0xc001377ef0 pc=0x9dfae5
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleValidatedPacket(0xc000245c00, 0xc0010f2e96, 0x14, 0x14, 0xc000ee8dc0, 0x1425eea, 0x2)
	pkg/tcpip/network/ipv4/ipv4.go:1143 +0xf82 fp=0xc0013786f0 sp=0xc001377f28 pc=0xc00c82
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).HandlePacket(0xc000245c00, 0xc000ee8dc0)
	pkg/tcpip/network/ipv4/ipv4.go:928 +0x1a5 fp=0xc001378950 sp=0xc0013786f0 pc=0xbff685
gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).DeliverNetworkPacket(0xc00000a3c0, 0xc0008891c6, 0x6, 0xc0008891d0, 0x6, 0x800, 0xc000ee8dc0)
	pkg/tcpip/stack/nic.go:941 +0x3ae fp=0xc001378a08 sp=0xc001378950 pc=0x9dec2e
gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).DeliverNetworkPacket(0xc000380500, 0xc0008891c6, 0x6, 0xc0008891d0, 0x6, 0x800, 0xc000ee8dc0)
	pkg/tcpip/link/nested/nested.go:63 +0x104 fp=0xc001378a68 sp=0xc001378a08 pc=0xcb4ae4
gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).DeliverNetworkPacket(0xc000380500, 0x0, 0x0, 0x0, 0x0, 0x800, 0xc000ee8dc0)
	pkg/tcpip/link/ethernet/ethernet.go:82 +0x1bb fp=0xc001378ad8 sp=0xc001378a68 pc=0xf98dfb
gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WriteRawPacket(0xc00093a150, 0xc000ee8c80, 0x0, 0x0)
	pkg/tcpip/link/loopback/loopback.go:125 +0x128 fp=0xc001378b48 sp=0xc001378ad8 pc=0xf99a88
gvisor.dev/gvisor/pkg/tcpip/link/loopback.(*endpoint).WritePackets(0xc00093a150, 0xc000889124, 0x4, 0xc000889124, 0x4, 0x15ae7c0, 0x6, 0x0, 0x0, 0x100000800, ...)
	pkg/tcpip/link/loopback/loopback.go:91 +0x94 fp=0xc001378b88 sp=0xc001378b48 pc=0xf99894
gvisor.dev/gvisor/pkg/tcpip/link/nested.(*Endpoint).WritePackets(...)
	pkg/tcpip/link/nested/nested.go:120
gvisor.dev/gvisor/pkg/tcpip/link/ethernet.(*Endpoint).WritePackets(0xc000380500, 0xc000889124, 0x4, 0xc000889124, 0x4, 0x15ae7c0, 0x6, 0x0, 0x0, 0x100000800, ...)
	pkg/tcpip/link/ethernet/ethernet.go:108 +0x1ab fp=0xc001378c98 sp=0xc001378b88 pc=0xf990ab
gvisor.dev/gvisor/pkg/tcpip/stack.(*delegatingQueueingDiscipline).WritePacket(0xc00093a160, 0xc000889124, 0x4, 0xc000889124, 0x4, 0x15ae7c0, 0x6, 0x0, 0x0, 0x100000800, ...)
	pkg/tcpip/stack/nic.go:166 +0xd0 fp=0xc001378d48 sp=0xc001378c98 pc=0x9db130
gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).writePacket(0xc00000a3c0, 0xc000889124, 0x4, 0xc000889124, 0x4, 0x15ae7c0, 0x6, 0x0, 0x0, 0x100000800, ...)
	pkg/tcpip/stack/nic.go:451 +0x158 fp=0xc001378de0 sp=0xc001378d48 pc=0x9dcab8
gvisor.dev/gvisor/pkg/tcpip/stack.(*nic).WritePacket(0xc00000a3c0, 0xc00121a140, 0x800, 0xc000ee8c80, 0x0, 0x0)
	pkg/tcpip/stack/nic.go:406 +0x230 fp=0xc001378f20 sp=0xc001378de0 pc=0x9dc7d0
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting.func1(0xc000ee8c80, 0xc0010f2e46, 0x14)
	pkg/tcpip/network/ipv4/ipv4.go:592 +0x5a fp=0xc001378f60 sp=0xc001378f20 pc=0xc062ba
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).handleFragments(0xc000245c00, 0xc00121a140, 0xc00000ffde, 0xc000ee88c0, 0xc0013790e0, 0x1425eea, 0x2, 0x1, 0x0)
	pkg/tcpip/network/ipv4/ipv4.go:476 +0x15e fp=0xc001379070 sp=0xc001378f60 pc=0xbfd21e
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacketPostRouting(0xc000245c00, 0xc00121a140, 0xc000ee88c0, 0xc000889100, 0x4, 0xc0010f2e01)
	pkg/tcpip/network/ipv4/ipv4.go:586 +0x332 fp=0xc0013792b8 sp=0xc001379070 pc=0xbfdab2
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).writePacket(0xc000245c00, 0xc00121a140, 0xc000ee88c0, 0xc000889124, 0x4)
	pkg/tcpip/network/ipv4/ipv4.go:536 +0x205 fp=0xc001379340 sp=0xc0013792b8 pc=0xbfd685
gvisor.dev/gvisor/pkg/tcpip/network/ipv4.(*endpoint).WritePacket(0xc000245c00, 0xc00121a140, 0x4000000001, 0xc000ee88c0, 0x1, 0xc000c0d418)
	pkg/tcpip/network/ipv4/ipv4.go:498 +0x11b fp=0xc0013793b0 sp=0xc001379340 pc=0xbfd43b
gvisor.dev/gvisor/pkg/tcpip/stack.(*Route).WritePacket(0xc00121a140, 0x4000000001, 0xc000ee88c0, 0xc000c0d4c0, 0xc000ee88c0)
	pkg/tcpip/stack/route.go:572 +0xd7 fp=0xc0013793f0 sp=0xc0013793b0 pc=0x9e94f7
gvisor.dev/gvisor/pkg/tcpip/transport/internal/network.(*WriteContext).WritePacket(0xc000c0d4d8, 0xc000ee88c0, 0x0, 0x1, 0xffe0)
	pkg/tcpip/transport/internal/network/endpoint.go:295 +0xd6 fp=0xc001379428 sp=0xc0013793f0 pc=0xb9e916
gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).write(0xc000d26b00, 0x15d76a0, 0xc0013340a0, 0xc000b84d60, 0x0, 0x0, 0x0, 0x0)
	pkg/tcpip/transport/raw/endpoint.go:392 +0x53b fp=0xc0013795d8 sp=0xc001379428 pc=0xbabdbb
gvisor.dev/gvisor/pkg/tcpip/transport/raw.(*endpoint).Write(0xc000d26b00, 0x15d76a0, 0xc0013340a0, 0xc000b84d60, 0xc000000000, 0x4, 0x0, 0xa80002)
	pkg/tcpip/transport/raw/endpoint.go:323 +0xc5 fp=0xc001379628 sp=0xc0013795d8 pc=0xbab525
gvisor.dev/gvisor/pkg/sentry/socket/netstack.(*socketOpsCommon).SendMsg(0xc000e78770, 0xc000f96000, 0x15f1060, 0xc0013ac000, 0x0, 0x1, 0x20000040, 0xffe0, 0x100, 0xc000889130, ...)
	pkg/sentry/socket/netstack/netstack.go:3915 +0x243 fp=0xc001379788 sp=0xc001379628 pc=0xc4b043
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.sendSingleMsg(0xc000f96000, 0x7f7ded3be898, 0xc000e78700, 0xc000e78700, 0x20001440, 0x40, 0xc00098cc00, 0x200000003, 0xc00098cc00)
	pkg/sentry/syscalls/linux/vfs2/socket.go:1437 +0x555 fp=0xc001379ae8 sp=0xc001379788 pc=0xf733b5
gvisor.dev/gvisor/pkg/sentry/syscalls/linux/vfs2.SendMMsg(0xc000f96000, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
	pkg/sentry/syscalls/linux/vfs2/socket.go:1329 +0x37f fp=0xc001379bb8 sp=0xc001379ae8 pc=0xf729df
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).executeSyscall(0xc000f96000, 0x133, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0x1, 0x1420fe0, ...)
	pkg/sentry/kernel/task_syscall.go:115 +0x199 fp=0xc001379c78 sp=0xc001379bb8 pc=0xa80619
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallInvoke(0xc000f96000, 0x133, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
	pkg/sentry/kernel/task_syscall.go:290 +0x70 fp=0xc001379d00 sp=0xc001379c78 pc=0xa818f0
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscallEnter(0xc000f96000, 0x133, 0x4, 0x20001440, 0x1, 0x0, 0x0, 0x0, 0xfc39ac, 0xc0003e77e8)
	pkg/sentry/kernel/task_syscall.go:237 +0xb4 fp=0xc001379d60 sp=0xc001379d00 pc=0xa813d4
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).doSyscall(0xc000f96000, 0x2, 0xc000f96000)
	pkg/sentry/kernel/task_syscall.go:204 +0x198 fp=0xc001379e30 sp=0xc001379d60 pc=0xa80cb8
gvisor.dev/gvisor/pkg/sentry/kernel.(*runApp).execute(0x0, 0xc000f96000, 0x15c9900, 0x0)
	pkg/sentry/kernel/task_run.go:327 +0xe5f fp=0xc001379f68 sp=0xc001379e30 pc=0xa73bdf
gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).run(0xc000f96000, 0xba)
	pkg/sentry/kernel/task_run.go:100 +0x1b9 fp=0xc001379fd0 sp=0xc001379f68 pc=0xa72619
runtime.goexit()
	src/runtime/asm_amd64.s:1371 +0x1 fp=0xc001379fd8 sp=0xc001379fd0 pc=0x472861
created by gvisor.dev/gvisor/pkg/sentry/kernel.(*Task).Start
	pkg/sentry/kernel/task_start.go:396 +0x116

Crashes (56):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/07 20:02 gvisor f2a57c9dac27 2ca0d385 .config console log report syz C ci-gvisor-ptrace-1-cover panic: unknown network protocol number NUM
2022/01/07 17:24 gvisor f2a57c9dac27 2ca0d385 .config console log report syz ci-gvisor-kvm panic: unknown network protocol number NUM
2022/01/07 16:54 gvisor f2a57c9dac27 2ca0d385 .config console log report syz ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 17:27 gvisor 3d578afc8da9 0620189b .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 14:29 gvisor 3d578afc8da9 0620189b .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 11:58 gvisor 3d578afc8da9 0620189b .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 09:11 gvisor 3d578afc8da9 0620189b .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 05:46 gvisor 82fa6d300bf0 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 04:18 gvisor 82fa6d300bf0 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/19 03:12 gvisor 82fa6d300bf0 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 22:20 gvisor 82fa6d300bf0 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 20:12 gvisor 82fa6d300bf0 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 15:50 gvisor 6d15b0ee64f1 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 09:18 gvisor 6d15b0ee64f1 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 08:26 gvisor 6d15b0ee64f1 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 07:12 gvisor 6d15b0ee64f1 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 05:46 gvisor 6d15b0ee64f1 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/18 02:46 gvisor 6d15b0ee64f1 731a2d23 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 08:48 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 03:17 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 02:51 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 02:21 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 00:41 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 00:10 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/17 00:03 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/16 23:22 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/16 21:29 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/16 19:36 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/16 17:34 gvisor 6d15b0ee64f1 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 21:53 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 20:41 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 15:52 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 15:40 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 12:50 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 10:08 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 06:47 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 04:12 gvisor 0ab91dbf4e86 723cfaf0 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/15 00:17 gvisor 8a0c4a947046 53e00b45 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 19:15 gvisor 8a0c4a947046 53e00b45 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 16:54 gvisor 8a0c4a947046 53e00b45 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 16:38 gvisor 8a0c4a947046 53e00b45 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 12:18 gvisor 8a0c4a947046 b8d780ab .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 10:47 gvisor 8a0c4a947046 b8d780ab .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 08:17 gvisor 6b2178dd6446 b8d780ab .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 00:26 gvisor 6b2178dd6446 b8d780ab .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/14 00:02 gvisor 6b2178dd6446 b8d780ab .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/13 19:41 gvisor f2a57c9dac27 b8d780ab .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/10 23:29 gvisor f2a57c9dac27 ddb0ab8c .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/08 03:44 gvisor f2a57c9dac27 2ca0d385 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
2022/01/07 16:39 gvisor f2a57c9dac27 2ca0d385 .config console log report info ci-gvisor-kvm-cover panic: unknown network protocol number NUM
* Struck through repros no longer work on HEAD.