[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107987":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":18,"rankGlobal":9,"rankLanguage":9,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":23,"updatedAt":24,"readmeContent":25,"aiSummary":26,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":27,"discoverSource":28},107987,"eggshell","usbarmory\u002Feggshell","usbarmory","Bare metal Go kernel for Linux binaries",null,"Go",117,7,53,1,0,2,34,47.11,"Other",false,"main",[],"2026-11-23 07:57:27","2026-11-22 10:38:48","Introduction\n============\n\nThe [eggshell](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Feggshell) project is a\n[TamaGo](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Ftamago) unikernel that implements the\nLinux ABI to run unmodified Linux executables: statically linked ones, such as C\nprograms or Go programs (including the Go toolchain), and programs dynamically\nlinked against the [musl](https:\u002F\u002Fmusl.libc.org) C library.\n\nWhile TamaGo remains committed to promote pure Go unikernels, this project is\nan experiment to address uses cases where the need for a full operating\nenvironment is unavoidable, such as running the Go compiler.\n\n> [!WARNING]\n> This project is at its early stages and therefore experimental.\n\n```\n$ make qemu\neggshell microvm (2802 MHz) • tamago amd64 (go1.27.3) • 1264 MiB available\nvirtio-net 52:50:9a:89:c2:39 10.0.0.1\u002F24 gw:10.0.0.2 gvisor\nsshd: listening on port 22\n\n  ___           ___ _        _ _\n | __|__ _ __ _\u002F __| |_  ___| | |\n | _|\u002F _` \u002F _` \\__ \\ ' \\\u002F -_) | |\n |___\\__, \\__, |___\u002F_||_\\___|_|_|\n     |___\u002F|___\u002F\n\n    Linux ABI on bare-metal Go\n\nroot@yolk:~# uname -a\neggshell yolk tamago go1.27.3 x86_64 BusyBox\u002FTamaGo\nroot@yolk:~# ps x\nPID   USER     TIME  COMMAND\n    1 root      0:00 \u002Fbin\u002Fbash --login\n    5 root      0:00 ps x\nroot@yolk:~# halt\ninit exited with status 138, powering off\n```\n\nAuthors\n=======\n\nAndrea Barisani  \nandrea@inversepath.com\n\nArchitecture\n============\n\nThe applications run unprivileged while the Go runtime, acting as operating\nsystem kernel, runs at the highest privilege level.\n\nSystem calls trap into the Go runtime (in a manner similar to the\n[GoTEE](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002FGoTEE) execution model) and are serviced\nfollowing the **Linux system call ABI**.\n\nEach user thread is a goroutine, blocking system calls map directly onto the Go\nscheduler.\n\n```\n ┌────────────────────────────────────────────── User mode ─┐\n │  bash   redis-server   busybox   u-root    go   ...      │ Linux ELF binaries\n └──────────────┬──────────────────────▲────────────────────┘\n                │                      │\n        syscall │   page fault, timer  │ iretq\n                │                      │\n ┌──────────────▼──────────────────────┴────── Kernel mode ─┐\n │ monitor   GoTEE-style exec\u002Freturn switch                 │\n │                                                          │\n │ kernel    Linux ABI syscalls, processes, signals, VFS,   │\n │           TTY, pipes, epoll, futex, sockets              │ TamaGo \u002F Go runtime\n │                                                          │\n │ board     QEMU microvm                                   │\n │                                                          │\n │ network   virtio-net (go-net) + gVisor                   │\n └──────────────────────────────────────────────────────────┘\n```\n\nSecurity\n========\n\nThe Go kernel does not use `unsafe` operations, so system call handling, which\nprocesses untrusted data from user processes, is free of memory corruption bug\nclasses such as buffer overflows, use-after-free and type confusion.\n\nA kernel panic while servicing a system call terminates the calling process\nrather than the kernel. Processes are isolated from the kernel by hardware,\nthey run in ring 3 and the kernel is mapped supervisor-only in their address\nspace.\n\nThe trusted base beyond the kernel code is limited to the monitor assembly\n(privilege switch), page table setup and the Go runtime, along with the TamaGo\npackage and network stack, with just 4 direct dependencies (see\n[go.mod](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Feggshell\u002Fblob\u002Fmain\u002Fgo.mod)).\n\nFinally, a Go kernel provides the opportunity to play with layers in an\nunconventional way. The SSH server is pure Go code running in the kernel,\nserving a pty to user mode processes, trading the privilege separation of a\nconventional user mode daemon for a memory-safe network-facing parser.\n\nBuilding the compiler\n=====================\n\nThe [TamaGo compiler](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Ftamago-go) is automatically\ndownloaded and compiled as a `go tool` by the `Makefile`.\n\nAlternatively the `TAMAGO` environment variable can be overridden to use the\n[latest binary release](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Ftamago-go\u002Freleases\u002Flatest):\n\n```sh\nwget https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Ftamago-go\u002Farchive\u002Frefs\u002Ftags\u002Flatest.zip\nunzip latest.zip\ncd tamago-go-latest\u002Fsrc && .\u002Fall.bash\ncd ..\u002Fbin && export TAMAGO=`pwd`\u002Fgo\n```\n\nBuilding and executing\n======================\n\nThe example uses\n[nix-build](https:\u002F\u002Fnix.dev\u002Fmanual\u002Fnix\u002F2.18\u002Fcommand-ref\u002Fnix-build) for root\nfilesystem creation, and `qemu` for microvm execution.\n\n```sh\ngo mod tidy\nmake rootfs\nmake kernel\nmake qemu\n```\n\nAll [TamaGo amd64 targets](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Ftamago#supported-amd64-targets) can be supported with minimal integration.\n\nBoot arguments\n--------------\n\nThe kernel command line can be passed through the `APPEND` variable:\n\n```\nmake qemu APPEND=\"ip=10.0.0.1\u002F24 gw=10.0.0.2\"\n```\n\n| option           | description                                   |\n|------------------|-----------------------------------------------|\n| `-- cmd args`    | init process (default `\u002Fsbin\u002Finit`)           |\n| `init=\u002Fpath`     | init process without arguments                |\n| `strace`         | trace system calls on the console             |\n| `quiet`          | no kernel banner                              |\n| `ip=10.0.0.1\u002F24` | IPv4 address of the virtio-net interface      |\n| `gw=10.0.0.2`    | default gateway                               |\n| `hostname=name`  | host name                                     |\n| `env=KEY=VALUE`  | additional init environment variable          |\n| `ssh=22`         | SSH server port, `0` disables it              |\n\nNetworking\n----------\n\nThe qemu target attaches the network device to the host `tap0` interface if\navailable, otherwise user networking is used with a predefined list of\nforwarded ports (see `NETDEV_USER` within the `Makefile`).\n\nOn Linux systems tap0 can be configured as follows:\n\n```sh\nip tuntap add dev tap0 mode tap group \u003Cyour user group>\nip addr add 10.0.0.2\u002F24 dev tap0\nip link set tap0 up\n```\n\nRunning your own application\n----------------------------\n\nAny C program that builds with musl should run.\n\nDynamically linked executables work as well: the kernel maps the `PT_INTERP`\nprogram interpreter, the rootfs ships musl's `\u002Flib\u002Fld-musl-\u003Carch>.so.1` (add\nany other shared library under `\u002Flib` or `\u002Fusr\u002Flib`).\n\nThe userland is built using\n[nix-build](https:\u002F\u002Fnix.dev\u002Fmanual\u002Fnix\u002F2.18\u002Fcommand-ref\u002Fnix-build), see\n[nix\u002FREADME.md](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Feggshell\u002Fblob\u002Fmain\u002Fnix\u002FREADME.md)\nfor instructions and options.\n\nCurrent limitations\n===================\n\n* While TamaGo supports SMP operation, for now supervision of userspace code\n  remains a single-core only affair.\n\n* Only single user support, no isolation among users and any identity operation\n  is a no-op.\n\n* IPv4 only, no raw sockets, no `SCM_RIGHTS`, no `AF_UNIX` datagrams.\n\n* `EPOLLET` is emulated as level triggered.\n\n* Not implemented: `ptrace`, SysV IPC, `inotify`, `timerfd`, `signalfd`,\n  POSIX timers (`timer_create`), mounts, namespaces.\n\n* The filesystem is in-memory and therefore all modifications are volatile\n  across reboots.\n\nLicense\n=======\n\neggshell | https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Feggshell  \nCopyright (c) The eggshell Authors. All Rights Reserved.\n\nThese source files are distributed under the BSD-style license found in the\n[LICENSE](https:\u002F\u002Fgithub.com\u002Fusbarmory\u002Feggshell\u002Fblob\u002Fmain\u002FLICENSE) file.\n","eggshell 是一个基于 TamaGo 的裸机 Go 单体内核，旨在以纯 Go 实现 Linux ABI，支持运行未经修改的静态链接 Linux 可执行文件（如 C\u002FGo 程序）及 musl 动态链接程序。其核心特点是：系统调用按 Linux ABI 规范处理，用户进程以 goroutine 形式运行于非特权模式，Go 运行时作为内核在最高特权级调度；全程不使用 unsafe，具备内存安全优势。适用于资源受限嵌入式环境、可信执行实验、离线编译工具链（如在无 OS 环境中运行 Go 编译器）等需要轻量级 Linux 兼容运行时的场景。","2026-11-24 04:33:12","CREATED_QUERY"]