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

Offen
#488 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C
Sterne
287
Forks
33
Ø Merge
2 T. 17 Std.
Gemergte PRs (30 T.)
18

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus sysprog21/elfuse

Alle Issues in sysprog21/elfuse

Ähnliche Issues

Weitere Issues zu C

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.