Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syms: Initialize ModulePath::fd_ to invalid FD
~ModulePath() does `if (fd_ > 0) close fd_;`. But ModulePath constructor has early return codepath for `!enter_ns` which does not initialize `fd_`. So `fd_` can potentially have junk value. That junk value could be any FD downstream. bcc cannot be closing random FDs.
- Loading branch information