Skip to content

Docs: design note for the 128 MB user-code / identity-map overlap - #192

Merged
douglasmun merged 1 commit into
mainfrom
docs/user-link-base-design
Oct 11, 2026
Merged

douglasmun merged 1 commit into
mainfrom
docs/user-link-base-design

Conversation

@douglasmun

Copy link
Copy Markdown
Owner

Adds doc/DESIGN_USER_LINK_BASE.md, the design note for the open item in doc/SECURITY_AUDIT_2026-10.md §3.

  • Mechanism: user images link at 0x08000000, so image PTEs replace the kernel's 1:1 view of physical frames 128 MB+ while that CR3 is live (split view, leak, corruption primitive).
  • Why it is latent: first-fit PMM, per-uid caps, image span ≤ 16 MB.
  • Related gap: the loader's only lower bound is 0x1000.
  • Options A–D. The recommendation is A: link base 0x20000000, _Static_assert(USER_IMAGE_BASE >= PMM_MAX_BYTES), and a loader refusal for any segment inside [0, PMM_MAX_BYTES).
  • Covers what re-signing touches and a fail-first witness plan.

Docs only; no code change.

🤖 Generated with Claude Code

Records the decision SECURITY_AUDIT_2026-10.md section 3 left open: the
mechanism (user image PTEs replace the kernel's identity view of frames
128 MB+), why it is latent, the loader's 0x1000-only lower bound, options
A-D, the recommendation (move the link base to 0x20000000 with a static
assert and a loader range refusal), what re-signing touches, and a
fail-first test plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@douglasmun
douglasmun merged commit 2f63803 into main Oct 11, 2026
1 of 2 checks passed
@douglasmun
douglasmun deleted the docs/user-link-base-design branch October 11, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant