惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Palo Alto Networks Blog
P
Proofpoint News Feed
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Recorded Future
Recorded Future
M
MIT News - Artificial intelligence
罗磊的独立博客
J
Java Code Geeks
月光博客
月光博客
F
Full Disclosure
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
U
Unit 42
WordPress大学
WordPress大学
A
About on SuperTechFans
C
Cyber Attacks, Cyber Crime and Cyber Security
SecWiki News
SecWiki News
Security Latest
Security Latest
C
Check Point Blog
C
CERT Recently Published Vulnerability Notes
小众软件
小众软件
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
B
Blog RSS Feed
V
Visual Studio Blog
博客园_首页
NISL@THU
NISL@THU
I
Intezer
Spread Privacy
Spread Privacy
AWS News Blog
AWS News Blog
The Register - Security
The Register - Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Latest news
Latest news
Project Zero
Project Zero
博客园 - 叶小钗
C
Cybersecurity and Infrastructure Security Agency CISA
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
P
Privacy International News Feed
博客园 - 【当耐特】
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threat Research - Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
T
Tor Project blog
V
Vulnerabilities – Threatpost
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
雷峰网
雷峰网

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
OptimaOS: A Rust Kernel That Boots on Real x86_64 Hardware
Antony Devel · 2026-04-27 · via DEV Community

The Problem: Fragmentation Through Forking

Android is a Linux fork. Embedded distros are forks with custom patches per SoC. AI stacks run on separate codebases. Each fork means a separate security audit, a separate team, and its own accumulating regression debt.

The bet: one kernel binary for all scenarios. Profile differences are runtime policy, not a fork of the codebase. This is locked in ADR-0002 as Single Kernel + Runtime Profile Overlays.

It Boots on Real Hardware

POST UEFI MODE
MM_OK  INTR_OK  SCHED_OK

Enter fullscreen mode Exit fullscreen mode

That's on real x86_64 — not QEMU.

  • UEFI bootloader → kernel launches stably
  • ExitBootServices passes cleanly
  • Post-UEFI runtime is alive: heartbeat, progress panels, hardware tick source (SRC H)
  • PS/2 keyboard control: P pause/resume, N single-step, R reset

Architecture

The split is hard:

Kernel (mechanisms) — never changes per config:

  • Memory manager + MMU page tables (PML4 → PDPT → PD → PT)
  • Scheduler (processes, threads, SMP)
  • IPC bus with typed endpoints
  • Capability graph with quotas and TTL
  • Syscall ABI (optima_syscall_v0)
  • Page fault handler

Profiles (policy) — loaded at runtime:

  • Policy rules: what each process is allowed to do
  • Scheduler parameters (latency-first for desktop, throughput-first for server)
  • Allowed syscall patterns

One kernel binary. On boot, a policy file loads and policy-service applies it on top. No kernel recompilation.


Kernel Internals

kernel-core is a single Rust workspace crate, ~33K lines. #[forbid(unsafe_code)] is not a guideline — it's a compiler-enforced ban. All unsafe is isolated in the HAL layer (hardware/mod.rs) and explicitly annotated. Total: ~600 lines of unsafe across the entire kernel.

Memory

  • memory.rs — base manager: mmap/munmap/protect with PROT_READ/WRITE/EXEC
  • mm.rs — full x86_64 page tables: PML4 → PDPT → PD → PT → 4KB page
  • page_fault.rs — handler for interrupt vector #14, parses PageFaultErrorCode (P/W/U/RSVD/ID bits), feeds into runtime IDT
  • Memory isolation levels per ADR-0008: Level 1 (Capability IPC) , Level 2 (MPU Regions) stub, Level 3 (MMU Page Tables)

IPC

Process A ──send(endpoint_B, data)──> IpcBus ──enqueue──> Process B
                                          │
                                     capability check
                                     type check
                                     rate limit
                                     audit log

Enter fullscreen mode Exit fullscreen mode

Each endpoint has an owner PID and a message queue (VecDeque). Messages carry from_pid, payload, and a list of delegated capabilities — so capabilities can be transferred through IPC without bypassing the permission system.

QEMU baseline: p50 = 900ns, p95 = 1700ns, p99 = 2500ns, throughput = 904k req/s. Under load (4 concurrent senders, 64-byte messages): less than 2x latency increase. Real hardware numbers are next.

Security is not optional: capability check, type check, per-session and per-method rate limiting, audit log at trust boundaries.

Capabilities

pub struct Capability {
    pub id: CapId,
    pub owner_pid: u64,
    pub resource: Resource,      // Endpoint(u64) | MemoryRegion(u64) | Process(u64)
    pub permission: Permission,  // read / write / manage
    pub quota: ResourceQuota,
    pub created_at: u64,
    pub expires_at: Option<u64>, // TTL for temporary caps
    pub priority: QuotaPriority,
    pub violation_count: u32,
}

Enter fullscreen mode Exit fullscreen mode

ResourceQuota sets limits: max_memory_bytes (1 GB default), max_ipc_per_second (10K/sec), max_threads (256), max_file_handles (1024), max_capabilities (512).

On quota violation — priority degrades: High → Normal → Low → Degraded. This is DoS protection at the kernel level. Temporary capabilities with TTL invalidate automatically — no permission garbage collector needed.

23 tests cover all branches including boundary values and quota combinations.

Scheduler

Task states: Ready / Running / Blocked / Terminated.

Context switch: save registers → load CR3 (if different address space) → TLB flush → restore registers → jump to new stack.

SMP support via SmpManager with PerCpuData, CpuInfo (family/model/stepping/features), and IPI: Halt, Init, Call, Resched.

Scheduler policy is profile-driven: home → Interactive, server → Throughput.

Boot Chain: Two-Layer Architecture

