Revision cc042f2ce1d3cd7bab58aa2a5c225617784e104b authored by Thomas Graf on 26 January 2019, 20:36:10 UTC, committed by Ian Vernon on 29 January 2019, 16:49:19 UTC
[ upstream commit 5d20ca7e8322268320ee37096e19b8c7563e6a6f ] Ensure that the allocation CIDR is non-nil and verify that the required nodeAddressing requirements are fulfilled. Fixes the following panic: ``` [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x259ebf1] goroutine 1 [running]: github.com/cilium/cilium/pkg/datapath/linux.(*linuxNodeHandler).createNodeRoute(0xc00017d650, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /go/src/github.com/cilium/cilium/pkg/datapath/linux/node.go:292 +0x71 github.com/cilium/cilium/pkg/datapath/linux.(*linuxNodeHandler).lookupNodeRoute(0xc00017d650, 0x0, 0xc0004804e0, 0x10, 0x10) /go/src/github.com/cilium/cilium/pkg/datapath/linux/node.go:309 +0x50 github.com/cilium/cilium/pkg/datapath/linux.(*linuxNodeHandler).nodeUpdate(0xc00017d650, 0x0, 0xc000e94c60, 0x0, 0x4adf920) /go/src/github.com/cilium/cilium/pkg/datapath/linux/node.go:456 +0x4b8 github.com/cilium/cilium/pkg/datapath/linux.(*linuxNodeHandler).NodeConfigurationChanged(0xc00017d650, 0x5dc, 0x5aa, 0x0, 0x4adf920, 0x0, 0x0, 0x10000000100, 0x0, 0x0) /go/src/github.com/cilium/cilium/pkg/datapath/linux/node.go:622 +0x1e1 main.(*Daemon).compileBase(0xc0007be700, 0x0, 0x0) /go/src/github.com/cilium/cilium/daemon/daemon.go:533 +0x7a9 main.(*Daemon).init(0xc0007be700, 0xc000e332b8, 0x1) /go/src/github.com/cilium/cilium/daemon/daemon.go:675 +0x126 main.NewDaemon(0x2f49b80, 0xc0004c8de0, 0x1, 0x1, 0xc00088f928, 0x113d542) /go/src/github.com/cilium/cilium/daemon/daemon.go:1191 +0x1177 main.runDaemon() /go/src/github.com/cilium/cilium/daemon/daemon_main.go:1062 +0x214 main.glob..func1(0x44ee920, 0xc0007e67d0, 0x0, 0x5) /go/src/github.com/cilium/cilium/daemon/daemon_main.go:108 +0x30 github.com/cilium/cilium/vendor/github.com/spf13/cobra.(*Command).execute(0x44ee920, 0xc00004c1f0, 0x5, 0x5, 0x44ee920, 0xc00004c1f0) /go/src/github.com/cilium/cilium/vendor/github.com/spf13/cobra/command.go:766 +0x2cc github.com/cilium/cilium/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x44ee920, 0x2f2caf0, 0x2f543c0, 0x2f2cb10) /go/src/github.com/cilium/cilium/vendor/github.com/spf13/cobra/command.go:852 +0x2fd github.com/cilium/cilium/vendor/github.com/spf13/cobra.(*Command).Execute(0x44ee920, 0x0, 0x0) /go/src/github.com/cilium/cilium/vendor/github.com/spf13/cobra/command.go:800 +0x2b main.daemonMain() /go/src/github.com/cilium/cilium/daemon/daemon_main.go:126 +0x14c main.main() /go/src/github.com/cilium/cilium/daemon/main.go:30 +0xc9 ``` Signed-off-by: Thomas Graf <thomas@cilium.io> Signed-off-by: Joe Stringer <joe@cilium.io>
1 parent 25a1a91
File | Mode | Size |
---|---|---|
.github | ||
.travis | ||
Documentation | ||
api | ||
bpf | ||
bugtool | ||
cilium | ||
cilium-health | ||
common | ||
contrib | ||
daemon | ||
envoy | ||
examples | ||
hack | ||
monitor | ||
operator | ||
pkg | ||
plugins | ||
proxylib | ||
test | ||
tests | ||
tools | ||
vendor | ||
.authors.aux | -rw-r--r-- | 416 bytes |
.gitignore | -rw-r--r-- | 857 bytes |
.gitmodules | -rw-r--r-- | 0 bytes |
.mailmap | -rw-r--r-- | 737 bytes |
.travis.yml | -rw-r--r-- | 424 bytes |
AUTHORS | -rw-r--r-- | 5.6 KB |
CODEOWNERS | -rw-r--r-- | 1.1 KB |
CONTRIBUTING.md | -rw-r--r-- | 193 bytes |
Dockerfile | -rw-r--r-- | 1.9 KB |
Dockerfile.builder | -rw-r--r-- | 1.1 KB |
Gopkg.lock | -rw-r--r-- | 33.4 KB |
Gopkg.toml | -rw-r--r-- | 12.5 KB |
Jenkinsfile.nightly | -rw-r--r-- | 4.7 KB |
LICENSE | -rw-r--r-- | 11.1 KB |
Makefile | -rw-r--r-- | 11.5 KB |
Makefile.defs | -rw-r--r-- | 1.3 KB |
Makefile.quiet | -rw-r--r-- | 456 bytes |
NEWS.rst | -rw-r--r-- | 20 bytes |
README.rst | -rw-r--r-- | 14.7 KB |
VERSION | -rw-r--r-- | 10 bytes |
Vagrantfile | -rw-r--r-- | 11.9 KB |
cilium-docker-plugin.Dockerfile | -rw-r--r-- | 511 bytes |
cilium-operator.Dockerfile | -rw-r--r-- | 507 bytes |
docs.Jenkinsfile | -rw-r--r-- | 2.6 KB |
flannel.Jenkinsfile | -rw-r--r-- | 3.2 KB |
ginkgo-kubernetes-all.Jenkinsfile | -rw-r--r-- | 6.5 KB |
ginkgo.Jenkinsfile | -rw-r--r-- | 4.2 KB |
kubernetes-upstream.Jenkinsfile | -rw-r--r-- | 4.2 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...