[BUG] Real AP scheduler witness stops before independently timed AP progress #41
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/kernel#41
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The four-CPU long-mode global scheduler witness used a fixed 32-iteration bootstrap-CPU observation loop. It could finish before independently ticking application processors performed their first scheduler switch, producing GLOBAL_RUNQ failure despite all three APs being online.
Reproduction
Run the maintained subsystem-kernel-smp-long-mode-global-positive scenario against Kernel
88e4ff4c65and Integration 6e91da8147f02f8bbd0d5c0dd87fda8dd98e94a1. One original execution starts three APs and fails GLOBAL_RUNQ. A separate observation-only diagnostic reads the already computed report without changing original operations, loop bounds or verdicts: four CPUs, 32 switches, all tasks seen, incomplete CPU participation, three attached APs and zero AP switches. Neither failure was retried for acceptance.Expected and actual behavior
Expected: retain actual CPU/task participation evidence while real AP workers advance within a bounded clock interval. Actual: the BSP loop ended before AP progress. The correction observes independent AP counters under short guards within a retained one-second processor-clock deadline, preserves immediate errors and incomplete expiration, and releases guards before waiting. Original outer 60-second hard and 45-second silence limits remain unchanged. Simulated/trampoline deterministic workloads retain their original loops. Runtime, VM witnesses and tests are separated into documented modules below 1,000 lines.
Environment and identity
Original observed Kernel
88e4ff4c65; corrected executable Kernel6908d2ec82and Integration dcaa6df2e5ad30b7cf6313c880c6c8d51b47096f, with Bootloader ec00005c324ae05dc6f2faf57c496185d297726b. Four native x86-64 CPUs and long-mode AP startup.Evidence and prior checks
Three added host regressions cover actual scheduler counters delayed beyond 32 observations, incomplete clock expiry and immediate observation failure. The corrected long-mode native run observes all three APs online and passes actual AP attachment, switches and join checks. The unrelated original startup-silence failure remains open. The corrected graph passes four SMP profiles plus seven maintained mapping, lifetime, invocation, allocator and ordinary exec-successor contracts across ten actual native executions. Mapping/isolation and sparse use their identical runtime capture with both original marker contracts. All original limits remain required. Source signatures and original normally stripped packaged Kernels verify; image warnings and QEMU stderr are absent. Four strict Kernel configurations pass 914/938 tests with three existing ignored cases, and eighteen native build/binary Clippy profiles and private rustdoc pass without warnings. Bootloader passes all four host/UEFI configurations with 34 unit and seven standalone tests, signing controls and four Python fixture suites. Integration retains all 172 helper and 100 Rust crate/fixture inputs from their complete validation. The complete manual passes 45 tests and 2,445 pages without final warnings or overflow.
Tracking
The validated coordinated changes are published in Kernel, Bootloader, Integration and the manual. Owning Kernel PR 3, Bootloader PR 3, Integration PR 12, owned address-space work and Phase 6 completion retain the broader acceptance work. Publication CI at 2026-09-24T12:49:44.573423+00:00: bootloader: 144 success, 143 success; kernel: 697 success, 696 success; docs: 1058 success, 1057 success; integration: 1778 waiting, 1777 waiting. Complete successful bootloader/kernel/docs logs retained and reviewed: 12 logs, 1,848,864 bytes, zero final warnings. Initial TeX reference warnings precede clean final passes. Original failed inputs have not been rerun; the open startup-silence report is unaffected. Full Integration regression review remains pending; keep this report open until that evidence is complete. No merge, release, performance improvement or full guest-build acceptance is claimed.
erikinkinen referenced this issue2026-09-24 14:43:13 +02:00
erikinkinen referenced this issue2026-09-24 14:43:18 +02:00
erikinkinen referenced this issue from erix/bootloader2026-09-24 14:43:22 +02:00
erikinkinen referenced this issue from erix/integration2026-09-24 14:43:31 +02:00
erikinkinen referenced this issue from erix/docs2026-09-24 14:43:40 +02:00