RLIMIT_AS and RLIMIT_DATA totals lose records once the region table is stale

Aperta
#488 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c

Direzione di ricerca

Start by reading the changes from #485 and find where the region table updates mappings and where RLIMIT_AS and RLIMIT_DATA are checked. Trace the add, remove, and reprotect paths, including behavior when the table is full and marked stale. Done means both limits still include dropped records after mappings are split, and mmap no longer needs a full table scan under a finite limit.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

After #485, RLIMIT_AS and RLIMIT_DATA are checked against totals summed from the region table on each call. Once regions_tracker_stale is set, the records the table dropped stay out of both totals for good, so a guest that fills the table to GUEST_MAX_REGIONS and then splits mappings can grow past either limit. Running vm_total and vm_data counters, updated wherever a mapping is added, removed or reprotected and kept even when the table has no free slot, would close that gap and also replace the full-table scan on every mmap under a finite limit.

Lingua principale
C
Stelle
287
Fork
33
Merge medio
2g 17h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/elfuse

Tutte le issue di sysprog21/elfuse

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.