SchOS/kernel
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 2cfa3f0bf2 kernel: chroot, #! scripts, rename and mmap as apk needs them
Found by running Alpine's apk on SchOS, one failure at a time:

- chroot(2) was a stub returning EPERM. Each process now has a root:
  where an absolute path starts and where .. stops. Mounts remember
  whose root they were made under, and a walk leaves a mount by the way
  it came in, so one filesystem can be mounted twice.
- devtmpfs and proc mounted only on /dev and /proc, whatever the target;
  a chroot got "already mounted".
- mmap never reused freed address space, so musl's malloc used up the
  256 mapping records while 780 MB were free. A mergeable mapping now
  goes straight after an anonymous one whose end has room.
- unlinkat returned -1 (EPERM) where apk expects ENOENT, and renameat
  was an old copy of rename: no replacing the target, and v1 dirents
  written into SchFS. Both now share rename's implementation.
- execve runs #! scripts, and says ENOEXEC for what it cannot run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
2026-10-24 15:28:32 +02:00
..
acpi bug pass: whole console lines, a quiet SCI, an honest reserve warning 2026-10-23 16:03:33 +02:00
arch/x86_64 uefi, vm: 2 MB pages where the CPU has no 1 GB ones 2026-10-24 11:45:18 +02:00
core input, fb, vt, sysfs: the kernel calls Xorg makes 2026-10-24 12:06:04 +02:00
dev input, fb, vt, sysfs: the kernel calls Xorg makes 2026-10-24 12:06:04 +02:00
drivers display: a 64-bit framebuffer address, no mirroring onto itself 2026-10-23 15:46:42 +02:00
fs kernel: chroot, #! scripts, rename and mmap as apk needs them 2026-10-24 15:28:32 +02:00
net include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
proc kernel: chroot, #! scripts, rename and mmap as apk needs them 2026-10-24 15:28:32 +02:00
sys kernel: chroot, #! scripts, rename and mmap as apk needs them 2026-10-24 15:28:32 +02:00
kernel.ld kernel: load at 16 MB, clear of what firmware keeps low 2026-10-24 00:13:53 +02:00