bytecodealliance / bytecodealliance/rustix

`rustix::mm::Advice` is missing `MADV_GUARD_INSTALL` & `MADV_GUARD_REMOVE`, added in Linux 6.13

Open
#1,641 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2.1k
Forks
294
Avg merge
4h 7m
Merged PRs (30d)
2

Description

Ideally this should `rustix::mm::Advice` should not be an enum (or `madvise` should take `impl Into` where `RawAdvice` is an escape hatch for values not present in rustix).

Docs:
```
MADV_GUARD_INSTALL (since Linux 6.13)
Install a lightweight guard region into the range specified
by addr and size, causing any read or write in the range to
result in a SIGSEGV signal being raised.

MADV_GUARD_REMOVE (since Linux 6.13)
Remove any lightweight guard regions which exist in the
range specified by addr and size.
```

I may get off my ass and send out a PR. 🤷🏾‍♂️

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.