brk does not count the data segment toward RLIMIT_DATA

オープン
#487 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
c, macos

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
287
フォーク
33
平均マージ
2日 17時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sysprog21/elfuse のほかの issue

sysprog21/elfuse の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。