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

Cherry-pick #13966 to 7.4: [SIEM][Auditbeat] Fix socket dataset startup when IPv6 is disabled #14041

Merged
merged 1 commit into from
Oct 15, 2019

Conversation

adriansr
Copy link
Contributor

Cherry-pick of PR #13966 to 7.4 branch. Original message:

This PR fixes a few problems with the new system/socket dataset when IPv6 has been disabled by booting the kernel with ipv6.disable=1.

  • Detection of IPv6 can fail in an unexpected way causing a startup failure instead of disabling IPv6 support.
  • One offset guess depended on the ability to create AF_INET6 sockets.
  • A couple of offset guessing tasks depended on a connect() to a magic address in the range 127/8 or fd00::/8, which can cause a timeout error due to connect() blocking on some systems (icmp filtering?).

Fixes #13953

@adriansr adriansr requested a review from a team as a code owner October 14, 2019 17:34
…lastic#13966)

This patch fixes a few problems with the new system/socket dataset when
IPv6 has been disabled by booting the kernel with `ipv6.disable=1`.

- Detection of IPv6 can fail in an unexpected way causing a startup failure
  instead of disabling IPv6 support.
- One offset guess depended on the ability to create AF_INET6 sockets.
- A couple of offset guessing tasks depended on a connect() to a magic
  address in the range 127/8 or fd00::/8, which can cause a timeout error
  due to connect() blocking on some systems.

Fixes elastic#13953

(cherry picked from commit 51abcaf)
@adriansr
Copy link
Contributor Author

jenkins, test this

Copy link
Contributor

@tsg tsg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@adriansr adriansr merged commit 7d4cdbe into elastic:7.4 Oct 15, 2019
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…lastic#13966) (elastic#14041)

This patch fixes a few problems with the new system/socket dataset when
IPv6 has been disabled by booting the kernel with `ipv6.disable=1`.

- Detection of IPv6 can fail in an unexpected way causing a startup failure
  instead of disabling IPv6 support.
- One offset guess depended on the ability to create AF_INET6 sockets.
- A couple of offset guessing tasks depended on a connect() to a magic
  address in the range 127/8 or fd00::/8, which can cause a timeout error
  due to connect() blocking on some systems.

Fixes elastic#13953

(cherry picked from commit 284faf4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants