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

make SCTP in images work older Linux kernels #477

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RoadRunnr
Copy link

Linux SCTP ioctl argument length checking is not forward compatible with newer kernel headers.

The length of the SCTP ioctl argument is based on the size of some SCTP structs. If code compiled with newer kernel headers, where the SCTP structs are larger, is running on an older kernel and tries to pass an SCTP struct that is larger than what the running kernel supports, then the ioctl results in an error.

Erlang's SCTP code does exactly that. This means that SCTP in an Erlang VM that has been compiled with recent kernel headers will not work on older kernels.

This change pulls in Linux 5.4.5 kernel headers (and only the kernel headers) from Alpine 3.12. The resulting images will have working SCTP support when running on Linux 5.4.5 and newer.

Replacement for the outdated #336, fixes #332

Linux SCTP ioctls argument length checking is not forward compatible
with newer kernel headers.

The length of the SCTP ioctl argument is based on the size of some
SCTP structs. If code compiled with newer kernel headers, where the
SCTP structs are larger, is running on an older kernel and tries to
pass the a SCTP struct that is larger than what the running kernel
supports, then the ioctl results in an error.

Erlangs SCTP code does excatly that. That means that SCTP in a Erlang
VM that has been compiled with recent kernel headers will not work on
older kernels.

This change pulls in Linux 5.4.5 kernel headers (and only the kernel
headers) from Alpine 3.12. The resulting images will have working SCTP
support when running on Linux 5.4.5 and newer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SCTP not working on LTS kernels when build on alpine 3.13
1 participant