ADR-0003 defines Hybrid Staged Console Integration:

  • Stage A (UEFI shim): transport + diagnostics only. Publishes input events, renders output frames from runtime. No business logic.
  • Stage B (kernel-core runtime): the single point of command execution. One parser/dispatcher for both host and device.

The boundary is console_proto=v1. Breaking changes require a new major version and a new ADR.

BootData ABI v2: passes the real memory map (region list), not just aggregates. Self-check handoff (SELFCHK) + error codes — state transfer verification between bootloader and kernel.

Lifecycle: BootInit → ShimReady → RuntimeAttach → Interactive → Degraded

On input path degradation, the system stays bootable in diagnostics-mode. Runtime state is not affected by transport-level errors.

Linux ABI: Incremental

linux-compat maps Linux syscalls to optima_syscall_v0. It depends on kernel-core explicitly — the only such exception.

  • L1: clone, exit, nanosleep, mmap, munmap, sendmsg, recvmsg, signals (minimal), epoll (minimal)
  • L2-A: fd lifecycle (open/close/read/write), dup/dup2, poll/epoll_wait
  • L2-B: signal masks, pending queue
  • L2-C: epoll_ctl(DEL/MOD), extended epoll semantics

129 tests, 100% pass. Linux bridge API is marked draft — stability will be announced separately. Each new syscall expands attack surface, so each tier closes with compatibility matrix tests.

Security Architecture

These are not feature checkboxes — they're architectural invariants.

No global root. Every action requires an explicit capability with owner PID verification.

Typed IPC. Wrong message type → rejected in kernel, not userspace.

Quota-based DoS protection. Process exceeding limits degrades in priority — doesn't crash, doesn't block.

Tamper-evident audit log. Hash-chain integrity for all security events: AUTHZ_DENY, CAPABILITY_GRANT, CAPABILITY_REVOKE, IPC_AUTH_FAIL, POLICY_BYPASS_ATTEMPT, KERNEL_PANIC, SERVICE_CRASH_RECOVERY.

Post-quantum crypto (architecture):

pub enum PqcAlgorithm {
    MlKem512, MlKem768, MlKem1024,  // NIST Level 1/3/5
    MlDsa44, MlDsa65, MlDsa87,      // NIST Level 2/3/5
}

Enter fullscreen mode Exit fullscreen mode

Crypto is a userspace service. The kernel only knows about capabilities. Migrating from ECDSA to ML-KEM means updating one userspace binary — no kernel rebuild. In a monolithic kernel, that touches the kernel, lsass, protected processes, and firmware.

Licensing: GPL-3 + Dual License

Initially planned as MIT/Apache. Changed to GPL-3 + commercial dual license.

Why GPL-3 over MIT:

  • Copyleft at the kernel level works differently than in libraries. If someone takes kernel-core, modifies it, and ships it in a device — GPL-3 requires publishing changes. MIT doesn't — a vendor takes the kernel, adds patches for their SoC, and disappears into a closed branch forever.
  • Anti-tivoization (Section 3): GPL-2 allows manufacturers to lock hardware so users can't run modified kernels on their own devices. GPL-3 prohibits this. For a project targeting Edge and IoT, this is not abstract.
  • Explicit patent grant: distributing the code grants recipients rights to any patents that might be infringed. MIT offers no such protection.

Why a commercial license on top:
GPL-3 blocks companies that want to embed OptimaOS in a proprietary product without publishing changes. Dual licensing solves this: community gets GPL-3, commercial users pay for the right to keep changes private. Standard scheme — same as Qt, MySQL, MongoDB.

CLA for contributors: dual licensing requires a single rights holder. All contributors sign a CLA: they keep their copyright but grant the project the right to relicense their code under the commercial license. Without CLA before the first external patch, dual licensing becomes legally impossible. This is locked in CONTRIBUTING.md and README.md.

Current Status

Component Status
Kernel-core (memory + MMU, scheduler, IPC, capability, syscall) Working prototype
Home / Server profiles Done
Linux ABI L1 + L2 (129 tests) Done
x86_64 page tables (PML4→PT, page fault handler) Implemented
xHCI USB host controller Full implementation (QEMU)
UEFI bootloader + BootData v2 ABI Done
Boot on real x86_64 Working
Hardware interrupts (PIC/PIT/IDT, hardware ticks) Working
Scheduler in post-UEFI hardware runtime Working
GUI framework (Desktop, Start Menu, File Browser) Basic implementation
Crypto-service (PQC) Stub, full architecture
Physical security (IOMMU, MemoryZeroize) Stub, full architecture
On-device smoke harness (real task execution) In progress

847 tests, 100% pass.

P0 performance baseline (QEMU, February 2026): IPC p95 ≤ 25 µs, context-switch p95 ≤ 35 µs, throughput ≥ 30k req/s, tail p99 ≤ 80 ms. Real hardware numbers — next milestone.

What's Next

Real task execution on hardware. The scheduler demonstrates the model (TASK1…TASK4, RUN/RDY/SLP) but doesn't run real tasks yet. Next step: task execution with IPC between processes on physical hardware. This closes the on-device smoke harness.

Kernel module decomposition. runtime_scheduler.rs extracted, runtime_arch.rs started. Hardware bring-up showed where boundaries were fuzzy.

Linux L2 completion. L2-C done, next: signalfd/eventfd. After stabilization: Android Binder IPC on optima_syscall_v0 in backlog.

Long term: Win32 L3. The most complex layer, distant horizon — but the architecture is already designed for it.

Global hypothesis: one kernel binary running across desktop, server, and Edge without performance degradation. Real hardware boot is the first data point. Real task execution is next.


Code:

Development, documentation, and this article were a collaboration between the author, Claude, Codex, DeepSeek, Qwen, GLM, and other AI systems.