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

Drop Fd crash in Android 11 #51

Open
Rosario9527 opened this issue Oct 24, 2022 · 1 comment
Open

Drop Fd crash in Android 11 #51

Rosario9527 opened this issue Oct 24, 2022 · 1 comment

Comments

@Rosario9527
Copy link

Rosario9527 commented Oct 24, 2022

Hi,
raw_fd created by Android VpnService establish(), pass raw_fd to rust tun, When shutdown tun, drop fd libc::close invoked automatically, and Android 11 Crashed
A/libc: fdsan: attempted to close file descriptor 68, expected to be unowned, actually owned by ParcelFileDescriptor 0xa381657

it's not allowed close with no tag in Android 11 or higher.
add a option to close raw_fd manually: PR HERE

ref: fdsan, android_fdsan_close_with_tag and close

@mokhtarabadi
Copy link
Contributor

Test detachFd()

feifeigood pushed a commit to feifeigood/rust-tun that referenced this issue Jun 12, 2024
* migrate to ipnet

* bump version

* freebsd

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* cargo fmt

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* cargo fmt

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* fix ioctrl inappropriate issue

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* update

* make freebsd usable

* make freebsd usable

* make freebsd usable

* update sockaddr

* cargo fmt

* fix ubuntu error

* github flow

* cargo fmt

* add example

* cargo fmt
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

No branches or pull requests

2 participants