bytecodealliance / bytecodealliance/rustix
`rustix::mm::Advice` is missing `MADV_GUARD_INSTALL` & `MADV_GUARD_REMOVE`, added in Linux 6.13
- Lingua principale
- Rust
- Stelle
- 2.1k
- Fork
- 294
- Merge medio
- 6g 22h
- PR unite (30g)
- 4
Descrizione
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. 🤷🏾♂️
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia leggendo rustix::mm::Advice e l’API madvise, quindi confronta i valori supportati con la documentazione di Linux 6.13 per MADV_GUARD_INSTALL e MADV_GUARD_REMOVE. Il lavoro è completato quando queste operazioni di advice sono rappresentabili e utilizzabili tramite rustix e la questione di progettazione dell’API relativa a un escape hatch è stata risolta e coperta da test pertinenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- linux, rust
- Ambito
- operating-systems
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 62/100