Bootloader marks frames used for bootloader page tables as reserved
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust
調査の方向性
uefi/src/main.rs の317-319行付近のフレーム割り当てと、common/src/lib.rs の431行付近の boot-info マッピングから始めてください。割り当てられたフレームがメモリマップに入る仕組みを理解するために、LegacyFrameAllocator と FrameAllocator の実装を読んでください。ブートローダーのページテーブル専用に使用されるフレームが Usable として報告され、カーネルがそれらを上書きできるようになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When allocating frames to copy the bootloader page table, we allocate them using the default frame allocator meaning the kernel will see those regions as reserved. It also happens when mapping the boot info.
This is wrong, as the kernel should be free to overwrite the bootloader's page tables.
Solution
I think a newtype like so:
pub struct BootloaderLegacyFrameAllocator<'a>(pub &'a mut LegacyFrameAllocator);
with a custom FrameAllocator implementation would be the way to go. e.g. when mapping the boot info in the bootloader's page tables, we would do something like this:
page_tables.bootloader.map_to(
page,
frame,
flags,
&mut BootloaderLegacyFrameAllocator(&mut frame_allocator),
);
Even then, it's not a pretty solution, as we'd need to rework LegacyFrameAllocator to support allocating frames that will be marked as Usable in the memory map.
- 主要言語
- Rust
- スター
- 1.7k
- フォーク
- 240
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rust-osdev/bootloader のほかの issue
-
help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
rust-osdev/bootloader#581 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
rust-osdev/bootloader#573 · コメント 5 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
rust-osdev/bootloader#555 · コメント 2 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
rust-osdev/bootloader#534 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
rust-osdev/bootloader#525 ·
rust-osdev/bootloader の issue をすべて見る
似ている issue
-
area:casework bug criticality:p3 triage:needs-implementation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
registrystack/registry-stack#1623 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
DioxusLabs/anyrender#98 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
leptos-rs/leptos#4885 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
longbridge/gpui-kit#3276 ·
メンテナーはふだん 1 日以内に返信