Skip to content

Support safety attributes in Rust for Linux #3

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

Open
zjp-CN opened this issue May 18, 2025 · 1 comment
Open

Support safety attributes in Rust for Linux #3

zjp-CN opened this issue May 18, 2025 · 1 comment
Assignees

Comments

@zjp-CN
Copy link
Contributor

zjp-CN commented May 18, 2025

Context

Idea

Since tag-std currently is a PoC, there are several ways to apply it to R4L

cc #2

#![register_tool(klint)]

#[klint::NotNull(self.ptr)]
unsafe fn foo(&self) { ... }
@hxuhack
Copy link
Contributor

hxuhack commented May 19, 2025

write a universal tool that can apply to any Rust project or enhance klint a static analysis tool/infrastructure in R4L.

This work was originally not intended to support all Rust programs, but focused solely on the standard library. The main reason is that the safety properties may not generalize well or reach convergence. However, following a request from Rust-for-Linux and inspired by the work of asterinas, we believe it may be possible to extract a set of general safety tags for Rust-based operating systems as well. We’ve decided to begin exploring this direction and will keep our findings updated in os-sp.

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