Repository navigation
shmem_providers: replace unmaintained uds with std and unix-ancillary - #3947
Open
MohibShaikh wants to merge 2 commits into
Open
MohibShaikh wants to merge 2 commits into
MohibShaikh wants to merge 2 commits into
Conversation
uds has had no release since 0.4.2 (2023-12-31) and has open soundness reports (tormol/uds#30-AFLplusplus#33). - Abstract and path socket addresses use std (SocketAddrExt, Rust 1.70+). - SCM_RIGHTS send/receive uses unix-ancillary; received fds are handed to the inner provider exactly as before. - Drop the unused uds dependency from libafl_bolts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #3932.
udshas had no release since0.4.2(2023-12-31), is no longer maintained (tormol/uds#29), and has open soundness reports (tormol/uds#30-#33).uds::UnixSocketAddr/bind_unix_addr/connect_to_unix_addrincrates/shmem_providers/src/unix_shmem_server.rswithstd::os::unix::net::SocketAddr(SocketAddrExton Linux/Android for@-prefixed abstract names,from_pathnameelsewhere) and add unit tests for pathname and abstract-namespace parsing.udsSCM_RIGHTSsend/receive withunix-ancillary(0.6.3, default features /libc-only,OwnedFd/BorrowedFd,FD_CLOEXEC,SIGPIPE-safe, zero-alloc sends). Disclosure: I maintainunix-ancillary.udsdependency fromcrates/libafl_bolts/Cargo.toml.Verified with
cargo test -p shmem_providers(default and--all-features),cargo clippy -p shmem_providers -p libafl_bolts --no-deps --tests --all-features -- -D warnings,cargo +nightly fmt --check,no_stdchecks, and cross-target checks foraarch64-apple-darwin,x86_64-unknown-freebsd, andaarch64-linux-android.Checklist
cargo +nightly fmt) and clippy onshmem_providersandlibafl_bolts