Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

rawfile: don't try to call entersyscallblock #15

Closed
wants to merge 1 commit into from
Closed

rawfile: don't try to call entersyscallblock #15

wants to merge 1 commit into from

Conversation

ianlancetaylor
Copy link

Directly calling runtime.entersyscallblock was never safe. In the
upcoming 1.12 release, it breaks:

github.com/google/netstack/tcpip/link/rawfile.blockingPoll: relocation target runtime.entersyscallblock not defined for ABI0 (but is defined for ABIInternal)
github.com/google/netstack/tcpip/link/rawfile.blockingPoll: relocation target runtime.entersyscallblock not defined for ABI0 (but is defined for ABIInternal)

Rewrite the code to call unix.Poll instead. This will lose the minor
benefit of entersyscallblock; there is no supported way to call that
outside the runtime package.

Directly calling runtime.entersyscallblock was never safe. In the
upcoming 1.12 release, it breaks:

github.com/google/netstack/tcpip/link/rawfile.blockingPoll: relocation target runtime.entersyscallblock not defined for ABI0 (but is defined for ABIInternal)
github.com/google/netstack/tcpip/link/rawfile.blockingPoll: relocation target runtime.entersyscallblock not defined for ABI0 (but is defined for ABIInternal)

Rewrite the code to call unix.Poll instead. This will lose the minor
benefit of entersyscallblock; there is no supported way to call that
outside the runtime package.
@ianlancetaylor
Copy link
Author

Sending to upstream instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant