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

Fix missing close of fds from BPF{ProgLoad,MapCreate} #428

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

pippolo84
Copy link
Member

Since it is possible to disable the GC, we cannot rely solely on the finalizers to close the file descriptors returned by BPFProgLoad or BPFMapCreate.
So, we always close them explicitly, if needed.

Fixes #373

Since it is possible to disable the GC, we cannot rely solely on the
finalizers to close the file descriptors returned by BPFProgLoad or
BPFMapCreate.
So, we always close them explicitly.

Signed-off-by: Fabio Falzoi <fabio.falzoi84@gmail.com>
prog.go Show resolved Hide resolved
@ti-mo ti-mo merged commit ed715d6 into cilium:master Sep 22, 2021
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.

Always close fd's returned from internal.BPFProgLoad
3 participants