Repository navigation
Releases
v2.24.0
What's Changed
- desktop-b: kernel UAPI для userspace-композитора (2.24.0) by @ccclosed in #100
- Desktop B: userspace compositor pagh-desktop (PDP/1, panel, headless PNG) by @ccclosed in #101
- desktop: UI-тулкит pagh-ui + файловый менеджер pagh-files (вариант B) by @ccclosed in #102
- feat(rust-apps): PaghTerm — VT100/ANSI terminal + PDP/1 client by @ccclosed in #103
- docs: issue forms + актуальный PR-шаблон by @ccclosed in #105
- linux: AF_UNIX SCM_RIGHTS fd passing для memfd (desktop B) by @ccclosed in #104
- desktop: PDP/1 для pagh-ui/Files, клиентская область без своего chrome, launch (type 13) by @ccclosed in #107
- desktop-b: shared VT surface /dev/vtconsole0 + /dev/vtinput by @ccclosed in #106
- Desktop B: fbdev + evdev backend for pagh-desktop (QEMU e2e) by @ccclosed in #108
- apt/ppkg: performance (streaming .deb, index cache, timings), rename to ppkg, DNF-style install progress by @ccclosed in #109
- fb0: write-combining via PAT (desktop compositor performance) by @ccclosed in #110
- desktop: damage-only present, cached layers, 60Hz and ShmSurface server (§3) by @ccclosed in #111
- perf(desktop): ShmSurface clients + dirty rects (spec §4) by @ccclosed in #112
- fix(desktop): align shm commit rects with merged PDP/1 ABI (u32) by @ccclosed in #113
- desktop: fix child launch (stat, vfork/posix_spawn, AF_UNIX sendto/recvfrom) by @ccclosed in #116
- linux: ignore SIG_DFL/Ignore signals in tick delivery (SIGCHLD crash) by @ccclosed in #117
- linux: phase-1 groups — supplementary groups, group VFS/devices, id/groups/su by @ccclosed in #115
- linux: files-compat — lstat/shutdown, stream short-write, socket wake-on-close by @ccclosed in #118
- desktop: launch real apps from panel/hotkey, --autostart, clean demo EOF by @ccclosed in #119
- idt: ring-3 faults kill the task, never halt the machine by @ccclosed in #120
- desktop: Win11-style network flyout (real-data gap documented) by @ccclosed in #121
- terminal: bare Konsole-style minimal render by @ccclosed in #122
- input: single keyboard owner for the VT terminal (dedup evdev/vtinput) by @ccclosed in #123
- e2e: real pagh-files/pagh-terminal desktop scenario + firmware 0-serial diagnostics by @ccclosed in #124
- linux: fault in lazy user pages for vtconsole read (fix EFAULT on large snapshots) by @ccclosed in #125
- linux: demand-page lazy user buffers in read/write (fix EFAULT class, ENOMEM guard) by @ccclosed in #126
- linux/desktop: fix SHM_OFFER — SCM_RIGHTS after plain write + cross-thread memfd mapping by @ccclosed in #127
- desktop: ready-made Fluent UI icons (MIT) instead of drawn primitives by @ccclosed in #128
- files: sidebar navigates to real directories (XDG dirs, honest network/trash/devices) by @ccclosed in #129
- files: ready-made Fluent entry/sidebar icons (MIT) by type and extension by @ccclosed in #130
- linux/shell: non-root identity — setuid-on-exec, session run-as, whoami, passwd/shadow auth by @ccclosed in #131
- linux/vfs: non-root permissions — sticky bit, inet bind/listen with port/raw gates by @ccclosed in #132
- desktop: crisp icon rendering — exact-size cairosvg + phase fit, resample fallback by @ccclosed in #133
- desktop: non-blocking PDP reader (fix CPU-starvation delayed input) + press-routing regression tests by @ccclosed in #134
- perf: 6-12x frame-time — opt-level=3, bulk copy, opaque fill, clip spans, cursor overlay by @ccclosed in #135
- linux: AF_UNIX blocking I/O sleeps instead of yield-spin + SO_RCVTIMEO/SO_SNDTIMEO by @ccclosed in #137
- kernel: per-task compat PF-guard — ring-3 lazy faults never refused (fix heavy-session SIGSEGV cascade) by @ccclosed in #140
- desktop: rubber-band LMB selection + skip boot disk-menu when pagh volume present by @ccclosed in #136
- terminal: private interactive shell session over pipes (free input, clean prompt) by @ccclosed in #138
- shell: remove ring-0 mini-Rust interpreter (security surface reduction) by @ccclosed in #139
- net/procfs/linux: expose real interface data — /proc/net/dev + SIOCGIF* (counters, IP, link) by @ccclosed in #141
- desktop: network flyout shows real interface data (IP, rates, link) from /proc/net/dev + ioctl by @ccclosed in #142
- boot: show mount-choice menu exactly once (persist choice in volume boot block) by @ccclosed in #143
- docs: fold unreleased changelog into 2.24.0 by @ccclosed in #144
- boot: apply the [BOOTID] boot-identity marker for E2E proof by @ccclosed in #150
- kernel: consume SIGCONT/SIG_IGN defaults on tick delivery instead of building a zero-handler frame by @ccclosed in #151
- desktop: stabilize the real-apps e2e (quiet exit marker, session marker, lifetime) by @ccclosed in #152
- e2e: require the launch-target PNG instead of a non-None bool by @ccclosed in #153
- release: merge dev into main for 2.24.0 by @ccclosed in #146
Full Changelog: v2.23.0...v2.24.0
2.24.0 — demo bundle: boot pagh desktop in one command
One-command QEMU/OVMF demo of Pagh-OS 2.24.0 (integration build f9b58a16, branch integration/mvp-full; origin/dev @ 14e3168a merged: every feature PR #118–#143, including boot-menu-once, kernel network data (K0–K3) and the network flyout).
Desktop starts automatically (fbdev + evdev) once the system volume is mounted; damage-only compositor;
ShmSurface clients over PDP/1.
What is new in this build (vs the previous demo image):
- The disk menu is asked once per machine.
fix/boot-menu-once(#143) replaces the old
"a pagh volume exists ⇒ skip the menu" rule. That rule was wrong in both directions: it never
asked an operator who had never answered (an image built by the tooling already carries a pagh
volume), and it could never be un-answered. The kernel now records the chosen action in the
boot block of the mounted volume (fs::mount_choice, LBA 1, written last, after the mount
and seed succeed), andboot_menu::runskips only when that recorded choice is present.
On media that keep the system volume in RAM (this USB image and the ISO loaddisk.imgas
ram0, writes are lost at reboot) the record cannot survive, so the menu appears on every
boot there — that is expected and documented inTRY-IT.md. Installed on a real disk it is
asked once. - The network flyout shows real kernel data (
feat/kernel-net-dataK0–K3 +
feat/network-flyout-data): per-channel byte/packet counters (src/net/netstats.rs),
/proc/net/devrender (docs/procfs.md§15),SIOCGIFCONF/SIOCGIFADDR/SIOCGIFFLAGSon
AF_INETsockets (Linux UAPI 40-byteifreq), andpagh-desktop'snetinforeader. Panel
network icon and flyout are fed by those, no longer by a hardcoded guess. - Long sessions no longer die.
fix/pf-guard-reentry(#140) is in this image: the page-fault
guard is per task (owner pid beside the depth), ring-3 faults are always serviced, and the
kill path abandons only its own owner's entry instead of wrapping a per-CPU counter. - Click really navigates.
SO_RCVTIMEO/SO_SNDTIMEOare honoured and blocking socket waits
sleep one tick (fix/unix-recv-delivery,#137). - Rubber-band selection on the empty desktop (
feat/desktop-ux,#136). - Ring-0 mini-Rust interpreter removed (
#139);rustis anlxrunalias. pagh-terminalruns its own shell session in a window (#138); Alt+Shift+F4 in Files
opens it without touching the panel chip. Non-root identity/permissions (#131,#132),
crisp icons (#128,#130,#133), frame-time harness (#135) and real-app e2e (#124)
are all in this tree.
Boot-menu-once, and where it does (not) appear. The harness tools/e2e.py usb pins this path
in the guest: it formats a disk through the menu over the emulated USB keyboard, reboots and
asserts boot disk menu skipped (the skip now comes from the recorded marker), then erases that
marker from a fresh copy — a provisioned volume nobody answered for — and asserts the menu SHOWS,
Enter mounts, and the next boot skips again. The host property mount_choice pins the other half:
a damaged, foreign or random marker sector reads as "no choice", so a corrupt sector can never
decide a mount for the operator. src/test.rs also carries the in-QEMU routines for the net-data
chain (K0–K3).
The menu is a question about partitions: these demo media carry the system as a bare ext2 image
on the boot medium (disk.img → ram0), so there are no partition candidates and the boot path
mounts it directly — no menu, no 20 s pause, desktop starts immediately (verified in QEMU on all
three media). A partitioned disk — an installed system — is where the menu appears once, records
the answer, and stays away.
Heavy-session verification. The fix/pf-guard-reentry build (in this image) was booted from
pagh-boot.img under QEMU with -snapshot and driven through a ten-minute desktop session:
terminal command load plus a sidebar click campaign. The serial log contains zero
[EXC #14], SIGSEGV, refusing re-entry, PANIC or Broken pipe entries, and Files still
navigated at the end of the run. This image is that tree plus the dev merge, with all gates
re-run green (host-tests 797/0, e2e selftest 115 routines / 0 failed).
pagh-demo-x86_64.tar.gz (~60 MB) contains:
pagh-boot.img— GPT+ESP UEFI USB image (dd to a stick), SHA256775ae20c61cd37bccf774e626ab35af7651ce647d8dde8120e871d3640775e61PAGH-OS-2.24.0-desktop-demo.iso— BIOS+UEFI ISO (Ventoy-ready, verified booting), SHA25648c2181fba3f507ca26ddfdda08d7ac0f23ad795626673e0170386f4c6f78a7drun.sh(./run.sh or ./run.sh --iso),TRY-IT.md,README.txt,SHA256SUMS
SHA256 of the archive: d462c3920e6155ba7f476640d54ed95ecac2f741907f360c091117ec3ec1ff9e
Media verification. pagh-boot.img and the ISO were both booted in this build under QEMU/OVMF
and reach the same desktop (app="pagh-files" in the serial log); the demo disk boot was driven
long enough to open the terminal window as well. Serial logs for every run: no EPIPE,
[EXC, SIGSEGV, PANIC or refusing re-entry.
v2.23.0
What's Changed
- docs: dev carries 2.22.9 after the r4 hotfix merge by @ccclosed in #96
- usb-rndis: телефон как Ethernet-тетеринг (xHCI + net link) by @ccclosed in #97
- usb: убрать диагностический дамп xHCI с экрана загрузки by @ccclosed in #99
- release: 2.23.0 — USB RNDIS tethering by @ccclosed in #98
Full Changelog: v2.22.9...v2.23.0
v2.22.9
What's Changed
- hotfix 2.22.9: RO-out registry deadlock, FPU isolation, cross-package symlink, SFMask, fd cap by @ccclosed in #95
Full Changelog: v2.22.8...v2.22.9
v2.22.8
What's Changed
- docs: русский перевод корневых доков + COMMENT_STYLE by @ccclosed in #88
- vfs, fs: translate prose comments and module READMEs to Russian by @ccclosed in #89
- chore: Russian comment/module-doc cleanup (shell, net, pkg, drivers, misc) by @ccclosed in #90
- arch, task, memory: Russian comments and module docs by @ccclosed in #91
- docs: main reads 2.22.7 after the USB release by @ccclosed in #92
- release 2.22.8: Russian comments/docs across the tree by @ccclosed in #93
- release: 2.22.8 — Russian comments/docs across the tree by @ccclosed in #94
Full Changelog: v2.22.7...v2.22.8
v2.22.7
What's Changed
- security: round-3 dev fixes — COW protection, ext2 group counts, exec AS accounting (2.22.7) by @ccclosed in #81
- USB HID: boot protocol, packet-sized buffers, Reset Endpoint recovery, composite interfaces (2.22.7) by @ccclosed in #82
- usb: xHCI port reset state machine — stop resetting ports in Polling (2.22.7) by @ccclosed in #83
- usb: xHCI root-port bring-up v2 — neutral PORTSC writes + Linux hub reset sequencing (2.22.7) by @ccclosed in #84
- xhci: fix HID transfer-ring wrap (Link TRB cycle + TRB_TOGGLE) by @ccclosed in #85
- usb: clean driver naming, remove debug log spam, Russian prose by @ccclosed in #86
- release: 2.22.7 — USB input works on real hardware by @ccclosed in #87
Full Changelog: v2.22.6...v2.22.7
v2.22.6
What's Changed
Full Changelog: v2.22.5...v2.22.6
v2.22.5
What's Changed
- drivers: read the Supported Protocol port-info word as the spec defines it (2.18.13) by @ccclosed in #56
- logfile: never write past the line buffer (panic on a long log line) by @ccclosed in #60
- tools: worktrees.py — classify and safely prune the worktree sprawl by @ccclosed in #57
- docs: sync README/subsystem claims, mkimage ISO docstring, and shell help text by @ccclosed in #58
- docs: correct stale limitation lists, counts and build-path claims by @ccclosed in #59
- tools: commit the USB HID input acceptance scenario (e2e.py usb) by @ccclosed in #61
- docs: bring CHANGELOG.md up to date (2.17.0 through 2.18.13) by @ccclosed in #62
- docs: audit the procfs contract against the tree by @ccclosed in #63
- linux: sysinfo(2) reports the same load averages as /proc/loadavg by @ccclosed in #64
- docs: drop SYNCED-FEATURES.md, a leftover from the GUS port by @ccclosed in #65
- shell: free, date, text tools, tree, ls -l, chmod/chown (2.19.0) by @ccclosed in #66
- procfs: per-thread /proc//task view (2.19.0) by @ccclosed in #67
- procfs: real file identity in /proc//maps (2.20.0, stacked on #67) by @ccclosed in #68
- drivers: console scrollback — mouse wheel + PageUp/PageDown (2.21.0) by @ccclosed in #69
- security: close the three ring3→ring0 paths from the attack audit (2.22.0) by @ccclosed in #70
- security: confine the package installer to its install root (F-x86n-1) by @ccclosed in #71
- security: crafted-ext2 bounds + path search permissions (2.22.2) by @ccclosed in #72
- security: close the user-buffer TOCTOU class + cap sendto/recvfrom payloads (2.22.3) by @ccclosed in #73
- docs: record the closed 2026-11-13 audit status by @ccclosed in #74
- docs: main/dev branch model and tag-driven release workflow by @ccclosed in #75
- security: fork-COW frame ownership UAF/double-free → uid0 (F-r2-arch-1/2, 2.22.4) by @ccclosed in #77
- pkg: refuse hard-link aliases of archive symlinks (F-r2-vfs-1, 2.22.5) by @ccclosed in #76
- docs: record the round-2 audit results and sibling-repo fixes by @ccclosed in #78
- Release v2: strict guards, RELEASING.md, kernel artifact by @ccclosed in #79
Full Changelog: 2.18.6...v2.22.5
2.18.12 — demo bundle: boot pagh in one command
Try pagh in one command
A ready-to-boot demo bundle for the current kernel (2.18.12): no Rust toolchain, no build step.
| file | what it is |
|---|---|
pagh-boot.img |
UEFI FAT boot image — Limine + the release kernel (pagh.elf) |
run.sh |
QEMU/OVMF launcher (finds the firmware, creates a data disk on first run) |
TRY-IT.md |
three steps to boot and quit |
Boot it:
tar xzf pagh-demo-x86_64.tar.gz
cd pagh-demo-x86_64
./run.shRequires qemu-system-x86_64 + OVMF (edk2-ovmf, ovmf, or OVMF.fd via $OVMF).
Quit with Ctrl+Alt+G to release the mouse, then quit + Enter in the terminal.
PAGH_HEADLESS=1 ./run.sh boots without a window and writes pagh-serial.log.
What is in the demo disk
The guest formats its own 256 MiB disk.img on first boot (ext2 + WAL) and installs its
first-boot files. The shell, the framebuffer console, paint, nano+, settings
(themes/wallpapers) and the ls/df/ifconfig commands all work out of the box.
Note
The bundle is built from main at commit 1a54396, which includes a fix for the
USB-HID mouse path (vertical movement used to be inverted — src/drivers/usb_hid.rs
passed the HID dy through without flipping its sign for the PS/2 packet format).
Verified under QEMU: mouse_move 0,100 now moves the cursor 100 px down. The PS/2
mouse path — the default under QEMU — was and is unaffected.
See the repository README for the full feature list and the 57 KB of deep docs; the
demo GIF at docs/demo.gif (or docs/demo.mp4) shows a real QEMU boot.
2.18.6 — реальное железо: меню диска, калибровка часов, USB-ввод
Батч, который начался с первого выхода pagh на живую машину и ушёл в отладку ввода на реальном железе.
Диск: меню выбора и сохранность чужих разделов
- Ядро разбирает GPT и MBR и публикует каждый раздел отдельным блочным устройством (
nvme0p1,virtio-blk0p1, …) — pagh может владеть одним разделом, а не всем диском. - При загрузке показывается меню диска: что держит каждый раздел (
pagh volumeпо WAL-маркеру,empty,FOREIGN fs (ext2/ext4),unknown data) и RAM-диск с носителя.Enterмонтирует и никогда не форматирует;Fформатирует только после ввода имени устройства; 20 с без клавиш — недеструктивный выбор. Автоматически форматируется только RAM-диск с загрузочного носителя. - Том считается «своим» только по WAL-суперблоку, который пишет один
format; ext3/ext4 отсекаются по feature-словам, чужой ext2 остаётся нетронутым. Проверено: ext4-раздел после Enter/формата/монтирования побитово не изменился. - Починен детектор ext-суперблока: магия читалась по смещению 1024 вместо 1024+0x38, из-за чего любой ext2/ext4 считался «чужим».
Часы
Таймер LAPIC снова измеряется по PIT, а не берётся из константы QEMU: на живой машине 62.5 МГц давали секунду длиной в минуту. Калибровка была отключена в коде хвостом от отладки BIOS-стека — включена обратно, в QEMU измерение даёт 62.57 МГц и время идёт 1:1.
USB-ввод
Перечисление xHCI впервые заработало в QEMU (клавиатура и мышь: порт→слот→адрес→дескрипторы→SET_CONFIGURATION→boot-протокол→interrupt-IN→shell и меню). По дороге исправлены: шаг регистров портов 4 байта вместо 16, виртуальный адрес Input Context вместо физического, отсутствующий SET_CONFIGURATION, разложенный по чужим полям контекст эндпоинта, EP0 max packet из дескриптора, тёплый сброс для USB3-портов, ожидание PED вместо PRC, перебор всех xHCI-контроллеров и BIOS→OS handoff.
Честный статус: на живой машине устройства видны на портах, но порт не включается — перечисление до HID не доходит. Текущая сборка печатает на экран полную диагностику: строку input:, по контрольному списку портов стадию и коды, снимки PORTSC до/после сброса, состояние регистров контроллера и карту контроллеров. По этим данным причина будет закрыта следующей сборкой.
Диагностика без serial
На машине без COM-порта единственный канал отчёта — экран: boot-меню и баннер shell печатают состояние USB (контроллеры, порты, устройства, HID, счётчики отчётов, PS/2), а usb в шелле — PORTSC каждого порта и счётчики.