-
Notifications
You must be signed in to change notification settings - Fork 146
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
Comments
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
Hi,
raw_fd created by Android VpnService
establish()
, pass raw_fd to rust tun, When shutdown tun, drop fdlibc::close
invoked automatically, and Android 11 CrashedA/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
The text was updated successfully, but these errors were encountered: