Add support for declaring implementation-specific abstract operations#115
Draft
jellllly420 wants to merge 4 commits intoRPL-Toolchain:masterfrom
Draft
Add support for declaring implementation-specific abstract operations#115jellllly420 wants to merge 4 commits intoRPL-Toolchain:masterfrom
jellllly420 wants to merge 4 commits intoRPL-Toolchain:masterfrom
Conversation
Allow users to declare named sets of concrete function paths in rpl.toml under [operations], e.g. lock = ["std::sync::Mutex::lock", ...]. These will be used to support abstract operations in RPL patterns. Co-authored-by: Claude <noreply@anthropic.com>
Implement expand_operations() in rpl_meta::expand that scans .rpl source text for @Identifier tokens, looks them up in an operations table, and produces expanded variants via cartesian product replacement. Includes 6 unit tests covering: no-ops passthrough, single/multi op expansion, cartesian product, undefined ops, and empty op lists. Co-authored-by: Claude <noreply@anthropic.com>
Thread operations table from rpl.toml config through RPL_OPS env var to the rustc driver, and call expand_all_patterns() in callbacks before the pest parser sees the pattern sources. Undefined @op references emit a warning and skip the pattern gracefully. Co-authored-by: Claude <noreply@anthropic.com>
Detects raw pointer dereferences (intrusive linked list traversal) without a preceding lock acquisition, the structural pattern behind the first CVE in Linux kernel Rust code (rust_binder race condition). Uses the difference operator to express "without": matches pointer dereference but subtracts variants where a lock call precedes it. Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
@claude review |
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.
Still in progress!!! Opened this for CI.