brk does not count the data segment toward RLIMIT_DATA

Offen
#487 0 Kommentare 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
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
c, macos

Rechercherichtung

Start by reading the ELF loader and the execve and fork state paths; the issue does not name specific files or tests. Compare elfuse's break accounting with Linux's check_data_rlimit formula, then trace how start_data and end_data would need to survive execve and fork. Done means break growth is limited by both the data segment and the configured soft RLIMIT_DATA.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Linux's check_data_rlimit holds (brk - start_brk) + (end_data - start_data) to the soft RLIMIT_DATA. elfuse (after #485) holds only brk - brk_base, because it does not record start_data/end_data. A break can then grow past the limit by up to the size of the data segment. A fix would record both values in the ELF loader and carry them through execve and the fork state.

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.