Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-29 | Merge pull request #6085 from liornm:fix-tun-no_pi | gVisor bot | |
PiperOrigin-RevId: 382202462 | |||
2021-06-29 | Fix TUN IFF_NO_PI bug | liornm | |
When TUN is created with IFF_NO_PI flag, there will be no Ethernet header and no packet info, therefore, both read and write will fail. This commit fix this bug. | |||
2021-04-28 | Remove side effect from test cases | Fabricio Voznika | |
Restore capabilities for tests that need to change them. PiperOrigin-RevId: 371007047 | |||
2021-04-16 | Use size_t instead of C integer types. | Dean Deng | |
PiperOrigin-RevId: 368919557 | |||
2021-04-12 | Make AsSockAddr() to replace reinterpret_cast<sockaddr*> | Ting-Yu Wang | |
It's a common pattern in test code to reinterpret_cast<sockaddr*> from sockaddr_* structs. Make AsSockAddr() for them so code looks better. Note: Why not a wrapper type for `sockaddr_storage` and etc? It's also a common need to have a local in-out variable of socklen_t. Creating a wrapper type may however lead to this wrong code: Wrapper addr; socklen_t addrlen = sizeof(addr); where sizeof(Wrapper) may not equal to sizeof(sockaddr_storage). PiperOrigin-RevId: 368126229 | |||
2021-01-15 | Add tests for cases of ARP failures on TCP connect | Mithun Iyer | |
Also fix test expectation for UDP sendto() case in tuntap syscall test. Fixes #5155 PiperOrigin-RevId: 352056612 | |||
2021-01-07 | Fix tuntap_test to cleanup after CreateInterfaceNoCap | Mithun Iyer | |
PiperOrigin-RevId: 350646249 | |||
2020-12-23 | Resolve compiler warnings | Kevin Krakauer | |
The buildkite syscall tests start with a lot of C++ warnings. This cleans that up a little. | |||
2020-06-09 | Fix write hang bug found by syzkaller. | gVisor bot | |
After this change e.mu is only promoted to exclusively locked during route.Resolve. It downgrades back to read-lock afterwards. This prevents the second RLock() call gets stuck later in the stack. https://syzkaller.appspot.com/bug?id=065b893bd8d1d04a4e0a1d53c578537cde1efe99 Syzkaller logs does not contain interesting stack traces. The following stack trace is obtained by running repro locally. goroutine 53 [semacquire, 3 minutes]: runtime.gopark(0xfd4278, 0x1896320, 0xc000301912, 0x4) GOROOT/src/runtime/proc.go:304 +0xe0 fp=0xc0000e25f8 sp=0xc0000e25d8 pc=0x437170 runtime.goparkunlock(...) GOROOT/src/runtime/proc.go:310 runtime.semacquire1(0xc0001220b0, 0xc00000a300, 0x1, 0x0) GOROOT/src/runtime/sema.go:144 +0x1c0 fp=0xc0000e2660 sp=0xc0000e25f8 pc=0x4484e0 sync.runtime_Semacquire(0xc0001220b0) GOROOT/src/runtime/sema.go:56 +0x42 fp=0xc0000e2690 sp=0xc0000e2660 pc=0x448132 gvisor.dev/gvisor/pkg/sync.(*RWMutex).RLock(...) pkg/sync/rwmutex_unsafe.go:76 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).HandleControlPacket(0xc000122000, 0x7ee5, 0xc00053c16c, 0x4, 0x5e21, 0xc00053c224, 0x4, 0x1, 0x0, 0xc00007ed00) pkg/tcpip/transport/udp/endpoint.go:1345 +0x169 fp=0xc0000e26d8 sp=0xc0000e2690 pc=0x9843f9 ...... gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*protocol).HandleUnknownDestinationPacket(0x18bb5a0, 0xc000556540, 0x5e21, 0xc00053c16c, 0x4, 0x7ee5, 0xc00053c1ec, 0x4, 0xc00007e680, 0x4) pkg/tcpip/transport/udp/protocol.go:143 +0xb9a fp=0xc0000e8260 sp=0xc0000e7510 pc=0x9859ba ...... gvisor.dev/gvisor/pkg/tcpip/transport/udp.sendUDP(0xc0001220d0, 0xc00053ece0, 0x1, 0x1, 0x883, 0x1405e217ee5, 0x11100a0, 0xc000592000, 0xf88780) pkg/tcpip/transport/udp/endpoint.go:924 +0x3b0 fp=0xc0000ed390 sp=0xc0000ec750 pc=0x981af0 gvisor.dev/gvisor/pkg/tcpip/transport/udp.(*endpoint).write(0xc000122000, 0x11104e0, 0xc00020a460, 0x0, 0x0, 0x0, 0x0, 0x0) pkg/tcpip/transport/udp/endpoint.go:510 +0x4ad fp=0xc0000ed658 sp=0xc0000ed390 pc=0x97f2dd PiperOrigin-RevId: 315590041 | |||
2020-04-09 | Dedup netlink utility functions in tests. | Ting-Yu Wang | |
PiperOrigin-RevId: 305749697 | |||
2020-04-08 | Clean up TODOs | Fabricio Voznika | |
PiperOrigin-RevId: 305592245 | |||
2020-03-16 | Enable ARP resolution in TAP devices. | Ting-Yu Wang | |
PiperOrigin-RevId: 301208471 | |||
2020-02-28 | Hide /dev/net/tun when using hostinet. | Ting-Yu Wang | |
/dev/net/tun does not currently work with hostinet. This has caused some program starts failing because it thinks the feature exists. PiperOrigin-RevId: 297876196 | |||
2020-02-21 | Implement tap/tun device in vfs. | Ting-Yu Wang | |
PiperOrigin-RevId: 296526279 |