ASELSANMicrokernel
S305 · SOURCE-BOUND GATE EVIDENCE

G8l: EL0 IPC-call reply-alias writer-authority audit

Operations --test hedefi → test hedefiyle aynı adlı uygulama/model modülü → kaynak kesiti Bu sayfa yalnız S305 kapısına aittir; komşu kapıların kaynakları bu kabulün içine katılmaz.

S305Focused kod testiOperations id exactsource SHA exacttest target exact

operation: g8l-s305-el0-ipc-call-reply-alias-writer-authority-audit-partial

uygulama/model · focused test · Operations · 3 exact excerpt

sequence-bound=true · implementation-bound=true
01 · Testin bağlı olduğu uygulama/model kodu

Kapının yürüttüğü gerçek kaynak

tam Rust öğesiL29–L96
kernel/src/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s305_el0_ipc_call_reply_alias_writer_authority_audit.rs::S305_WHOLE_SCHEDULER_GUARDED_SITES
pub const S305_EXCEPTIONS_EXPLICIT_WRITER_SITES: usize = 8;
pub const S305_EXCEPTIONS_REMAINING_UNAUDITED_WRITER_SITES: usize = 4;
pub const S305_DIRECT_SCHEDULER_ACCESS_SITES: usize = S304_DIRECT_SCHEDULER_ACCESS_SITES;
pub const S305_IMMUTABLE_READ_SITES: usize = S304_IMMUTABLE_READ_SITES;
pub const S305_WHOLE_SCHEDULER_GUARDED_SITES: usize = S304_WHOLE_SCHEDULER_GUARDED_SITES;
pub const S305_WHOLE_SCHEDULER_UNROUTED_SITES: usize = S304_WHOLE_SCHEDULER_UNROUTED_SITES;
pub const S305_OPEN_WRITER_SITES: usize = S304_OPEN_WRITER_SITES;

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS305SchedulerWriterAuthorityAuditOutcome {
    Idle,
    AwaitingWriterAuthority {
        request_id: u64,
        guarded_sites: usize,
        writer_sites: usize,
    },
}

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum G8lS305SchedulerWriterAuthorityAuditError {
    S304(G8lS304SchedulerWriterAuthorityAuditError),
    S245(G8lS245ExclusionAdmissionRequestError),
    PriorCoverageDrift {
        guarded_sites: usize,
        unrouted_sites: usize,
    },
}

/// Revalidate the prior fail-closed authority boundary without taking
/// admission or constructing a production exclusive wrapper.
pub fn preflight_s305_scheduler_writer_authority(
    caller_cpu: usize,
    request: Option<G8lS245WholeSchedulerExclusionAdmissionRequestView>,
) -> Result<G8lS305SchedulerWriterAuthorityAuditOutcome, G8lS305SchedulerWriterAuthorityAuditError>
{
    match preflight_s304_scheduler_writer_authority(caller_cpu, request)
        .map_err(G8lS305SchedulerWriterAuthorityAuditError::S304)?
    {
        G8lS304SchedulerWriterAuthorityAuditOutcome::Idle => {
            Ok(G8lS305SchedulerWriterAuthorityAuditOutcome::Idle)
        }
        G8lS304SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            request_id,
            guarded_sites,
            writer_sites,
        } if guarded_sites == S305_WHOLE_SCHEDULER_GUARDED_SITES
            && writer_sites == S305_OPEN_WRITER_SITES =>
        {
            Ok(
                G8lS305SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
                    request_id,
                    guarded_sites,
                    writer_sites,
                },
            )
        }
        G8lS304SchedulerWriterAuthorityAuditOutcome::AwaitingWriterAuthority {
            guarded_sites,
            writer_sites: _,
            ..
        } => Err(
            G8lS305SchedulerWriterAuthorityAuditError::PriorCoverageDrift {
                guarded_sites,
                unrouted_sites: S305_DIRECT_SCHEDULER_ACCESS_SITES - guarded_sites,
            },
        ),
    }
}
snippet sha256: 04b1ee15641efile sha256: 8f01b94e453a
02 · Doğrulayan test kodu

Operations komutuna bağlı focused test

tam Rust öğesiL63–L75
simulation/tests/g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s305_el0_ipc_call_reply_alias_writer_authority_audit.rs::s305_keeps_el0_ipc_call_reply_alias_writer_open_until_exclusive_authority_exists

