Repository navigation
P1 (aarch64): complete the S1A step over every decode arm and the non-decode kernel functions - #152
Merged
Merged
Conversation
…-decode kernel functions Extends losfair#151's s1aStepR2K: - syscall.decode_invocation.s1aStepR2All: the S1a step (S1aR2, S1aKtUt, S1aHiK) over every AArch64 decode arm (DecArmS1aAll), adding the rejected and unknown-label arms, TCB WriteFPU / SetTimer / BindNotification / Resume / Write/CopyRegisters, CNode CancelBadgedSends, SchedContext Bind / YieldTo, SchedControl ConfigureFlags and Reply. Frame DeriveSubframe stays open (FrObj exact size, SysL.sub_false). - Boot: SymL at w0/w1 and DelIn at w0/w1 under a new [P] BootCanon (boot objects in the kernel window, witness bootCanon_ex), so w1K_bundleOf is unconditional. - Non-decode kernel functions: faults and timeouts, budget checks, yield, receive, interrupts and VCPU exits, reply_error / reply_success, the MCS preemption point, each re-establishing the S1a step. - S1aStepEnt / s1aStepEntAll: the entry-invariant fields in P1 terms on the fixed-heap arms (Retype and MakePool-create open). Entry wrappers are composed at the entry level. Every statement already on main is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CommaBot
added a commit
to CommaBot/FL4
that referenced
this pull request
Dec 4, 2026
…/a64-p3-entry DESIGN.md keeps both bullets (the A64 delete-hook [S] scope and the x86 Stage 3 notes); the A64 root keeps both import sets. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
CommaBot
added a commit
to CommaBot/FL4
that referenced
this pull request
Dec 4, 2026
…losfair#153); only the root import list conflicted Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR extends #151's AArch64 P1 S1A step
syscall.decode_invocation.s1aStepR2K. With it, the S1a invariant (S1aR2,S1aKtUt,S1aHiK) is re-established by every AArch64 decode arm and by the kernel functions outside decode, and it holds at boot with platform premises only.syscall.decode_invocation.s1aStepR2All, overDecArmS1aAll = DecArmS1aH ∨ DecArmS1aC. The new arms are:HighVSpace,IoPortControl/IoPort/TdxControl, and unknown TCB / SC / VCPU labels;SymLat w0 and w1 (S1aCBootSym).DelInat w0 and w1 (S1aBootDel0/1), under a new[P] BootCanon: boot objects lie in the kernel window.bootCanon_exshows it holds together withBootLay/BootLay1.w1K_bundleOftherefore depends only on[P]facts.check_budgetandcheck_budget_restart,end_timeslice,charge_budget;handle_recv);complete_run/ VGIC maintenance / vPPI;reply_error/reply_success;S1aStepEnt/s1aStepEntAllgivesSysL,HeapOK,BXI,OSOK,UserOK,VsTyandkswon the fixed-heap arms.Boundaries (also stated in README and DESIGN §9)
FrameOK/FrObjrequire an exact-size object at each frame base, andSysL.sub_falseshows that a Large frame and a Small subframe at the same base cannot both satisfySysL. A containment generalisation ofFrObjis future work.S1aStepEntdoes not cover Untyped Retype or MakePool-create.UserOKover the new heap would need the user words placed off the source untyped region, and no such fact exists yet.budget_ok/handle_fault/finish, the arch interrupt and VCPU entries,set_tls_base_self, and the debug syscalls.[J]case factshScC:cpu ∈ Csand the SC cap size;[J]recvOKnotification-state fact;[J] RunVcpuInv;[P]facts listed in each module docstring.Statements
mainis unchanged, includings1aStepR2K.proofs/Fl4ProofsA64/P1/, plus root imports, README and DESIGN.Verification
Final gate, on this exact commit:
Fl4ProofsA64root build: 0 errors, 0sorry.propext,Classical.choice,Quot.sound.sorry/admit/native_decide/bv_decide/axiom.An independent review raised documentation and docstring fixes only, with no soundness issue. The fixes are included, and a re-check approved them.
🤖 Generated with Claude Code