Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syscall: slice bounds out of range crash on openbsd 5.6 #9102

Closed
mikioh opened this issue Nov 14, 2014 · 2 comments
Closed

syscall: slice bounds out of range crash on openbsd 5.6 #9102

mikioh opened this issue Nov 14, 2014 · 2 comments
Milestone

Comments

@mikioh
Copy link
Contributor

@mikioh mikioh commented Nov 14, 2014

a program using net.Interfaces of any version of go (including tip) crashes on openbsd
5.6.

e.g., go test -v -run=Interface
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
syscall.(*anyMessage).toRoutingMessage(0xc208058000, 0xc208058000, 0x458, 0x4c7, 0x0,
0x0)
        /home/mikioh/go/src/syscall/route_openbsd.go:18 +0x4d1
syscall.ParseRoutingMessage(0xc208058000, 0x458, 0x4c7, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/mikioh/go/src/syscall/route_bsd.go:210 +0x1c5
net.interfaceTable(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/mikioh/go/src/net/interface_bsd.go:23 +0x23b
net.Interfaces(0x0, 0x0, 0x0, 0x0, 0x0)
        /home/mikioh/go/src/net/interface.go:81 +0x54
net.loopbackInterface(0xc20802b3d0)
        /home/mikioh/go/src/net/interface_test.go:16 +0x27
net.init·2()
        /home/mikioh/go/src/net/ipraw_test.go:46 +0x39
net.init()
        /home/mikioh/go/src/net/cgo_unix.go:164 +0x8ef5
net_test.init()
        /home/mikioh/go/src/net/example_test.go:36 +0x42
main.init()
        net/_test/_testmain.go:370 +0x4a
@gopherbot
Copy link

@gopherbot gopherbot commented Nov 14, 2014

Comment 1:

CL https://golang.org/cl/171700044 mentions this issue.
@mikioh mikioh added new labels Nov 15, 2014
@bradfitz bradfitz removed the new label Dec 18, 2014
@mikioh mikioh self-assigned this Dec 20, 2014
@mikioh mikioh added this to the Go1.5 milestone Dec 20, 2014
@mikioh mikioh closed this in 13e16b3 Dec 22, 2014
@rsc rsc modified the milestones: Go1.4.1, Go1.5 Jan 14, 2015
mikioh pushed a commit that referenced this issue Jan 14, 2015
…ting message on openbsd

OpenBSD 5.5 changed its kernel ABI and OpenBSD 5.6 enabled it.
This CL works on both 5.5 and 5.6.

Fixes #9102.

Change-Id: I4a295be9ab8acbc99e550d8cb7e8f8dacf3a03c5
Reviewed-on: https://go-review.googlesource.com/1932
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 13e16b3)
Reviewed-on: https://go-review.googlesource.com/2826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@mikioh mikioh removed their assignment May 27, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman added a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
…ting message on openbsd

OpenBSD 5.5 changed its kernel ABI and OpenBSD 5.6 enabled it.
This CL works on both 5.5 and 5.6.

Fixes golang#9102.

Change-Id: I4a295be9ab8acbc99e550d8cb7e8f8dacf3a03c5
Reviewed-on: https://go-review.googlesource.com/1932
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 13e16b3)
Reviewed-on: https://go-review.googlesource.com/2826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
wheatman added a commit to wheatman/go-akaros that referenced this issue Jun 26, 2018
…ting message on openbsd

OpenBSD 5.5 changed its kernel ABI and OpenBSD 5.6 enabled it.
This CL works on both 5.5 and 5.6.

Fixes golang#9102.

Change-Id: I4a295be9ab8acbc99e550d8cb7e8f8dacf3a03c5
Reviewed-on: https://go-review.googlesource.com/1932
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 13e16b3)
Reviewed-on: https://go-review.googlesource.com/2826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
wheatman added a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
…ting message on openbsd

OpenBSD 5.5 changed its kernel ABI and OpenBSD 5.6 enabled it.
This CL works on both 5.5 and 5.6.

Fixes golang#9102.

Change-Id: I4a295be9ab8acbc99e550d8cb7e8f8dacf3a03c5
Reviewed-on: https://go-review.googlesource.com/1932
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 13e16b3)
Reviewed-on: https://go-review.googlesource.com/2826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
wheatman added a commit to wheatman/go-akaros that referenced this issue Jul 20, 2018
…ting message on openbsd

OpenBSD 5.5 changed its kernel ABI and OpenBSD 5.6 enabled it.
This CL works on both 5.5 and 5.6.

Fixes golang#9102.

Change-Id: I4a295be9ab8acbc99e550d8cb7e8f8dacf3a03c5
Reviewed-on: https://go-review.googlesource.com/1932
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 13e16b3)
Reviewed-on: https://go-review.googlesource.com/2826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
wheatman added a commit to wheatman/go-akaros that referenced this issue Jul 30, 2018
…ting message on openbsd

OpenBSD 5.5 changed its kernel ABI and OpenBSD 5.6 enabled it.
This CL works on both 5.5 and 5.6.

Fixes golang#9102.

Change-Id: I4a295be9ab8acbc99e550d8cb7e8f8dacf3a03c5
Reviewed-on: https://go-review.googlesource.com/1932
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 13e16b3)
Reviewed-on: https://go-review.googlesource.com/2826
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.