Split out SIGSYS handling and redirect accept to accept4 #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes SIGSYS on Oreo for processes that call
accept
. I can't see a recent change to bionic, but accept4 definitely seems to be the supported call.I'm not massively familiar with this codebase, and I've basically pulled out the code from 454b0b1 and chain.c. It took a while to work out something that does the right thing, so it's likely I've misunderstood how it should work or overlooked a corner case.
Tested on aarch64, Android 8.0.0, kernel 3.18.66-perf targetting
nc -l -p 8080
andchromium-browser --headless
on Ubuntu.