Skip to content
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

Talos leaks file descriptors to child processes #9412

Open
1 of 2 tasks
smira opened this issue Oct 1, 2024 · 5 comments
Open
1 of 2 tasks

Talos leaks file descriptors to child processes #9412

smira opened this issue Oct 1, 2024 · 5 comments
Assignees

Comments

@smira
Copy link
Member

smira commented Oct 1, 2024

tl;dr is missing O_CLOEXEC in some libraries we're using

Tasks

Preview Give feedback
@smira smira self-assigned this Oct 1, 2024
smira added a commit to smira/talos that referenced this issue Oct 1, 2024
See siderolabs#9412

I'll keep the issue open to track upstream PR status and remove replace
directives.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
smira added a commit to smira/talos that referenced this issue Oct 1, 2024
See siderolabs#9412

I'll keep the issue open to track upstream PR status and remove replace
directives.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
@dsseng
Copy link
Member

dsseng commented Oct 1, 2024

Should we maybe consider adding a rule to golangci-lint to check for syscalls without cloexec to avoid problematic code being merged later?

@smira
Copy link
Member Author

smira commented Oct 1, 2024

Should we maybe consider adding a rule to golangci-lint to check for syscalls without cloexec to avoid problematic code being merged later?

I would rather prefer a test, but not sure how to put #9414 into a useful thing, as we need to fork directly from machined to verify this. System extensions don't work, I don't want to put test binary into any Talos build. I could use some debug feature as well to enable this test controller

@dsseng
Copy link
Member

dsseng commented Oct 1, 2024

Will take a look a bit later, maybe I have some ideas about this

@smira
Copy link
Member Author

smira commented Oct 3, 2024

Update: the problem itself is fixed, but the issue is left open to track upstream PRs.

smira added a commit to smira/talos that referenced this issue Oct 8, 2024
See siderolabs#9412

I'll keep the issue open to track upstream PR status and remove replace
directives.

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit a341bdb)
@smira
Copy link
Member Author

smira commented Oct 25, 2024

vishvananda/netlink#1023 can go away if #9566 is merged

smira added a commit to smira/talos that referenced this issue Nov 18, 2024
See siderolabs#9412

PR merged safchain/ethtool#88

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants