Nexoniarz
15331d4399
Fix two bugs the Fedora move exposed
...
Neither is Fedora-specific. A different host and a freshly built
userland simply drove code that Windows never reached.
tools/mkfs.c did not compile at all. The DT_UNKNOWN/DT_DIR/DT_REG
fallbacks sat above <dirent.h>, so on glibc -- which spells them as
enumerators -- the #ifndef asked before the header was read, always
answered "missing", and then the header's own enum expanded to
`enum { 0 = 0, ... }`. Move the fallbacks below the include. The
include cannot move up instead: it has to follow the #undef that ends
the `#define dirent schfs_dirent` block.
getstackpcs() page-faulted. It dereferenced rbp[1] without validating
rbp, and the guard rejected 0xffffffff -- dead code on x86-64, already
caught by the KERNBASE test -- while the value that actually turns up
is all-ones, which is above KERNBASE. rbp[1] then wrapped to 0x7 and
took trap 14. `cp` panicked the kernel every time. Bound rbp from
above and require 8-byte alignment.
That second one masks other bugs: getcallerpcs() runs on every lock
acquisition and again from the trap handler, so a walker that can
fault replaces a real diagnosis with a bogus one.
Baseline on the Fedora laptop is now green: make ports, make,
make schfs-check including the round-trip that had never run, and
bootcheck at 27/27 plus 108 [ok] across the extended suites.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-09 19:29:21 +02:00
..
MEMORY.md
Fix two bugs the Fedora move exposed
2026-08-09 19:29:21 +02:00
nexoniarz-sharing-preference.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schfs-btree-phase1.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schfs-phase2-mount.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schfs-phase3-writes.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schfs-v2-and-ramdisk.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schos-boot-split.md
memory: schinit and the BIOS/UEFI split
2026-08-09 16:36:54 +02:00
schos-bootcheck-trust.md
memory: performance, init signal safety, and trusting the harness
2026-08-09 15:55:11 +02:00
schos-cross-platform-build.md
Rewrite run.ps1; it was five kinds of stale
2026-08-09 14:49:47 +02:00
schos-fedora-move-bugs.md
Fix two bugs the Fedora move exposed
2026-08-09 19:29:21 +02:00
schos-linux-machine.md
Fix two bugs the Fedora move exposed
2026-08-09 19:29:21 +02:00
schos-memory-sync.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schos-performance-and-init.md
memory: performance, init signal safety, and trusting the harness
2026-08-09 15:55:11 +02:00
schos-rename-and-git.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schos-schinit.md
memory: schinit and the BIOS/UEFI split
2026-08-09 16:36:54 +02:00
schos-uefi-loader.md
memory: the UEFI loader
2026-08-09 17:13:44 +02:00
schunix-boot-splash-logo.md
schinit: a launchd-shaped process 1
2026-08-09 16:36:13 +02:00
schunix-build-environment.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-build-speed.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-console-tty.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-crash-screen.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-devfs-procfs.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-device-model.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-dirsiz-14.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-doom-acceptance-test.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-driver-infrastructure.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-e1000-and-driver-layout.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-framebuffer-device.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-iso-boot.md
schinit: a launchd-shaped process 1
2026-08-09 16:36:13 +02:00
schunix-layout-migration.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-licensing.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-linux-abi-decision.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-linux-open-flags.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-network-stack-choice.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-pci-drivers.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-qr-encoder.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-ramdisk-root-sizing.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-rewrite-priorities.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-roadmap-and-projects.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-schapi-direction.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-shm-and-mmap.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-smp-and-memory-bugs.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-sockets-and-evdev.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-syscall-single-table.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-text-rendering.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-ttf-rasteriser.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-tty-fg-pgrp-coupling.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-usb-ids.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-usb-xhci.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-verify-by-driving-shell.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-virtio-gpu.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00
schunix-wall-clock.md
Carry project memory in the repo, with tools/memory-sync.sh
2026-08-09 14:27:22 +02:00