-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: misc socketpair fds problems #1733
fix: misc socketpair fds problems #1733
Conversation
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
Please double check driver/API_VERSION file. See versioning. /hold |
I would like to take a second to appreciate the beauty of this bug. If auto fdi1 = m_inspector->build_fdinfo();
...
auto fdi2 = fdi1->clone();
evt->set_fd_info(evt->get_tinfo()->add_fd(fd1, std::move(fdi1)));
evt->get_tinfo()->add_fd(fd2, std::move(fdi2)); Meaning that first |
LGTM label has been added. Git tree hash: a9bbf149149e08af370af8dcf306c7d7f6ad3ae7
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leogr, LucaGuerra, therealbobo The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/milestone 0.15.0 |
false positive /hold cancel |
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
/area driver-bpf
/area driver-modern-bpf
/area libsinsp
Does this PR require a change in the driver versions?
/version driver-SCHEMA-version-patch
What this PR does / why we need it:
This fixes:
fd1=-1
andfd2=-1
in syscall failure scenarios)Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: