rust-osdev / rust-osdev/bootloader
Potental triple fault some some devices
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
Description
Testing the UEFI boot on my Dell latitude E5510 (firmware A07) I discovered that bootloader will always triple fault, but not while booting with BIOS. After some testing I discovered this happens immediately when enable_write_protect_bit() is called.
After setting up an IDT I wasn't able to catch a page fault or a double fault to find exactly what is causing the triple fault. I can only assume that the stack is set to read only
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at enable_write_protect_bit() and reproduce the UEFI boot on the Dell Latitude E5510 with firmware A07, comparing it with BIOS boot. Inspect the IDT and stack setup around the call, then determine why the resulting fault becomes a triple fault. Done means UEFI boot completes with write protection enabled and the BIOS path remains working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100