#[test]
fn s305_keeps_el0_ipc_call_reply_alias_writer_open_until_exclusive_authority_exists() {
    assert_eq!(S305_WRITER_BOUNDARY_SITES, 1);
    assert_eq!(S305_WRITER_AUTHORITY_SITES, 0);
    assert_eq!(S305_DIRECT_SCHEDULER_ACCESS_SITES, 113);
    assert_eq!(S305_IMMUTABLE_READ_SITES, 44);
    assert_eq!(S305_WHOLE_SCHEDULER_GUARDED_SITES, 44);
    assert_eq!(S305_WHOLE_SCHEDULER_UNROUTED_SITES, 69);
    assert_eq!(S305_OPEN_WRITER_SITES, 69);
    assert_eq!(S305_EXCEPTIONS_EXPLICIT_WRITER_SITES, 8);
    assert_eq!(S305_EXCEPTIONS_REMAINING_UNAUDITED_WRITER_SITES, 4);
}
snippet sha256: 2e32ef895b49file sha256: eb059caf8344
03 · Kapı kimlik kaydı

Operations sıra, kimlik ve başlık bağı

tam Operations kaydıL15993–L16050
website/src/lib/operations.ts::g8l-s305-el0-ipc-call-reply-alias-writer-authority-audit-partial
  {
    id: "g8l-s305-el0-ipc-call-reply-alias-writer-authority-audit-partial",
    date: "2026-08-26",
    sequence: 305,
    status: "passed",
    umbrella_status: "partial",
    title: "G8l: EL0 IPC-call reply-alias writer-authority audit",
    summary:
      "S305 focused 15/15 PASS ile arch/aarch64/exceptions.rs içindeki kaynak sırasına göre sondan dördüncü explicit mutable scheduler aliasını doğrular: SYS_IPC_CALL dalındaki iki aliasın kaynakta daha önce gelen legacy reply-alias ipc_reply_commit sınırı. Immutable ENDPOINT_REGISTRY reply classification ve runtime-OOM one-shot CALL_ALIAS_REJECTED writer'dan önce kalır; owned reply message exact forward edilir. ipc_reply_commit helper'ı canlı responder, reply object, blocked caller, caller-CNode reply authority/generation, deadline, ready capacity ve rendezvous binding'i existing transaction altında yeniden doğrular; exact result terminal return ile normal path'ten önce kapanır. Writer authority yalnız model gate'inin exclusive lease'iyle mümkündür; reader lease'i writer'ı açmaz. Production inventory 113 direct / 44 immutable guarded / 69 open writer olarak değişmez; exceptions.rs içindeki 8 explicit aliasın 4'ü ayrıca açık kalır ve production exclusive wrapper, provider authority, whole-scheduler exclusion veya scheduler mutation üretilmez.",
    evidence: [
      "S305 focused kaynak/model kapısı iki bağımsız koşuda 15/15 PASS verdi: 130 B / SHA-256 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3.",
      "SYS_IPC_CALL dalında iki explicit mutable alias vardır; legacy reply alt-sınırındaki kaynak-order-earlier writer audit edilir. ENDPOINT_REGISTRY exact target_id için immutable is_reply_cap sınıflaması yapar; missing target InvalidCapability döner. runtime_oom_reply_cap_is_bound(target_id) CALL_ALIAS_REJECTED ile writer'dan önce terminal kapanır. Owned IpcMessage label/current badge/MR0–MR3 taşır ve scheduler.ipc_reply_commit(target_id, reply_message) exact forward edilir. exceptions.rs 8 explicit writer / 4 remaining unaudited'dır.",
      "ipc_reply_commit existing IRQ/IPC transaction altında nonzero current responder, live reply object/target endpoint, blocked CALL caller, exact caller-CNode reply authority/generation, optional deadline, ready capacity ve rendezvous responder binding'i sıralı yeniden doğrular; exact result set_ipc_error sonrası return ile normal SEND/CALL path'ten önce kapanır.",
      "Model gate reader membership exclusive writer authority'yi ExclusiveBusy ile bloklar; reader bırakıldıktan sonra non-zero token'lı exclusive lease alınır. Bu host/model evidence'tır.",
      "S304 authority preflight yeniden doğrulanır; pending S245 request korunur ve sonuç AwaitingWriterAuthority { guarded_sites: 44, writer_sites: 69 } olarak döner.",
      "Dört AArch64 profil derlemesi iki koşuda byte-equal exit 0 verdi: QEMU 110646 B / f57e0d14, RPi4 149371 B / d81c217b, RPi5 422449 B / 56a81d2c ve RPi5+SMP 422391 B / 407fa1be. Warning header'ları sırasıyla 291, 389, 878 ve 878'dir; zero-warning iddiası değildir.",
      "Birleşik board-rpi5,board-qemu özellikleri iki koşuda beklenen exit 101, 18590 B / 5eeaf35f, 17 error ve 22 warning header ile fail-closed kaldı; S305 writer boundary'si iki board profilinin birlikte etkinleşmesini açmaz.",
      "S238–S305 dependency matrisi iki koşuda 69 grup / 959/959 PASS; ham loglar byte-equal 8892 B / 5a8bb5e76912fdef2768a086edad0b46e6c3a7c72b7633f8ee04d49d05abb7b4, süre-normalize özetler byte-equal 9030 B / 3ae729fc40af0dcc2c8df3bb13c31682389e5eccf696a657f0495860e53b0ecb. Bu production writer-authority invocation kanıtı değildir.",
      "Ortak make verify-qemu iki koşuda PASS verdi: 116222 B / c964b0f9 ve 116139 B / d72409b2; W^X 31/31, S271 GRAPH_ABSENT=YES, RuntimePmm baseline, EL0 x4096, IPC 20/20, tek S142 containment ve SEC5 korunur. Bu ortak smoke S305 production writer invocation kanıtı değildir.",
      "Exact yedi tarihsel G8h assertion adıyla dışlandığında workspace iki koşuda 267 sonuç grubu / 2753 PASS / 7 filtered verdi: ham loglar 62196 B / e8a201e8 ve df80e9af, süre-normalize 25780 B özet byte-equal / SHA-256 818646997a085a494d84ac27827f8c22e46fe1110b6e96eabafce5285b6c4963. Filtresiz koşu exit 101, 57418 B / e9efc4b5 ile frozen S96 exceptions.S identity kapısında RED kaldı; full-workspace GREEN iddia edilmez.",
      "S305 production exclusive wrapper, provider authority, whole-scheduler exclusion, QEMU runtime fixture veya scheduler mutation iddiası eklemez; physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S305=NO.",
    ],
    commands: [
      "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s305_el0_ipc_call_reply_alias_writer_authority_audit -- --test-threads=1",
      "cargo build --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-qemu",
      "cargo build --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi4",
      "cargo build --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5",
      "cargo build --quiet -p aselsan_kernel --target aarch64-unknown-none --no-default-features --features board-rpi5,smp",
      "cargo build --quiet -p aselsan_kernel --target aarch64-unknown-none --features board-rpi5",
      "make verify-qemu",
    ],
    terminalSessions: [
      {
        id: "g8l-s305-el0-ipc-call-reply-alias-writer-authority-audit",
        title: "G8l S305 EL0 IPC-call reply-alias writer-authority audit",
        commandLines: [
          "cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s305_el0_ipc_call_reply_alias_writer_authority_audit -- --test-threads=1",
        ],
        outputLines: [
          "test result: ok; S305 focused 1 group / 15 passed; 0 failed",
          "repeat-stable quiet output: 130 B / 0447f2fe9dc6fdf30815a6962cf23d978425e51bef2acde1efb27e5da13a78b3",
          "EL0 IPC-call reply-alias writer authority remains model-only: reader blocks exclusive lease; immutable reply classification, runtime-OOM alias rejection, exact reply commit and delegated live-graph revalidation are source-audited while exceptions.rs retains 4 unaudited aliases and all 69 production writer sites remain open",
          "dependency: S238–S305 · 69 groups · 959/959 PASS; workspace: 267 groups · 2753 PASS · 7 historical filtered",
        ],
        exitCode: 0,
        outputMode: "selected",
      },
    ],
    terminalSessionsNote:
      "S305 kaynak/model fail-closed authority boundary'sidir; production writer guard/migration, QEMU fixture mutation ve fiziksel/device execution claim edilmez.",
    limitations: [
      "S305 exceptions.rs içindeki kaynak sırasına göre sondan dördüncü explicit mutable scheduler aliasını audit eder; aynı source unit'te 4 alias ve toplam 69 production writer site authority wrapper dışında açık kalır.",
      "Exclusive lease yalnız host/model gate'inde test edilir; production exclusive wrapper, provider authority ve whole-scheduler exclusion açık kalır.",
      "S238–S305 dependency matrisi exact 69 grup / 959/959 PASS'tir; bu production writer authority invocation kanıtı değildir.",
      "Filtresiz workspace frozen S96 identity kapısında RED'dir; workspace umbrella GREEN iddia edilmez.",
      "Supported-profile runtime invocation, Generic SMP ve fiziksel RPi kabulü açık kalır; S305 physical/device operations=0 ve RUNBOOK_EXECUTED_IN_S305=NO.",
    ],
  },
snippet sha256: 2493d0eccca1file sha256: 9726dbf00f84
Focused test komutu
cargo test --quiet -p aselsan_microkernel_simulation --test g8l_target_dispatch_scheduler_owner_scheduler_mutation_production_migration_lifecycle_s305_el0_ipc_call_reply_alias_writer_authority_audit -- --test-threads=1
proof: docs/M8.1-RPi5-G8l-S305-EL0-IPC-Call-Reply-Alias-Writer-Authority-Audit-Proof.md
Registry schema v5 · generator website/scripts/generate-code-gates.mjs · Tam SHA-256: 3050638b71a684d8f8f947a8a6faa237a17fa8db5dc0db04fb207b668b462af9