go-linux

Verification

This guide helps contributors run the library’s checks and understand the environments they require. Use Linux 7.0+ and the Go version declared in go.mod, with the README setup completed. Verification limits records missing execution evidence; detailed results belong in CI reports.

Run local checks

Discover commands with make help. The standard checks are:

make dep
make test-environment
make vet
make lint
make scripts-lint
make specs
make coverage
make sec

Run from the repository root. Install the quality tools listed in the README and ShellCheck for scripts-lint; missing tools are uncovered validation. Dependency setup and security scanners may download modules or databases. make ci-validate additionally requires the CircleCI CLI and API access.

Scope tests to the changed package, for example:

package=file make specs profile=rootless required=true arch=amd64

The gotestsum harness runs with race detection and coverage. Reports are written under test/reports/: specs.json retains test events and skips, specs.xml is JUnit, and profile.cov is the coverage input. make coverage creates final.cov and coverage.html from that run. A later test run replaces the reports, so retain any results you need before changing package or profile. CI stores each job’s reports separately. Reexecuted fixtures assert operation results in the child; the parent coverage profile does not aggregate child statement counters.

Use the shared thread helpers for thread-affine tests: LockThread pins the current goroutine for its remaining lifetime, and LockedThread runs a bounded worker. Executable examples show the public runtime calls. Irreversible mutation fixtures still require bounded subprocesses when using these helpers.

Go Example functions run with the standard output check. Examples with optional kernel prerequisites or isolation requirements run through named Test entry points. Package usage guides link to both forms.

Cross-package examples run with their owning packages: select package=memfd for a shared mmap region, package=eventfd for counter readiness through epoll, and package=timerfd for expiration readiness through epoll. The counter/timer registration suites exercise nonconsuming readiness, one-shot rearming, independent source/registration/poller lifetimes, rejected-input cleanup, and registration racing source close. Their ordinary rootless runs do not change clocks; cancellation-readiness coverage runs in the disposable-VM clock-change lane.

CI stages each raw profile with make coverage-workspace-stage partition=<facility>-<arch>, selecting rootless, netlink, namespace, seccomp-notify, cgroup, mount, fanotify, sched, rlimit, uring, perf, or timerfd and arm64 or amd64. Each partition has its own directory under /tmp/go-linux-reports. After the verification jobs pass, the coverage job attaches that workspace and runs make coverage-workspace-merge followed by make coverage. Merging requires a nonempty atomic profile from each partition on the same revision and uses gocovmerge, included in the Go image. Missing inputs or incompatible profiles fail the job. The Netlink partition contains the single raw profile produced by testing both packages together. make coverage applies .gocov exclusions after merging.

The coverage job retains the combined reports and uploads final.cov once through make codecov-upload. Sync and release wait for this job. The rootless, Netlink, namespace, seccomp-notify, cgroup, mount, scheduling, resource-limit, io_uring, and perf jobs explicitly request kernel=7.0, so a newer host kernel fails their baseline checks. The combined report records statements exercised across the matrix. Individual job reports provide the evidence for each architecture and environment.

The inotify overflow fixture fills only its own instance queue and never changes host limits. It bounds generation at max_queued_events <= 65536; a larger existing host limit skips the fixture in optional mode and fails with required=true. Decoder fixtures still cover the overflow record independently.

The socket backpressure fixture fills only a test-owned Unix datagram endpoint, using the existing /proc/sys/net/unix/max_dgram_qlen value without changing it. Limits above 65536 skip optional coverage and fail with required=true; bounded native producers distinguish destination-queue exhaustion from a single sender’s buffer limit.

The mmap suite uses a bounded child with a thread-local seccomp filter to observe MS_SYNC over a complete shared mapping, including a partial final page. The kernel returns a marker errno only when the mapped address, byte length, and synchronous flag match. A separate readback test checks visibility after the source file closes.

The mmap invalidation fixture locks one page of its own mapping to observe EBUSY from msync. The memory-locking fixtures use up to two pages to compare immediate and on-fault residency and observe lock accounting through /proc/self/status. A bounded child lowers its own RLIMIT_MEMLOCK to one page and checks rejection of a range with a partial second page. Lock fixtures need a soft limit adequate for their page count, and the limit-enforcement child needs to run without effective CAP_IPC_LOCK. Missing prerequisites skip optional runs and fail with required=true.

The mmap resize fixture occupies the page after a shared file mapping in a bounded child to force relocation. It checks retained data, the original file offset, shrink, and final unmapping. A second bounded child verifies that a locked grow above its own limit returns EAGAIN while leaving the old view and lock usable. Guard access faults run in a child. The advice suite uses a disposable memfd for hole punching, /proc/self/smaps for VMA policy and huge-page observations, and the kernel’s KSM and transparent huge-page sysfs entries to establish prerequisites. The collapse fixture allocates up to two PMD-sized ranges with a total bound of 64 MiB. Missing prerequisites skip optional runs and fail with required=true.

The eventfd, timerfd, inotify, and socket constructor suites use bounded subprocesses to reject EPOLL_CTL_ADD with a thread-local seccomp filter after Go’s poller is initialized. They verify os.ErrNoDeadline, nil owners, and descriptor cleanup. The same filter loader supports Netlink’s setup-failure fixtures; no parent thread receives these restrictions. The fanotify namespace suite reuses this filter for both notification and content groups after confirming each class opens successfully; it requires initial-user-namespace CAP_SYS_ADMIN.

Netlink’s ordinary-user tests use read-only controller/route queries, parser fixtures, and test-owned sockets. Kernel socket filters on those sockets exercise missing ACKs and malformed framing; independently queued kernel replies exercise sequence/echo mismatches. Bounded subprocesses confine descriptor exhaustion and thread-local seccomp denial of individual setup operations, checking errno and cleanup without changing parent or host policy.

Run make specs package=netlink profile=namespaces required=true for kernel multicast, dump ordering/interruption, and receive-queue overflow fixtures, using the isolated container command when the agent shell denies namespace creation. Each fixture reexecutes in mapped user/network namespaces; only the child changes loopback state or adds private addresses. The dump fixtures pause between sending and receiving while a separate connection changes the address generation. The overflow fixture reduces only its own socket receive buffer and generates 32 private loopback changes; it verifies ENOBUFS and a separate recovery dump without changing host limits. Rootless profile runs skip these unselected fixtures; required namespace runs fail if child creation/mapping is unavailable.

Select package=netlink/route for typed routing coverage. The rootless suite performs read-only listing, public decoder fixtures/fuzz seeds, validation, deadlines, and lifetime checks. Its selected namespace fixtures use the same bounded child harness for dummy-link lifecycle, IPv4/IPv6 addresses, extended routing tables and gateway replacement, and multicast changes. Only those private network namespaces receive mutations. Native constants, wire construction, errno aliases, and independent kernel observations live in internal/test; assertions remain in the package scenarios.

Profiles and prerequisites

Setting Meaning
profile=rootless Default; tests intended for ordinary users. Namespace transitions, mount, and descriptor-based fanotify success tests require the namespace profile.
profile=namespaces Also request namespace creation/mapping, isolated integration, and security privilege transitions. The latter require initial NoNewPrivs=0 and effective CAP_SYS_ADMIN; fanotify requires initial-user-namespace CAP_SYS_ADMIN.
profile=cgroup Select live cgroup mutations inside an explicitly supplied delegated subtree. The command startup case also creates mapped user and PID namespaces.
profile=seccomp-notify Select live syscall notification exchange in bounded supervisor and target processes. Needs the Notify action, listener creation, notification ioctls, and readable procfs thread syscall information.
profile=sched Select live real-time CPU policies, deadline admission, and real-time block I/O priority in bounded subprocesses. Requires a disposable runner with initial-user-namespace CAP_SYS_NICE and compatible scheduler and cgroup settings.
profile=rlimit Select a live hard-limit raise in a bounded child. Requires a disposable runner with initial-user-namespace CAP_SYS_RESOURCE.
profile=uring Select live queue tests. Ordinary I/O and polling need setup and enter. Fixed I/O, cancellation, and eventfd notifications also need register. Fixed buffers need sufficient locked memory. See io_uring verification.
profile=perf Select software counters, fixed groups, and sampling. Requires permitted userspace software events, group control, and a mappable sample ring. See perf verification.
delegation=/absolute/path Supply a disposable cgroup v2 subtree for profile=cgroup. Exported as GO_LINUX_TEST_CGROUP; discovery only reads its identity/controller files.
io-device=/absolute/device Select a disposable whole block device for cgroup I/O readback and throttling. Exported as GO_LINUX_TEST_CGROUP_IO_DEVICE.
hugetlb-pool=true Select positive HugeTLB accounting on a disposable runner with a preprovisioned default-size page pool. Exported as GO_LINUX_TEST_CGROUP_HUGETLB_POOL.
rdma-device=/absolute/character/device Select delegated RDMA limit and allocation tests against a disposable Soft-RoCE uverbs device. Exported as GO_LINUX_TEST_CGROUP_RDMA_DEVICE.
misc-sev=true Select misc limit and accounting tests on a disposable AMD SEV host. Exported as GO_LINUX_TEST_CGROUP_MISC_SEV.
dmem-fixture=true Select device-memory limit and accounting tests with the disposable VM provider. Exported as GO_LINUX_TEST_CGROUP_DMEM_FIXTURE.
required=true Fail known unavailable selected prerequisites; the default false permits precise skips. Unexpected errors fail in either mode.
arch=amd64 or arch=arm64 Require both the Go binary and host machine to match; omit for an unselected native run.
kernel=supported Default; Linux 7.0 or later. Use 7.0 for the exact baseline major/minor or newer for a later kernel. Mismatches always fail.

Pass these Make variables explicitly; the Makefile exports the corresponding GO_LINUX_TEST_* settings. Invalid values fail before probing. For example:

make test-environment profile=namespaces required=true arch=arm64 kernel=7.0
package=mount make specs profile=namespaces required=true arch=arm64

Environment discovery reports actual Go/kernel/architecture, UID/capabilities, security settings, and namespace prerequisites. Namespace creation alone does not prove mount operations work, and UID 0 does not establish ordinary-user coverage. Rootless runs may skip mount success scenarios; the separate required mount lane covers them. A skip is not runtime verification, and a facility error such as EPERM must not become a blanket skip.

Rootless container verification

The native rootless CI jobs use machine executors to control the container syscall profile. A managed Docker executor can return ENOSYS for baseline-supported syscalls, including the xattr-at family, even when its host runs Linux 7.0. Changing the Go image does not change that outer filter.

Use a native Linux Docker host, a nonroot invoking user, and the Go image from .circleci/config.yml:

make verify-rootless-container image=alexfalkowski/go:5.24 arch=amd64 package=xattr

Omit package for the complete rootless suite used by CI. The launcher downloads the Moby default seccomp profile at a pinned revision, checks its SHA-256 digest, and passes it explicitly to Docker. This allowlist includes getxattrat, setxattrat, listxattrat, and removexattrat. The host Docker runtime/libseccomp must recognize those syscalls. Profile download or checksum failures stop verification; the launcher does not fall back to an unconfined container.

A root setup process remaps the image’s circleci user and home to the invoking UID. Docker’s init remains root at PID 1, providing the different-UID target required by signal-permission tests; its KILL capability permits forwarding signals to the nonroot child. All checks run with the invoking UID/GID, no supplementary groups, and empty capability sets; no-new-privileges is enabled from startup. The checkout is mounted separately at /work, so account setup does not change its ownership. The Docker bind mount must preserve the test UID/GID’s write access; rootless-daemon UID mappings require corresponding checkout ownership. make verify-rootless refreshes dependencies, records the environment, and runs lint, script lint, security checks, vet, tests with race detection, and coverage. Modules, build artifacts, and tool caches are disposable container state. Reports are bind-mounted to the checked-in test/reports/ directory. The local verification command does not upload coverage; make codecov-upload-container image=<tag> remains available for an explicit upload of an existing final.cov from the Go image.

Netlink’s isolated fixtures need permitted mapped user/network namespaces and network administration inside those private namespaces. They do not require fanotify’s initial-user-namespace CAP_SYS_ADMIN. Use a native Linux Docker host and the Go image from CI:

make verify-netlink-container image=alexfalkowski/go:5.27 arch=amd64

The same launcher runs locally and in build-netlink on native amd64/arm64. It uses the existing privileged-container setup, refreshes dependencies, records environment.json, and runs make verify-netlink. Dependency setup and image acquisition may require network/registry access and a writable checkout/vendor directory. Use a writable disposable source copy if existing vendor ownership prevents refresh. Rootless Docker works in the observed local configuration; prerequisite and operation failures remain failures on other hosts.

verify-netlink records prerequisites and selects profile=namespaces required=true for netlink and netlink/route in one invocation of the shared specs harness. Fixtures create private namespaces before changing links, bridge membership, addresses, routes, neighbors, or rules. The virtual-link cases require working veth and bridge drivers and the ability to create and enter a second private network namespace within the mapped user namespace. They verify bridge forwarding with UDP, link presence in both namespaces through net.Interfaces and net.InterfaceByName, and cleanup on deletion and namespace destruction. Both packages appear in the standard specs.json, specs.xml, and profile.cov files directly under test/reports/, alongside environment.json. The test target leaves coverage merging to the separate CI coverage job.

The IPv4 and IPv6 neighbor scenarios check the cache through targeted kernel neighbor queries after replacement and removal. Policy-rule scenarios use independent kernel route lookups to verify that a masked mark selects the private table and that removing the rule restores the fallback. The neighbor listener also receives a bridge forwarding entry on the shared group to verify that it keeps the IP event stream usable.

Route lookup fixtures compare the resolved path with independent kernel observations and check matching installed prefixes and tables and IPv6 preferred-source reporting. Weighted path fixtures cover both families, cross-family gateways, IPv6 replacement and deletion effects, and shared nexthop replacement and removal. Multicast fixtures check object updates and verify that the typed listener skips resilient group bucket updates. Malformed path and group records are exercised separately through public decoders and fuzzing.

With the configured tools and permitted namespaces available directly, use make verify-netlink arch=amd64. To require exact-baseline evidence, add kernel=7.0 to either invocation. Both the rootless build jobs and build-netlink jobs require this setting in CI. A newer host fails rather than being accepted as Linux 7.0 evidence; a container image does not select the host kernel. Use native amd64 and arm64 runners rather than interpreting emulation as native coverage.

The dump fixtures verify the actual kernel interruption marker independently, then use controlled kernel reply queues and socket filtering to verify ACK-before-DONE ordering, interruption draining, and subsequent connection reuse through Conn.Dump. These controlled conditions do not establish naturally occurring malformed kernel replies. Malformed routing records and controls remain covered through public parsers/fuzzing or explicit source review where the kernel does not emit them. Sequence wrap would require roughly 2^32 exchanges. No production injection hooks or fake-kernel fixtures substitute for missing live evidence; the remaining limits stay tracked under R01.

Namespace verification

The namespace package’s ordinary-user suite covers all eight handle types, identity, adoption, ownership, lifetime, concurrency, errors, and examples. Thread transitions run only in bounded subprocesses selected by the namespace profile. Run the same isolated suite locally and in CI with the configured Go image:

make verify-namespace-container image=alexfalkowski/go:5.27 arch=amd64

The launcher requires a native Linux Docker host that permits privileged containers and mapped user namespaces. It refreshes dependencies and runs make verify-namespace, recording prerequisites and the standard reports directly in test/reports/. A writable disposable checkout can be used when dependency ownership prevents refresh. Namespace and capability transition fixtures create private mapped user namespaces before creating or entering further namespaces. Landlock device-node fixtures instead retain initial credentials in private mount-namespace children, because ordinary device creation requires initial-user-namespace CAP_MKNOD. Security privilege fixtures retain the container’s starting credentials and change only bounded child processes. Tests verify mount, cgroup, IPC, network, UTS, PID, and time creation; permitted entry; user hierarchy/owner inspection; standard child creation; single-threaded user/time restrictions; and worker-thread cleanup after success, failure, and recovered panic. The startup thread is reserved while tests run so thread-destruction observations target workers rather than Go’s permanently parked startup-thread special case. No host namespace is entered or mutated.

The build-namespace matrix selects kernel=7.0 on native amd64 and arm64, and its profiles participate in coverage merging. The launcher runs namespace, file, capability, seccomp, landlock, pidfd, process, and internal/testenv in one standard test invocation. A mapped child verifies that the scheduling profile rejects a CAP_SYS_NICE held only in a child user namespace. File metadata coverage requires a visible /dev block inode, exposed by the privileged container. Security privilege cases require initial NoNewPrivs=0 and effective CAP_SYS_ADMIN in the caller’s user namespace. With suitable tools and privileges directly available, use make verify-namespace arch=amd64 and add kernel=7.0 to require exact-baseline evidence. Selected required runs fail on missing prerequisites. After the prerequisite checks pass, failed facility operations always fail the test. Child assertions execute real operations but their statement counters are not merged into the parent coverage profile.

The live pidfd file duplication cases use bounded child processes and require pidfd_getfd. An independent probe against a dumpable child checks this prerequisite. A known denial or unavailable syscall skips the live cases in optional runs and fails required runs. The pinned rootless profile restricts that syscall to containers configured with CAP_SYS_PTRACE. The namespace lane runs duplication against a supervised child and separately verifies permission denial against a nondumpable child from a supervisor that drops CAP_SYS_PTRACE. The different-UID signal permission case remains selected by the rootless lane. Pinned Moby syscall profile.

Run make specs package=process profile=rootless required=true for bounded subreaper tests covering thread scope, child and exec inheritance, adoption, and zombie collection. The trace-stop regression attaches to a test-owned child. A ptrace attach permission denial skips that case in optional runs and fails required runs. For the PID 1 case, use the namespace launcher or make specs package=process profile=namespaces required=true on a host that permits creating mapped user and PID namespaces. A fresh PID 1 adopts a descendant, receives SIGTERM through os/signal, forwards it through a pidfd, and reaps the descendant. All wait-any calls and subreaper changes run in the isolated supervisors.

Capability verification

Run make specs package=capability for ordinary-user inspection, invalid masks, empty-set transitions, and denied operations through the standard race/coverage harness. Every credential mutation runs in a bounded subprocess and stays on a locked goroutine. The test runner’s credentials remain unchanged. Procfs thread status provides independent kernel observations alongside typed API assertions.

Positive permitted/effective/inheritable transitions, bounding drops, ambient changes, thread isolation, securebits refusal, and exec transformations run in private mapped user-namespace subprocesses. They share the existing namespace lane and launcher:

make verify-namespace-container image=alexfalkowski/go:5.24 arch=amd64

This runs the packages in the namespace lane with profile=namespaces required=true. With the configured tools and permitted namespaces directly available, use make verify-namespace arch=amd64. The disposable children need a bounding set containing the tested capabilities, including CAP_CHOWN, CAP_MAC_OVERRIDE, and CAP_BPF, and effective CAP_SETPCAP for bounding/securebits changes. The privileged container provides the intended fixture environment; root or a successful namespace probe alone is not operation evidence. Exec tests change securebits only in children to distinguish ambient inheritance from UID-0 restoration, and execute only the test binary without file capabilities. Rootless runs skip the unselected privileged scenarios; selected required prerequisites and all failures after child startup fail.

Add kernel=7.0 when collecting exact-baseline evidence and use each native architecture. The existing build-namespace matrix requires both, and its coverage partitions include the capability package. Subprocess assertions establish runtime behavior but do not merge their statement counters into the parent coverage profile. Reports stay directly under test/reports/; CI retains the results for each native runner.

Seccomp verification

Run make specs package=seccomp profile=rootless required=true through the standard race/coverage harness. Every filter load runs in a bounded subprocess; no main test-runner thread receives restrictions. Rootless fixtures need permitted seccomp filter/action operations, no-new-privileges setup, and procfs thread-status inspection, without capabilities or namespaces. Required operation failures fail the suite. The existing rootless architecture matrix discovers the package automatically; use the rootless launcher with package=seccomp for the configured image and syscall profile.

Tests compare actual getpgid outcomes for allowed/denied scalar arguments, instruction branches, all supported actions, stacking, thread-local versus TSYNC scope, a refusing thread’s TID, exec inheritance, and native policy-denied calls. Aggregate instruction-limit coverage attempts at most nine maximum-sized filter loads in one child, requires ENOMEM after successful loading, and checks the independent filter count to establish that refusal attached nothing. Fatal KILL_PROCESS and x32 checks require SIGSYS termination; TRAP instead exercises Go’s synchronous fatal-signal handler. KILL_THREAD observes only a disposable worker’s disappearance. The x32 check applies only on amd64. Procfs supplies independent filter counts and no-new-privileges observations. Construction and ordinary probes execute in the parent; child assertions establish loading behavior without merging child coverage counters. Audit-log delivery, external ptrace handling, and unsupported architecture execution are outside these tests.

The namespace lane additionally exercises a zero-to-one no-new-privileges transition after dropping capabilities, EACCES rejection with neither authority, capability-authorized loading with the bit unset, and TSYNC propagation to an existing sibling starting with a zero bit. Each successful load must enforce its filter; failed loading must preserve the privilege bit and filter count. Rootless runs explicitly skip these four unselected cases.

Use the required notification lane for live interception and replies:

make verify-seccomp-notify-container image=alexfalkowski/go:5.27 arch=amd64

With the Go tools and permitted seccomp operations available directly, use make verify-seccomp-notify arch=amd64. The container uses the pinned rootless profile and empty workload capability sets. The environment report records discovery of the Notify action. Live tests establish listener permission and actual exchange. The bounded supervisor passes its thread-local filter to a separately reexecuted target, leaving the main test runner unfiltered. Cases cover native syscall metadata, synthetic values and errno, continuation, stale IDs after target exit, close-on-exec, listener failure cleanup, and immediate and deferred listener release. The test reports record the live exchanges because the statement profiles omit subprocess counters. The ordinary rootless and namespace lanes leave these scenarios unselected.

The same lane runs file injection through separate and atomic replies. The target reads the injected file and observes its descriptor flags with fcntl. The supervisor verifies the shared offset, source ownership and failed-installation cleanup, occupied-slot replacement, and the ability to reply after a rejected atomic installation.

CircleCI runs the notification lane with kernel=7.0 on native amd64 and arm64 and stages both raw coverage partitions. The existing rootless and namespace jobs provide exact-baseline evidence for the other seccomp scenarios. Standard reports remain directly under test/reports/. Verification limits.

Landlock verification

Run make specs package=landlock profile=rootless required=true with the standard race/coverage harness, or select package=landlock in the rootless container launcher for the configured Go image and pinned syscall profile. Landlock must be enabled and allowed by the enclosing security policy; rootless scenarios need no capability or namespace. Device-ioctl scenarios also require a usable /dev/ptmx and devpts mount. Optional runs skip only an absent/disabled facility, while required runs fail. Unexpected policy denials fail in either mode. ABI 8 is the Linux 7.0 baseline; optional pathname-Unix and UDP enforcement scenarios require ABI 9 and 10 respectively and skip on baseline hosts, even in required mode.

Every restriction, thread-local syscall denial, and descriptor-exhaustion scenario runs in a bounded subprocess. Tests exercise allowed/denied file access, truncation, directory listing, cross-directory Refer, device-ioctl authority captured at open time, FIFO/pathname-socket creation rights, pre-opened file authority, borrowed-rule identity after close/rename, stacking and layer exhaustion, TCP connect/bind, IPC scopes, exec inheritance, and both calling-thread and all-thread enforcement. A divergent sibling domain verifies the kernel’s replacement semantics. Optional newer-ABI scenarios verify pathname-Unix and UDP destination enforcement. Other tests cover ABI discovery, input validation, independent rule classes, errno, close-on-exec ownership, temporary-file cleanup, concurrent add/close, and executable examples. No parent thread or host-wide policy is changed.

Coverage children receive a private output directory, allowed only for the policy’s handled filesystem rights, so all-thread and inherited restrictions permit Go’s coverage writer to finish. Nested exec fixtures explicitly retain that same reporting directory. Behavioral assertions execute in those children; the parent statement profile does not merge their counters. Audit-log delivery is outside the package’s promises. Missing defensive-path and platform evidence is recorded in verification limits.

The namespace lane additionally checks the zero-to-one privilege transition after dropping capabilities, EPERM rejection with neither authority, capability-authorized restriction with the bit unset, and TSYNC propagation to an existing sibling starting with a zero bit. File access verifies enforcement independently of privilege observations. The same lane selects character/block-device creation on test-owned private tmpfs mounts. Those fixtures need initial-user-namespace CAP_MKNOD, applicable CAP_SYS_ADMIN, and permitted device policy; mapped user namespaces and privileged rootless Docker cannot supply the initial privilege. Positive controls must succeed before restriction, and opposite creation rights must not grant the requested inode type. Device nodes are never opened. Rootless runs explicitly skip the four privilege and two device-node cases.

The required build and build-namespace matrices cover Landlock’s rootless, credential-transition, and device-node scenarios. Exact-baseline acceptance requires native Linux 7.0 amd64 and arm64 runs; ABI support on a newer host does not establish that evidence. On ABI 8 the optional-right negotiation tests must reject requests for ABI 9/10 rights without returning a ruleset. Retain the environment and standard reports directly under test/reports/.

Cgroup verification

The rootless cgroup suite exercises captured native-format fixtures, read-only current-group operations, ownership/errors, descriptor exhaustion, watcher deadlines/concurrent close, and executable examples. Event-dependent current-group tests skip only when cgroup.events is absent at the real hierarchy root; other inspection tests remain enabled. Selecting profile=cgroup makes event-dependent tests use a test-owned child of the supplied delegation, so that profile requires event coverage regardless of the runner’s current membership. Mutation tests require an explicit disposable delegation; neither directory ownership, UID 0, nor a namespace probe establishes that it is usable.

make verify-cgroup delegation=/absolute/delegated/subtree arch=amd64

Use the configured Go image’s toolchain on a native Linux 7.0+ runner with a writable v2 mount. The delegator must grant directory creation and removal and the documented membership and subtree-control permissions. Enable cpu cpuset dmem hugetlb io memory misc pids for children. Run the test process in a leaf below the same delegation or provide common-ancestor migration permission so its spawned children can move into test groups. Supply a disposable delegation with permission to write the partition control and adjust control-file modes on test-owned children. The suite confines mutations to uniquely named children and test-owned processes, which it reaps before directory cleanup.

Migration enforcement scenarios keep the test runner outside each limited leaf and release the workload after its startup handshake and explicit migration. A bounded busy child must increment CPU throttling counters. A 64-MiB anonymous mapping supplies new charges for memory.high and memory.max boundary events; the high-limit child must finish without an OOM kill. The max-limit test permits reclamation or an OOM kill, requiring SIGKILL and a matching oom_kill increment for a killed child, and does not force a particular swap-dependent outcome. A shell attempts one fork under a zero PID limit, then succeeds after reset to Max. Workloads use the existing bounded subprocess cleanup, /bin/sh, and /bin/true; only test-owned children receive limits.

The atomic startup cases check the child’s first membership read and its task charge before release. A zero task limit must reject command creation. One case requires permission to create user and PID namespaces and map the caller’s UID and GID. It verifies that the child sees PID 1 and charges the delegated group. The close test requires seccomp user notifications. It pauses clone3 in a bounded subprocess, closes the starting handle, then verifies the child’s task charge through an independent handle. The suite also checks command I/O cleanup and credential composition.

CPU control cases verify burst readback and quota rejection, nice weight, idle transitions, utilization clamp readback and rounding, and local throttled time. Pressure stall information (PSI), CFS bandwidth accounting, and group utilization clamping are required for the selected delegated suite. Two bounded workers in a leaf restricted to one delegated CPU establish an increase in partial CPU stall time. Separate cases read memory and I/O pressure and compare IRQ pressure availability with the native file.

Memory cases check page-rounded protection and swap limits, retained peak usage after a bounded anonymous-memory workload exits, and descendant event scope under the observed mount policy. Each reclaim fixture charges 16 MiB of synced file cache after migrating the writer. The tests check hard protection, file-page eviction, and partial reclaim with EAGAIN. With swap disabled, the anonymous-only test compares the Go call with a direct swappiness=max write in a separate group and checks file-page residency after both requests. Use a disk-backed temporary directory for the fixtures. Set TMPDIR before running make verify-cgroup if the default temporary directory is memory-backed. The swap tests require the controller files and use the host’s existing swap configuration.

The same delegated suite exercises freezer and kill controls on test-owned groups. A descendant acknowledges a queued request after thaw and stays alive without acknowledging while frozen. The tests also verify inherited freezing, a freeze surviving closure of the handle that requested it, SIGKILL and an unpopulated snapshot after recursive termination, survival of a sibling workload, and the kernel error for a threaded target.

The cpuset scenarios select a real CPU and memory node from effective lists, verify configured and inherited masks, and inspect the migrated processes’ allowed lists in procfs. Partition requests without exclusive CPUs exercise invalid-state diagnostics and the transition back to member. The I/O scenarios exercise controller enablement and group weight without a storage fixture. Pass io-device=/absolute/device to additionally verify partial io.max updates, per-device weight overrides, a direct-read throughput limit, and block accounting. The selected whole device must allow direct reads and have its I/O cost policy initialized for weight readback. The workload reads 4 MiB with dd. Storage-backed tests are unselected when the device option is empty and fail when a selected fixture cannot be used.

verify-cgroup records environment.json and runs package=cgroup profile=cgroup required=true through the standard race/coverage harness. It covers child lifecycle, independently owned handles, CPU/memory/PIDs limits, unavailable controllers, atomic controller changes and refusal, whole-process migration, populated notifications, watched-group removal while its handle remains open, and cleanup after descriptor exhaustion during creation. Missing explicit delegation fails required coverage; invalid paths, read-only mounts, and facility failures fail once a subtree is supplied. Optional rootless runs skip the unselected live scenarios. Read-only discovery is not proof of mutation success. Add kernel=7.0 and the native architecture when collecting baseline evidence; retain the standard reports directly under test/reports/.

The PIDs scenarios check that the peak includes descendant threads and survives worker exit. A bounded shell workload checks local and hierarchical event attribution when an ancestor limit refuses its fork. The test reads the mount’s existing pids_localevents policy and leaves it in place.

HugeTLB scenarios check size discovery, limit rounding and reset, and refusal of both reservations and faults by a delegated ancestor. The child uses an anonymous MAP_HUGETLB mapping. For fault refusal, it adds MAP_NORESERVE and writes to the mapping. Limit events identify cgroup refusal even when the pool is empty. In a disposable VM, reserve default-size huge pages at boot, such as hugepages=4, and add hugetlb-pool=true to make verify-cgroup. That run observes the reservation before faulting, the faulted bytes and NUMA accounting, and the release after unmapping. The test suite leaves host pool settings and ancestor policy untouched.

For a preconfigured Soft-RoCE fixture, enable rdma for children of the test delegation and pass rdma-device=/dev/infiniband/uverbsN to make verify-cgroup. The runner must be able to open the selected character device and adjust the mode of a control file in a test-owned group. Discovery checks the uverbs class through sysfs. The workload inherits a reference to the validated device and opens its contexts after cgroup migration. The live tests use a globally unique fixture name. Parser fixtures in the Linux 7.3 record format cover devices that share a name across network namespaces. A bounded child opens a userspace context and allocates a protection domain. Separate scenarios check that an ancestor limit rejects a second handle or object with EAGAIN, while the first allocations remain visible until close. The suite also checks native limit readback, a partial reset, and missing-device and permission errors. Selecting an unusable fixture fails the run.

The delegated misc cases check file visibility, empty or idle records, and kernel errors for an unconfigured resource and a denied write. For limit readback and enforcement, run make verify-cgroup delegation=/absolute/delegated/subtree arch=amd64 kernel=7.0 misc-sev=true directly on a disposable AMD SEV host. The fixture requires the real hierarchy root at /sys/fs/cgroup, at least two configured SEV ASIDs free of competing allocations, and writable /dev/kvm with SEV enabled in KVM. A bounded child initializes SEV after cgroup migration. The suite checks the first ASID charge, an ancestor’s refusal of the second charge, local and hierarchical event attribution, and release at VM close. The selected fixture fails if its prerequisites are missing.

The delegated device-memory tests check file visibility, idle records, and kernel errors for an unregistered region and a denied write. To also verify charge enforcement, run the configured fixture as root inside a disposable VM with CONFIG_CGROUP_DMEM, module loading, matching kernel headers and build tools, devtmpfs, and the real v2 root at /sys/fs/cgroup. Prepare the writable delegation described above. Use the guest architecture in place of amd64 when needed. The example selects the Linux 7.0 baseline. Use kernel=newer for a later guest.

source scripts/container.sh
with_cgroup_dmem_fixture make verify-cgroup delegation=/absolute/delegated/subtree arch=amd64 kernel=7.0 dmem-fixture=true

The provider registers go-linux/fixture and charges 4,096 bytes per open of /dev/go-linux-dmem. The environment report records the region capacity. The scenarios verify byte-exact limit readback, independent protection settings, an ancestor’s EAGAIN refusal of a second charge, and release on close. When selected, an unavailable fixture fails before the suite runs. This provider exercises kernel accounting without allocating GPU memory.

The build-cgroup CI matrix uses the same container launcher available locally on a native Linux Docker host:

make verify-cgroup-container image=alexfalkowski/go:5.27 arch=amd64

The launcher requires permitted privileged containers and the listed controllers delegated to Docker containers. It selects a private cgroup namespace, verifies that v2 membership starts at its root, and mounts a fresh namespace-rooted cgroup2 filesystem. It moves itself to a runner leaf, enables the controllers for a sibling delegation, refreshes dependencies, and invokes make verify-cgroup. Docker removes the disposable subtree on exit. Missing controllers, mount permissions, or delegation fail the run. Linux 7.0 cgroup namespace rules.

Add io-storage=true on a disposable rootful Docker host with root access or passwordless sudo and a loadable, initially unloaded scsi_debug module. The launcher provisions a dedicated RAM-backed disk, initializes its disabled I/O cost policy for per-device weight readback, exposes the device to the container, and unloads its module at exit. Both cgroup CI jobs select this fixture.

Add rdma-rxe=true on a disposable rootful Docker host with root access or passwordless sudo, loadable rdma_rxe and ib_uverbs modules, and rdma delegated to the container. The launcher loads the modules on the host and registers a uniquely named Soft-RoCE device on a veth pair in the container network namespace. It uses iproute2 in the container and installs it there if needed. The network namespace teardown removes the device. The modules can remain loaded on the disposable host. Both native cgroup CI jobs select this fixture.

Add dmem-fixture=true on a disposable rootful Docker host with matching kernel headers, build tools, and permission to load the test module. The launcher builds and loads the provider for the run, then unloads it on exit. The container receives the fixture device and a read-only bind mount of the real hierarchy root’s dmem.capacity file. The test workload runs inside the private delegation. Both native cgroup CI jobs require passing results for limit readback, independent protection settings, and ancestor charge refusal with release.

Use the configured Go image and a writable checkout/vendor directory; dependency setup and image acquisition may need network/registry access. A writable disposable source copy can avoid existing vendor ownership restrictions. Reports remain directly in test/reports/. CI selects kernel=7.0 on native amd64 and arm64 and stages each profile as cgroup-<arch> for the required coverage merge. The rootless lane retains fixture/read-only coverage. The environment matrix below records observed runs; the required CI jobs validate the native baseline during PR validation.

Mount verification

Use a native Linux host with rootful Docker, initial-user-namespace CAP_SYS_ADMIN, kernel support for XFS, Btrfs, ext4, and OverlayFS, a visible /dev block inode, and usable loop devices. Select the Go image from .circleci/config.yml and the host architecture.

make verify-mount-container image=alexfalkowski/go:5.27 arch=amd64

The launcher uses the image’s mkfs.xfs and util-linux mount, installs btrfs-progs inside the disposable container when needed, refreshes Go dependencies, and runs make verify-mount. The target records environment.json and runs the mount package’s required namespace suite. The tmpfs fixtures use private user and mount namespaces, including the inotify scenario that observes Unmount followed by Ignored. The XFS and Btrfs fixtures retain initial-user-namespace privilege in private mount namespaces with private propagation. They loop-mount disposable sparse filesystem images and release them with unmount and loop autoclear. The XFS reflink test clones test-owned files with FICLONE and checks physical mappings and sharing with FIEMAP before and after each unshare mode. Required prerequisite and operation failures fail the command. Reports are bind-mounted back to test/reports/. Use a writable disposable source copy when dependency ownership prevents refresh.

With mkfs.xfs, the Btrfs tools, and util-linux mount installed directly, make verify-mount arch=amd64 runs the same discovery and mount suite. Add kernel=7.0 to require the exact kernel baseline. CircleCI selects it for both native architectures.

CircleCI also selects the ext4 write-zeroes test with write-zeroes=true. Use this option on a disposable native runner with a loadable, initially unloaded scsi_debug module, root or passwordless sudo, and rootful Docker.

make verify-mount-container image=alexfalkowski/go:5.27 arch=amd64 kernel=7.0 write-zeroes=true

The launcher loads scsi_debug with one RAM-backed disk and enables WRITE SAME with unmap. It unloads the module when the container exits. The test finds the disk under the scsi_debug driver in sysfs and checks its queue’s write_zeroes_unmap_max_bytes before formatting it with the image’s mkfs.ext4 in a private mount namespace. It verifies size and contents, partial-block boundaries, written extents and mapping reuse after overwrite, and an unwritten extent from ordinary zero-range. A selected test fails if the fixture cannot run. Plain make verify-mount runs the suite with the ext4 write-zeroes case unselected.

The mount lane also exercises file.SyncFS through regular file and directory handles on a disposable XFS image. Both calls must succeed and leave their handles usable. The fixture checks kernel execution and handle behavior. Crash recovery and persistence after power loss need separate evidence.

The mount discovery fixtures use the same required namespace profile. They compare mount and parent IDs with statx, the no-execute restriction with statfs, and the namespace ID with nsfs. They exercise both pagination orders, handle and numeric namespace selection, option arrays, response growth for a long mount point, and identity lookup after unmount. Malformed response fixtures exercise decoding separately.

The configuration fixtures observe tmpfs capacity changes with statfs, including context reuse. They read both OverlayFS layers after closing the supplied files. The ext4 journal path fixture looks up a block inode by relative path and by a path-only file. It stops after setting the parameter, with no device I/O. A tmpfs parser diagnostic confirms that a binary parameter reached the filesystem.

The mount attribute fixtures observe access-time flags with statfs and propagation modes and peer groups with statmount, including recursive changes to nested mounts. The ID-mapping fixture uses a private mount child with initial-user-namespace privileges to create a user namespace with distinct test UID and GID mappings. It compares ownership through the source and cloned tmpfs mounts after closing the namespace handle. The root activation fixture prepares and switches to tmpfs in a bounded mapped child, detaches the old tree, and checks the new root and parent lookups. The parent retains the working-directory fixture and writes the standard test reports after the child exits.

The XFS fixture also checks aligned direct reads and writes, observes EINVAL for misaligned write addresses, lengths, and offsets, and verifies both whiteout rename modes by observing the original inode at the destination and a 0:0 character-device inode at the source. The rootless file suite exercises publishing an unnamed inode and observes the requested synchronous status flags.

Fanotify verification

Use a native Linux host with a rootful Docker daemon and initial-user-namespace CAP_SYS_ADMIN. The host kernel must provide CONFIG_FANOTIFY and CONFIG_FANOTIFY_ACCESS_PERMISSIONS. Rootless Docker cannot supply the required initial-namespace privilege, including with --privileged; the launcher rejects that environment before running setup.

make verify-fanotify-container image=alexfalkowski/go:5.24 arch=amd64

The launcher uses the configured Go image and runs dependency setup followed by make verify-fanotify. That target records the environment and runs package=fanotify profile=namespaces required=true through the ordinary race/coverage harness. Each live fixture reexecutes in a private mount namespace without creating a user namespace, preserving the required initial-namespace privilege. It makes mount propagation private and uses only test-owned files and private tmpfs instances; no host files or mounts receive marks. Tests verify notification files, inode/mount/filesystem marks, permission responses and shutdown, iterator cleanup, deadlines, and concurrent close. Examples run in the same isolated fixtures. The build-fanotify CI matrix requires these operations on native amd64 and arm64; capabilities and successful namespace creation alone do not count as fanotify evidence.

With the configured tools installed on a suitable privileged Linux runner, use make verify-fanotify arch=amd64 directly. From a shell with sudo access, sudo env "PATH=$PATH" make verify-fanotify arch=amd64 retains access to user-installed Go, Ruby, and gotestsum tools. Ordinary rootless package tests execute parser, cleanup, and invalid-input scenarios while skipping the unselected live fixtures. Selecting profile=namespaces required=true fails on missing privilege; errors after entering the fixture always fail rather than becoming blanket skips. A failed required run is not runtime coverage.

Clock-changing tests

[!WARNING] Run these tests only in a dedicated disposable VM with time synchronization disabled. They change the Docker host VM’s CLOCK_REALTIME; containers and time namespaces do not isolate that clock. Never run them on a shared host.

Inside that VM, using its native architecture and the configured Go image:

sudo timedatectl set-ntp false
make verify-timerfd-container image=alexfalkowski/go:5.24 arch=amd64 clock_change=true

The explicit acknowledgment is required before Docker starts. The launcher runs dependency setup and make verify-timerfd, selecting only timerfd with the clockchange build tag, required prerequisites, vet, race detection, and reports. Missing clock-setting permission fails. The tagged suite includes typed epoll registration during forward/backward clock cancellation, ECANCELED reads without fabricated expirations, and readiness cleared after consumption. Cleanup restores wall time using monotonic elapsed time, but abrupt termination can prevent restoration; discard the VM afterwards.

With tools installed directly, use make verify-timerfd arch=amd64 clock_change=true. Ordinary make specs does not enable clock-changing tests, including when run as root. Both privileged verification targets retain environment.json with their test reports.

File verification

Run make specs package=file profile=rootless required=true for ordinary file operations and metadata. The NoDump scenario sets and clears only a test-owned temporary file’s flag, checking both the attribute value and its validity mask. Its temporary filesystem must support the inode-flag ioctls and report NoDump support through statx.

The rootless suite compares extended metadata with an independent statx query and confirms that procfs leaves the requested fields unavailable. The mount lane checks distinct direct-read and write alignments on a shared XFS extent and positive atomic-write limits and attributes on XFS. On Btrfs it compares the top-level and nested subvolume IDs with an independent btrfs inspect-internal rootid query.

Allocation tests use disposable files and compare their size, contents, and allocated blocks. If the default temporary directory is on tmpfs, set TMPDIR to a writable directory on a filesystem that supports zero-range, collapse, and insert at the block alignment used by the fixtures. For example, from a checkout on extent-based ext4 without bigalloc, run TMPDIR="$PWD/test" make specs package=file profile=rootless required=true. Optional runs on tmpfs skip those specific scenarios with a prerequisite message. Required runs fail if the selected temporary filesystem cannot execute the requested operation.

The rootless suite checks all six Fadvise hints, Readahead on a readable file, and Fdatasync after a log write. The tests verify range validation, kernel errors, and borrowed-file offsets. Cache policy and residency can vary with the filesystem and workload. The mount lane executes filesystem-wide synchronization.

The same suite exercises advisory locks on test-owned local files. The Flock cases cover sharing, contention, conversion, and release on unlock, exit, or final close. The record-lock cases cover cross-process POSIX and OFD conflicts and owner reporting, signed range origins, partial unlocks, blocking acquisition, and POSIX deadlock detection. They also compare closing an unrelated POSIX handle with closing the last OFD reference. Use the existing rootless launcher to exercise the pinned syscall profile without capabilities.

The namespace lane additionally selects live block-device metadata. With the configured tools and a visible /dev block inode, use make specs package=file profile=namespaces required=true. The test obtains a path-only handle, then compares the translated block-device mode and represented-device numbers with an independent kernel query. It performs no device data I/O or device creation. Ordinary rootless runs leave this fixture unselected; selected required runs fail if no block inode is visible. The privileged namespace container exposes the host’s existing device inodes and supplies the CI environment for this scenario.

Affinity verification

Run make specs package=sched profile=rootless required=true arch=amd64 on native amd64, or select arch=arm64 on native arm64. The rootless container launcher accepts package=sched. The existing native rootless matrix discovers the package on Linux 7.0 with the pinned syscall profile.

Tests intersect each thread’s procfs mask with the online CPU list in sysfs because the stored thread mask can include offline CPUs. Keep the CPU topology stable during these independent reads. In a bounded child, the suite requests up to two eligible CPUs along with an unavailable CPU and checks which CPUs remain. Other cases verify thread isolation and rejected masks. The isolation case needs two eligible CPUs so it can observe an actual change. It skips on a single-CPU runner in optional mode and fails there with required=true.

Scheduling verification

The rootless sched suite also exercises time-sharing and idle policy changes, clamp updates, inheritance, permission errors, and block I/O priority for threads and a private process group. Run the same rootless command shown for affinity. The clamp case needs CONFIG_UCLAMP_TASK. An optional run skips that case when Linux reports EOPNOTSUPP. Required runs fail on that error.

On a disposable native Linux VM with rootful Docker, use the Go image from CI:

make verify-sched-container image=alexfalkowski/go:5.27 arch=amd64

CircleCI selects kernel=7.0 on amd64 and arm64. With the Go tools and initial-user-namespace CAP_SYS_NICE directly available, run make verify-sched arch=amd64. The required profile records the runner’s capabilities and uses the standard JSON, JUnit, and atomic coverage reports. The child tests use priority 1 for FIFO and round-robin and set a hard 100 ms continuous real-time CPU limit or retain a stricter inherited limit. The deadline test uses a 2 ms budget per 100 ms period. Keep the runner’s CPUs eligible for the full scheduling root domain and permit real-time tasks in its cgroup. Admission and syscall denials fail the required suite. The launcher leaves host scheduling policy untouched.

Resource-limit verification

On an ordinary-user runner with a different-UID PID 1, run make specs package=rlimit profile=rootless required=true arch=amd64 or select package=rlimit through the rootless launcher. The suite checks descriptor exhaustion in a cooperating child, unchanged parent limits, atomic predecessor values under concurrent writes, and permission and target-lifetime errors. The different-UID check issues a read-only query.

On a disposable native Linux VM with rootful Docker, run:

make verify-rlimit-container image=alexfalkowski/go:5.27 arch=amd64

With the Go tools and initial-user-namespace CAP_SYS_RESOURCE available in the VM, run make verify-rlimit arch=amd64 directly. The child lowers its hard core-file limit to zero, then raises it and verifies a finite unsigned value above the signed 64-bit range and the unlimited sentinel. CI runs both profiles on native Linux 7.0 amd64 and arm64. Both profiles check that a child which clears its capabilities cannot raise its hard limit. The rootless jobs also check that an ordinary user cannot query a process with a different UID.

io_uring verification

Run on a native Linux Docker host with jq available to build the container’s seccomp allowlist from the pinned Moby profile:

make verify-uring-container image=alexfalkowski/go:5.27 arch=amd64

The launcher permits io_uring_setup, io_uring_enter, and io_uring_register for the io_uring container, which runs tests without capabilities as a nonroot user. The kernel’s existing io_uring policy also applies. On an ordinary-user runner that permits the same syscalls, run make verify-uring arch=amd64 directly. The environment report includes the observed io_uring_disabled setting and the outcome of ordinary and fixed writes to a temporary file, a cancellation issued after the target completes, and an eventfd notification for a completed write. The probe runs in a child with a five-second deadline. The parent reaps it and removes the temporary file even after a timeout. A timeout fails verification. The required lane tests partial buffer updates with a read-only replacement, locked-memory exhaustion in a child, and ordinary writes when registration is denied. It covers scatter/gather offsets and short counts, descriptor cleanup after a refused vector submission, and buffer lifetime through garbage collection. It exercises both file-sync modes and checks that syncing a path-only file reports the kernel error in its completion. Linked scenarios check ordered writes and sync, downstream cancellation on failure and short reads, ownership through completion, and cleanup when staging or submission fails. Timeout scenarios check relative delays and absolute deadlines in each clock, expiry and disarming of linked timers, explicit cancellation, and retention of a pending file request’s buffer and descriptor after a wait expires. The Monotonic and Boottime absolute-deadline checks need a zero offset for the clock under test so both supported kernel interpretations agree. A nonzero offset fails that clock’s subtest in required runs and skips it in optional runs. The lane also exercises cancellation at depth one with a waiter already blocked in the kernel. A bounded nonroot child temporarily lowers its soft RLIMIT_NPROC to delay creation of the I/O worker and restores the limit after submitting cancellation. If Go reports that the limit prevented OS thread creation, the parent can start up to two fresh children. One child must observe the blocked wait, collect both terminal completions, and verify descriptor cleanup after garbage collection. The poll scenarios use test-owned pipes to verify readiness without consuming data, hangup, linked cancellation, and descriptor lifetime through completion. A bounded child polls a readable pipe while worker creation is denied. It must receive a request ID and a cancellation completion when Linux exhausts its worker retries. An inline poll would report readiness immediately. The eventfd scenarios wake an epoll registration from a poll completion, consume the counter and completion separately, and check lifetime after closing either owner or unregistering the counter. In optional package runs, ordinary scenarios probe only a positional write. Fixed, cancellation, and eventfd scenarios probe their additional operations. If the runner denies registration, those scenarios skip. The full environment check requires all prerequisites to pass. File I/O, memory limit, timeout, and cleanup errors fail the selected probe. Direct make specs package=uring profile=uring runs also check the selected architecture and kernel. CI requests exact Linux 7.0 on native amd64 and arm64 and merges both coverage profiles.

Perf verification

make verify-perf arch=amd64
make verify-perf-container image=alexfalkowski/go:5.27 arch=amd64

The container installs dependencies before running the same required profile. The rootful launcher uses CAP_PERFMON for Linux’s perf permission check and CAP_DAC_OVERRIDE to write dependency and report files. With a rootless Docker daemon, the launcher allows perf_event_open in the pinned syscall profile for this suite and runs tests with empty capability sets. The host’s existing perf_event_paranoid setting must then allow userspace task events. Neither launcher writes that setting. Rootless UID mappings may require a writable disposable source copy.

The environment report records the observed policy and probes task-clock creation, software grouping, IDs, enable, disable, read, reset, and sample ring mapping with runtime polling. Required runs fail if the probe cannot run. Optional selected runs skip only known permission or syscall-availability failures when opening the task clock with kernel and hypervisor exclusions.

The live tests verify task counts, CPU filtering, inheritance through a bounded child, whole-group reset, kernel IDs, and descriptor cleanup. The sampling tests produce faults on private anonymous pages and verify sample identity, timestamps, ordered wraparound, reported ring loss, interruption, cleanup after mapping or poll-registration refusal, and shutdown of an enabled event when unmapping fails. The retry test checks descriptor reuse. Hardware and raw event evidence requires a configured PMU. CI selects kernel=7.0 on native amd64 and arm64, stores the standard reports in test/reports/, and stages both perf coverage partitions.

Sysfs verification

Run make specs package=sysfs profile=rootless required=true through the standard race/coverage harness. Fixtures use ordinary temporary directories with class symlinks; no device nodes, host mutations, capabilities, or namespace creation are required. Coverage includes partitions, missing and malformed attributes, exact byte preservation and size limits, checked units and numeric widths, path validation, device disappearance/replacement, concurrency, and descriptor cleanup. Shared fixture helpers are in internal/test; assertions remain beside the public API scenarios.

Live read-only tests discover the available inventory rather than assuming particular block or interface names. They compare network index/MTU with the standard library, independently resolve block major/minor identities through /sys/dev/block, and check loopback’s unavailable speed returns the kernel’s EINVAL rather than silently becoming zero. A host with no block entries has no live block scenarios; fixtures still cover block behavior. The network checks require sysfs to expose interfaces from the current network namespace, including loopback. Permission-error fixtures require an ordinary user without DAC override; selected required runs fail rather than skip that prerequisite.

The existing rootless architecture matrix discovers the package automatically. Use the rootless launcher with package=sysfs for the configured image and syscall profile. The required CI matrix validates native Linux 7.0 amd64 and arm64; a newer local kernel does not establish baseline evidence.

Verified environments

The workflow for e1d6c4f verified the ordinary-user, mount, and clock-change lanes using Go 1.27.4 from alexfalkowski/go:5.23. The workflow for 6fc658c additionally verified fanotify with the same image and toolchain:

Lane Native architectures Observed kernel CI evidence: arm64 / amd64
Ordinary user arm64, amd64 7.0.0-1004-aws 408 / 409
Isolated mount arm64, amd64 7.0.0-1004-aws 406 / 410
Isolated fanotify arm64, amd64 7.0.0-1004-aws 525 / 523
Disposable-VM clock changes arm64, amd64 7.0.0-1004-aws 411 / 407

Both ordinary-user jobs ran as UID 1001 with zero effective/bounding capabilities, NoNewPrivs=1, and seccomp mode 2. All 27 xattr tests/examples passed without skips on each architecture, including real-filesystem attribute operations; the pidfd cross-user signal-permission test also passed on both.

Both fanotify jobs ran as UID 0 with initial-user-namespace CAP_SYS_ADMIN and passed all 36 tests without skips, including the isolated notification, permission, lifetime, deadline, concurrent-close, and iterator scenarios and examples.

On the E02a merge revision, both native mount jobs ran Go 1.27.4 on Linux 7.0.0-1016-aws and passed both XFS unshare modes with race detection. FIEMAP confirmed that the selected block became private and its neighbor stayed shared. amd64 job, arm64 job, merged coverage.

On the E02b merge revision 9c6e651, both native mount jobs ran Go 1.27.4 on Linux 7.0.0-1016-aws and passed all ext4 write-zeroes scenarios with race detection. Both runners reported a write-zeroes-with-unmap limit of 33,553,920 bytes. amd64 job, arm64 job, merged coverage.

On the E03 merge revision 98f32f9, both native Linux 7.0.0-1016-aws mount jobs passed TestSyncFSOnAnIsolatedFilesystem on disposable XFS. The rootless jobs and coverage merge also passed. amd64 mount job, arm64 mount job, merged coverage.

On the E04 merge revision 2f329cf, both native Linux 7.0.0-1016-aws rootless jobs passed all 11 Flock tests and examples with race detection. The coverage merge passed. amd64 rootless job, arm64 rootless job, merged coverage.

On the E05 merge revision fa4a688, both native Linux 7.0.0-1016-aws rootless jobs passed the POSIX and OFD record-lock scenarios with race detection, including blocking acquisition and POSIX deadlock detection. The coverage merge passed. amd64 rootless job, arm64 rootless job, merged coverage.

On the E07 merge revision ae19c73, native amd64 and arm64 jobs used Linux 7.0.0-1016-aws. The rootless jobs passed unnamed-file publication and synchronous opening. The isolated mount jobs passed aligned direct I/O, whiteout identity, and the no-replace conflict on XFS. The coverage merge passed. amd64 rootless, arm64 rootless, amd64 mount, arm64 mount, merged coverage.

The final E09 PR revision and merge commit 6f4ff9c have identical source trees. Both PR rootless jobs used Linux 7.0.0-1016-aws and passed immediate and on-fault locking, residency, child-local limit enforcement, unlock, and close cleanup. CircleCI merged coverage successfully. amd64 rootless, arm64 rootless, merged coverage.

On the E10 merge revision 288c389, both native Linux 7.0.0-1016-aws rootless jobs passed mapped-region resize and advice, including bounded relocation, locked-grow failure, and a guarded-page access fault. The coverage merge passed. amd64 rootless, arm64 rootless, merged coverage.

On the E11 merge revision a35156b, both native Linux 7.0.0-1016-aws mount jobs passed all 61 cases, including traversal in both orders, structured records, namespace selection, response growth, and disappearance after unmount. The coverage merge passed. amd64 mount, arm64 mount, merged coverage.

On the E12 merge revision cc90308, both native Linux 7.0.0-1016-aws mount jobs passed tmpfs reconfiguration and context reuse, ext4 path and empty-path parameters, OverlayFS file parameters, binary parameter dispatch, diagnostics, and cleanup. The coverage merge passed. amd64 mount, arm64 mount, merged coverage.

On the E13 merge revision f8cf519, both native Linux 7.0.0-1016-aws mount jobs passed all 86 cases, including atime and propagation changes, UID/GID translation, and private root switching and old-root detachment with unchanged parent lookups. The coverage merge passed. amd64 mount, arm64 mount, merged coverage.

On the E14 merge revision 9987fea, both native Linux 7.0.0-1016-aws namespace jobs passed live pidfd duplication, including shared offsets and status flags, close-on-exec, independent closure, and invalid-number, permission, exit, exhaustion, and close-race cases. Both rootless jobs passed cross-user signal denial, and coverage merged successfully. amd64 namespace, arm64 namespace, amd64 rootless, arm64 rootless, merged coverage.

On the E16 merge revision 303927f, both native Linux 7.0.0-1016-aws notification jobs passed live file injection with separate and atomic replies, including occupied-slot replacement, shared offsets, and a rejected atomic installation that left the request pending. Coverage merged and the required workflow passed. amd64 notification, arm64 notification, merged coverage, workflow.

On the E17 merge revision 3ca04f3, both native Linux 7.0.0-1016-aws Netlink jobs passed namespace moves, bridge forwarding, partial failures, paired deletion, and cleanup when a namespace was destroyed. Coverage merged and the required workflow passed. amd64 Netlink, arm64 Netlink, merged coverage, workflow.

These results establish the recorded revision and scenarios, not exhaustive kernel behavior or later revisions. CI runs the configured image toolchain rather than a separate minimum-Go-version matrix. Inspect the retained environment and test reports when accepting a new revision; compilation alone, image names, privileges, or source inspection do not establish runtime coverage. Remaining gaps and source-reviewed paths are recorded in verification limits.

The required mount suite also passed with race detection in an emulated amd64 Linux 7.0.0-1016-aws guest using Go 1.27.4. The disposable SCSI disk reported a positive write-zeroes-with-unmap limit. Ext4 passed the written-extent, overwrite, partial-block, and zero-range control scenarios. The run is recorded in test/reports/e02b-ext4-vm-console.log.

The E03 mount suite passed in the same emulated environment. It executed SyncFS on disposable XFS through regular file and directory handles, preserved the file offset, and left both handles usable. The run is recorded in test/reports/e03-mount-guest-console.log.

The E06 mount suite passed all 41 cases with race detection in an emulated amd64 Linux 7.0.0-1016-aws guest with Go 1.27.4. The XFS fixtures observed distinct direct-I/O offset alignments and positive atomic-write limits. The Btrfs fixture checked two distinct subvolume IDs. A separate XFS probe on a disposable scsi_debug device with atomic writes enabled matched a 65,536-byte optimized maximum against native statx. Reports use the e06-mount-guest- and e06-atomic-guest- prefixes in test/reports/.

The E11 mount suite passed all 61 cases with race detection in an emulated amd64 Linux 7.0.0-1016-aws guest with Go 1.27.4, including the live mount discovery and malformed response cases. Reports use the e11-mount-guest- prefix in test/reports/.

The E12 mount suite passed all 76 cases with race detection in an emulated amd64 Linux 7.0.0-1016-aws guest with Go 1.27.4. The run verified tmpfs reconfiguration and context reuse, ext4 journal path lookup, OverlayFS layers supplied by open files, and binary parameter dispatch to the tmpfs parser. Reports use the e12-mount-guest- prefix in test/reports/.

The E13 mount suite passed all 86 cases with race detection in an emulated amd64 Linux 7.0.0-1016-aws guest with Go 1.27.4. It exercised atime and propagation on nested mounts, actual UID/GID translation after closing the namespace handle, and root switching and old-root detachment in a bounded child. Reports use the e13-mount-guest- prefix in test/reports/.

Additional verification includes exact-baseline CI jobs and local runs on newer kernels.

Scope Go / kernel / architecture Observed prerequisites Evidence and limits
process orphan adoption and reaping Go 1.27.4 / 7.0.0-1016-aws / native amd64 and arm64 Required pinned rootless and privileged namespace containers. On the final E14a revision, both rootless jobs pass subreaper state, inheritance, adoption, and zombie collection. Both namespace jobs pass PID 1 signal forwarding and reaping. amd64 rootless, arm64 rootless, amd64 namespace, arm64 namespace, merged coverage.
pidfd file duplication Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 pidfd_getfd permitted for a test-owned child. The rootless container uses UID 1000, empty capabilities, and the pinned Moby profile. The focused required namespace run passes all selected duplication cases with race detection. The combined local namespace container passes the pidfd cases and encounters the documented Landlock device-node prerequisite. The required rootless container passes cross-user signal denial. Reports use the e14-pidfd-local- and e14-pidfd-rootless- prefixes in test/reports/.
mmap resizing and advice Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 UID 1000, empty capability sets, pinned Moby seccomp profile, readable smaps and KSM/THP settings. The initial E10 container run passed all 100 mmap cases with race detection through the required rootless launcher. Lint, vet, security scans, and coverage generation passed. Reports use the e10-mmap-container- prefix.
file extended metadata Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 Local ext4 and the pinned rootless container profile with zero effective and bounding capabilities. Each required rootless run recorded 184 passes and one unselected block-device scenario. The container run also passed quality checks and reported 97.2% file statement coverage. Reports use the e06-file-container- prefix.
file POSIX and OFD record locks Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 Direct ext4 fixtures and the rootless Go 5.27 image with the pinned Moby syscall profile and zero effective/bounding capabilities. Both runs passed 181 cases with race detection and one unselected block-device metadata scenario. Container statement coverage is 97.2%. Blocking acquisition runs in bounded children whose counters are absent from the profile. Reports use the e05-file-container- prefix.
file whole-file advisory locking Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 Direct ext4 fixtures and the rootless Go 5.27 image with the pinned Moby syscall profile and zero effective/bounding capabilities. Both runs passed 156 cases with race detection and one unselected block-device metadata scenario. Container reports use the e04-file-container- prefix.
file access advice and data synchronization Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 UID 1000, seccomp mode 2, zero effective/bounding capabilities, and temporary files on ext4. The required rootless suite passed 145 cases with race detection and one unselected block-device metadata scenario. Reports use the e03-file- prefix.
file allocation and range operations Go 1.27.4 / 7.3.5-1-t2-resolute / native amd64 UID 1000, seccomp mode 2, zero effective/bounding capabilities. Supporting temporary filesystem in the Docker launcher and ext4 in the direct run. Both required rootless runs report 114 passing cases and one unselected namespace-only block-device case. Allocation, size preservation, hole punching, zero-range, collapse, and insert pass with race detection and independent block-count checks. The configured Go image also passes quality checks and reports 99.0% file statement coverage. Reports use the e02-native-ext4- and e02-container- prefixes. Linux 7.0 and arm64 evidence for this change remains pending.
Coverage inventory and representative file operations Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Direct shell: UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2, read-only cgroup v2, namespace creation denied with EPERM. Rootless Docker is available. Fresh make test-environment confirms the local prerequisites. The configured alexfalkowski/go:5.24 image’s make verify-rootless-container arch=amd64 package=file run passes lint, script lint, security scans, vet, race/coverage tests, and coverage generation from a disposable source copy. Test events contain 88 passes and one explicitly unselected namespace-only block-device case; file statement coverage is 98.9%. Reports use test/reports/e01-file-*. This checks representative shipped file behavior, not the absent expansion mechanisms, isolated block metadata, Linux 7.0, arm64, or the complete matrix.
file metadata and seccomp aggregate instruction limit Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Ordinary user: UID 1000, no effective capabilities, NoNewPrivs=1, seccomp mode 2. Configured Go image: UID 0 in privileged rootless Docker, visible block inodes, permitted seccomp and namespace operations. The required file/seccomp namespace-profile run passes all 153 cases with race detection and no skips, including aggregate filter-tree refusal without attachment, block-device mode/identity through a path-only handle, and NoDump set/clear. The ordinary-user run passes 148 cases with five unselected profile cases. Reports use test/reports/verification-limits-namespace-*; Linux 7.0 and arm64 evidence remains for CI.
R01 rootless surface and typed readiness composition Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2; configured Go image and pinned Moby syscall profile verify-rootless-container passes lint, script lint, security scans, vet, tests with race detection, and coverage: 1,509 cases pass and 108 isolated-profile cases are explicitly unselected. The five-package eventfd/timerfd/epoll/memfd/mmap subset passes all 279 cases without skips, both directly and within that run. Examples exercise shared mappings and typed counter/timer readiness; registration tests establish independent lifetime, validation, cleanup, and concurrent close. The image run uses a writable disposable source copy with matching Go sources and dependency declarations. Rootless statement coverage is 88.2%; child counters are not merged. Exact Linux 7.0 and native arm64 probes reject this runner. Other verification gaps are recorded in verification limits.
sysfs block/network attributes and fixture compatibility Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2; readable sysfs and writable temporary fixtures All 115 cases pass with race detection and no skips directly and through the configured Go image’s required rootless launcher. Tests establish typed values, unknown bits/bytes, size limits, symlinks/partitions, missing attributes, disappearance/replacement, errno, concurrent reads, descriptor cleanup, and examples. Statement coverage is 97.8%. The rootless Docker mapping requires a writable disposable source copy; implementation, tests, and dependency declarations match the checkout. Exact Linux 7.0 and native arm64 probes reject this runner. Rare defensive failures remain recorded in verification limits.
procfs process/system information and fixture compatibility Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2; readable procfs and test-owned temporary files All 124 cases pass with race detection and no skips directly and through the configured Go image’s required rootless launcher, including errno, synthetic formats, typed units/flags, name preservation, concurrent reads, temporary-descriptor cleanup, and examples. Statement coverage is 98.9%. Verification uses writable disposable source copies because the checkout’s existing vendor ownership prevents refresh; the rootless Docker mapping additionally requires a writable bind mount. Exact Linux 7.0 and native arm64 checks reject this runner.
landlock rulesets, enforcement, thread scope, and exec inheritance Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Rootless: UID 1000, NoNewPrivs=1, seccomp mode 2, no effective capabilities. Namespace lane: UID 0 in privileged rootless Docker, initial NoNewPrivs=0, seccomp mode 0, effective CAP_SYS_ADMIN. Landlock ABI 11. The expanded required namespace run passes 67 Landlock cases, including privilege transitions and new device-ioctl, FIFO, and pathname-socket enforcement. Character/block-device positive controls fail with EPERM before restriction: rootless Docker lacks initial-user-namespace CAP_MKNOD. The full four-package run has 220 passes and three failure events (the two device cases and their parent), with no skips; it is not a passing required lane. Reports are preserved as test/reports/namespace-device-required-*. The rootless suite passes 64 cases with six unselected privilege/device-node cases. Child statement counters are not merged. Remaining defensive failures are recorded in verification limits.
seccomp validation, actions, thread scope, and exec inheritance Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Rootless: UID 1000, NoNewPrivs=1, seccomp mode 2, no effective capabilities. Namespace lane: UID 0 in privileged rootless Docker, initial NoNewPrivs=0, seccomp mode 0, effective CAP_SYS_ADMIN. The required namespace launcher passes all 63 cases with race detection and no skips, including zero-to-one transitions after capability drops, EACCES refusal without authority, capability-authorized loading with the bit unset, and TSYNC privilege/policy propagation. The direct rootless suite passes 59 cases with four explicitly unselected privilege scenarios. Existing action, scalar-argument, stacking, exec, and native ABI guard scenarios also pass. Reports are preserved as test/reports/namespace-privilege-*; child statement counters are not merged. Remaining defensive paths are recorded in verification limits.
seccomp user notification and file injection Go 1.27.4 / 7.3.6-1-t2-resolute / native amd64 Direct shell and the pinned rootless container profile. Both use UID 1000 and empty effective and bounding capability sets. The launcher uses a writable disposable source copy for the daemon’s UID mapping. Each required run passes 84 cases with race detection, including live target reads after separate and atomic replies. Four namespace-only privilege scenarios are unselected. Reports use test/reports/e16-container-* and test/reports/e16-direct-*.
capability sets, thread isolation, and exec inheritance Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Ordinary suite: UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2. Isolated suite: UID 0 in privileged rootless Docker with full baseline capability sets, NoNewPrivs=0, seccomp mode 0; private mapped user-namespace children. All 31 capability cases pass with race detection and no skips through the configured Go image’s namespace launcher, in the four-package namespace lane; the separate Landlock device-node prerequisite gap is recorded above. Tests verify both ABI words, permitted/effective/inheritable changes, bounding/ambient operations, refused transitions, actual policy-denial errno, thread isolation, and ordinary exec transformations. The latest namespace run uses the current checkout. The required rootless suite passes with seventeen unselected privileged scenarios. Exact Linux 7.0 and native arm64 probes reject this host.
cgroup formats, read-only inspection, and watcher lifetime Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2; cgroup v2 mounted read-only, procfs and inotify available Fixture/read-only tests pass with race detection; delegated scenarios are unselected. Fixtures cover limit/bandwidth formats and malformed/unknown event fields; live reads preserve invisible-PID zero records. Watcher deadlines and concurrent close pass. This sandbox cannot execute delegated mutations; host evidence is recorded separately.
cgroup host delegation Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective capabilities, NoNewPrivs=0, seccomp mode 0; writable v2 mount and systemd-delegated CPU, memory, and PIDs controllers The complete required delegated suite passes with race detection and no skips, including lifecycle, controller enable/disable and refusal, CPU/memory/PIDs limit round trips, child migration, populated notifications, and creation-failure cleanup under descriptor exhaustion. This establishes local delegated acceptance.
cgroup isolated container delegation and enforcement Go 1.27.4 / 7.3.6-1-t2-resolute / native amd64 UID 0 in privileged Docker with a private cgroup namespace, writable v2 mount, CPU/memory/PIDs delegation, and runner in a separate leaf verify-cgroup-container passes all 136 cases with race detection and no skips, including descendant pause and resume, inherited freeze state, recursive kill, sibling survival, and threaded rejection. Reports use test/reports/e20-cgroup-*.
cgroup freezer and recursive kill baseline Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation Both reports for 24ddb85 show the freezer, inherited thaw, recursive kill, sibling survival, and threaded rejection scenarios passing. amd64, arm64, coverage.
cgroup cpuset and block I/O Go 1.27.4 / 7.3.6-1-t2-resolute / emulated amd64 Disposable VM with a writable delegation, a RAM-backed SCSI disk, and the race detector’s exit delay disabled All cpuset and I/O cases pass with race detection, including independent process placement, per-device readback, and throttled and accounted direct reads. The full suite reports 172 passes and one CPU quota workload timeout. The timeout also reproduces on E20 commit 24ddb85 in the same VM setup. Reports use test/reports/e21-cgroup-guest-*.
cgroup cpuset and block I/O baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation and disposable SCSI device Both reports for 27bacdb pass all 173 tests, including process CPU and memory-node placement, invalid partition state, per-device readback, and direct-read throttling and accounting. The coverage merge and required workflow pass. amd64, arm64, coverage.
cgroup CPU controls and pressure Go 1.27.4 / 7.3.6-1-t2-resolute / emulated amd64 Disposable VM with a writable delegation, a RAM-backed SCSI disk, and the race detector’s exit delay disabled make verify-cgroup passes all 213 tests with race detection, including group CPU controls, local throttle accounting, and increased CPU stall time from two workers sharing one CPU. The suite also reads memory and I/O snapshots and checks the kernel’s IRQ pressure availability. Reports use test/reports/e22-cgroup-guest-*.
cgroup CPU controls and pressure baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation Both reports for a4583ef show the CPU control, local throttling, and pressure scenarios passing. The coverage merge and required workflow pass. amd64, arm64, workflow.
cgroup memory protection, accounting, and reclaim Go 1.27.4 / 7.3.6-1-t2-resolute / emulated amd64 Disposable VM with a writable delegation, disk-backed temporary files, and a RAM-backed SCSI device make verify-cgroup passes all 228 tests with race detection, including memory and swap limit readback, memory peak and event scope, hard reclaim protection, and file-cache eviction with partial EAGAIN. Reports use test/reports/e22a-cgroup-guest-*.
cgroup memory protection, accounting, and reclaim baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation The reports for cbd1335 pass the memory protection, peak, event scope, swap readback, and proactive reclaim scenarios on both architectures. Coverage merge and wait-all pass. amd64, arm64, workflow.
cgroup PIDs peak and event attribution Go 1.27.4 / Linux 7.0.0-1016-aws / emulated amd64 Disposable VMs with a writable delegation and a RAM-backed SCSI device, one with the default event policy and one with pids_localevents make verify-cgroup passes all 236 tests in each VM with race detection and zero skips. The peak includes descendant threads after exit. An ancestor limit refusal is attributed to the enforcing group by default and to the forking group with pids_localevents. Reports use test/reports/e22b-default-* and test/reports/e22b-legacy-*.
cgroup PIDs peak and event attribution baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation Both reports for 0a510e0 pass the descendant-peak and ancestor-limit attribution scenarios with zero skips. The coverage merge and wait-all pass. amd64, arm64, workflow.
cgroup HugeTLB limits and accounting Go 1.27.4 / Linux 7.0.0-1016-aws / emulated amd64 Disposable VMs with writable delegations, RAM-backed SCSI devices, and either an empty or boot-provisioned HugeTLB pool make verify-cgroup checks 254 cases with race detection. Reservation and fault limits produce local and hierarchical events even with an empty pool. With a boot-provisioned pool, all cases pass, including separate reservation and fault accounting, positive NUMA usage, and release after unmapping. The empty-pool run leaves only the positive accounting case unselected. Reports use test/reports/e23-hugetlb-empty-* and test/reports/e23-hugetlb-pool-*.
cgroup HugeTLB limit readback and refusal baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation Both reports for 5aeadfc pass limit rounding, resets, and separate reservation and fault refusal. The pool-backed accounting case was unselected. The coverage merge and wait-all pass. amd64, arm64, workflow.
cgroup RDMA limits and accounting Go 1.27.4 / Linux 7.0.0-1016-aws / emulated amd64 Disposable VM with a writable delegation and a Soft-RoCE device registered in a private network namespace make verify-cgroup passes all 302 cases with race detection and zero skips. The live tests verify grouped limit readback, partial reset, missing-device and permission errors, separate handle and object refusals, and release after closing the device. Reports use test/reports/e23b-rdma-followup-*.
cgroup RDMA limits and accounting baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation and a Soft-RoCE device Both reports for be02703 pass limit readback, separate handle and object refusals, and release after closing the device. The coverage merge and wait-all pass. amd64, arm64, workflow.
cgroup misc file scope and errors Go 1.27.4 / Linux 7.0.0-1016-aws / emulated amd64 Disposable VM with a writable delegation and no registered misc resources make verify-cgroup reports 322 passes with race detection. The misc cases verify file visibility, empty snapshots, and errors for an unconfigured resource and a denied write. The two SEV cases were unselected. A separate required SEV prerequisite check failed at missing ASID capacity. Reports use test/reports/e23c-misc-guest-*.
cgroup device-memory limits and accounting Go 1.27.4 / Linux 7.0.0-1016-aws and 7.3.6-1-t2-resolute / emulated amd64 Disposable VMs with a writable delegation and a registered 16 KiB test region Each make verify-cgroup run reports 345 passes with race detection and two unselected SEV tests. Both guests verify limit and protection readback, ancestor charge refusal, release, and the prerequisite failure before provider registration. The idle-group peak check observes a missing file on 7.0 and a zero watermark on 7.3. Reports use test/reports/e23d-dmem-guest-* and test/reports/e23d-dmem-newer-guest-*.
cgroup device-memory baseline Linux 7.0 / native amd64 and arm64 Required cgroup container lane with a private delegation and a registered test region Both native jobs pass for 402f8b0. The coverage merge and wait-all pass. amd64, arm64, workflow.
cgroup atomic command placement Go 1.27.4 / Linux 7.0.0-1016-aws / emulated amd64 Disposable VM with a writable delegation and a RAM-backed SCSI disk All 13 startup cases pass with race detection, including first-action membership, initial task accounting, credential preservation, PID 1 in a mapped namespace, admission refusal, and cleanup. The suite reports 347 passes and 10 unselected fixture cases. The concurrent-close case also passes 10 consecutive runs. Reports use test/reports/e23a-close-guest-*.
cgroup atomic command placement baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required cgroup container lane with a private delegation Both reports for b2dac11 record passes for all 13 startup cases. The coverage merge and wait-all pass. amd64, arm64, workflow.
sched thread CPU affinity Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 UID 1000, empty capability sets, pinned Moby syscall profile in the container All 11 checks pass with race detection directly and in the required rootless container. Reports use test/reports/e24-rootless-*.
sched affinity with an offline CPU Go 1.27.4 / Linux 7.3.7-1-t2-resolute / emulated amd64 UID 1000, CPUs 0–1 online, CPU 2 offline but present in the thread’s procfs mask All 11 checks pass with race detection in required mode. Guest output is in test/reports/e24-offline-guest.log.
sched thread CPU affinity baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required rootless container profile Both reports for a38d553 record 11 passes and zero skips. The coverage merge and wait-all pass. amd64, arm64, workflow.
sched CPU policies and block I/O priority Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native and emulated amd64 Rootless shell with empty capability sets and a disposable guest with initial-user-namespace CAP_SYS_NICE The rootless suite passes at nice 0 and 19. A client started with chrt --ext reads sched.Ext while the host’s BPF scheduler is disabled. The guest passes FIFO, round-robin, deadline admission, real-time I/O priority, and the mapped-child prerequisite regression. Guest output is in test/reports/e25-review-guest.log.
sched CPU policies and block I/O priority baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required rootless and isolated scheduling profiles For 6ee485b, each rootless report records 44 scheduling passes with three privileged cases unselected. Each isolated report records 47 passes and zero skips. The coverage merge and wait-all pass. CircleCI workflow.
rlimit resource limits and atomic replacement Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native and emulated amd64 Rootless container with the pinned Moby profile and a disposable guest with initial-user-namespace CAP_SYS_RESOURCE The rootless suite verifies a real EMFILE, atomic predecessor values, and unprivileged denials with race detection. The guest also verifies raising a hard limit and round-tripping a finite value above the signed range and the unlimited sentinel. Reports use test/reports/e26-rlimit-rootless-* and test/reports/e26-rlimit-guest-*.
rlimit resource limits and atomic replacement baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required rootless and isolated resource-limit profiles For 2346658, each report records 13 passes. The hard-limit raise is selected in the isolated profile, and different-UID refusal is selected in the rootless profile. The coverage merge and wait-all pass. CircleCI workflow.
uring positional I/O baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required rootless and isolated io_uring profiles Both rootless jobs and both isolated jobs pass for edf6fa3. The coverage merge and wait-all pass. amd64 io_uring, arm64 io_uring, CircleCI workflow.
uring fixed file and buffer registration baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required rootless and isolated io_uring profiles Both rootless and both isolated jobs pass for 7c12845, along with the coverage merge and wait-all. CircleCI workflow.
uring request cancellation baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required rootless and isolated io_uring profiles Both rootless and both isolated jobs pass for 2c9a526. The isolated jobs exercise cancellation while Wait blocks at full I/O depth. The coverage merge and wait-all pass. CircleCI workflow.
uring vectored I/O and file sync baseline Go 1.27.4 / Linux 7.0 / native amd64 and arm64 Required rootless and isolated io_uring profiles Both rootless and both isolated jobs pass for 3c95137, along with the coverage merge and wait-all. CircleCI workflow.
uring linked operations and timeouts baseline Linux 7.0 / native amd64 and arm64 Required rootless and isolated io_uring profiles Both rootless and both isolated jobs pass for 2b0bfa7, along with the coverage merge and wait-all. CircleCI workflow.
uring readiness and completion notifications baseline Linux 7.0 / native amd64 and arm64 Required rootless and isolated io_uring profiles Both rootless and both isolated jobs pass for 85443fa, along with the coverage merge and wait-all. CircleCI workflow.
uring asynchronous positional I/O Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 Required nonroot io_uring container profile, no capabilities, io_uring_disabled=0 All 15 queue cases pass with race detection, including reuse after refusal and retry after a partial unmap. The prerequisite suite verifies timeout cleanup and syscall-denial policy. Its namespace-only scheduling test is unselected.
uring request cancellation Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 Required nonroot io_uring container profile, no capabilities, io_uring_disabled=0 All 40 queue cases pass with race detection, including cancellation while Wait blocks at full I/O depth and retention of the target buffer and file reference until its completion is consumed. The prerequisite suite passes 37 cases and leaves one namespace-only scheduling case unselected.
uring vectored I/O and file sync Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 Required nonroot io_uring container profile from a writable disposable source copy All 55 queue cases pass with race detection. The prerequisite suite passes 37 cases and leaves one namespace-only scheduling case unselected. Reports use the test/reports/e29-uring-* prefix.
uring readiness and completion notifications Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 Required nonroot io_uring container profile from a writable disposable source copy All 100 queue cases and 37 prerequisite cases pass with race detection, including worker dispatch for a readable pipe. One namespace-only scheduling case is unselected. Reports use the test/reports/e29c-async-poll-* prefix.
perf software counters and groups Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 Direct shell and required nonroot Docker profile with empty capability sets and perf_event_paranoid=2 Both runs pass all 22 perf cases and 37 prerequisite cases with race detection. The io_uring registration and namespace-only scheduling cases are unselected. The Docker reports use test/reports/e30-perf-*.
perf software counters and groups baseline Go 1.27.4 / Linux 7.0.0-1016-aws / native amd64 and arm64 Required Docker perf profile with CAP_PERFMON and perf_event_paranoid=4 The merge revision 59bb4e1 passed both perf and rootless jobs, coverage merge, and wait-all. amd64 perf, arm64 perf, workflow.
perf software sampling Go 1.27.4 / Linux 7.3.7-1-t2-resolute / native amd64 Required nonroot Docker perf profile with empty capability sets and perf_event_paranoid=2 All 71 perf cases and 37 prerequisite cases passed with race detection, including event shutdown and retry after a failed unmap. Two unrelated profile cases were unselected. Reports use test/reports/e31-perf-followup-*.
xattr real-filesystem behavior, examples, and rootless container launcher Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2 Required rootless package suite passes with race detection directly and through the launcher with the pinned Moby profile; this is not Linux 7.0 or arm64 evidence. Namespace creation fails with EPERM and is not needed by these tests.
eventfd, timerfd, inotify, and socket poll-registration failure cleanup Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2; child-local seccomp loading permitted Required rootless package suites pass with race detection and no skips, including kernel-refused registration, nil-owner errors, and descriptor cleanup.
mount namespace operations and inotify unmount observation Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 0 inside a privileged rootless-Docker container; mapped user/mount namespaces and private tmpfs operations permitted All 40 cases pass with race detection and no skips through the configured container launcher, including Unmount then Ignored for the watched filesystem. The launcher ran from a disposable source copy because dependency refresh could not write the original vendor tree; source and dependency declarations matched.
inotify lifecycle, decoding, examples, and actual queue overflow Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2 Required rootless package suite passes directly with race detection and no skips; decoder fuzzing also passes. Namespace creation fails with EPERM and is not needed by these tests.
fanotify decoder and resource cleanup Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2; Docker daemon is rootless Parser/ABI cleanup and invalid-input tests run with race detection, and decoder fuzzing passes; selected live fixtures fail for missing CAP_SYS_ADMIN. This is not notification or permission-operation evidence.
fanotify notifications, permissions, and iterator cleanup Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Direct host run as UID 0 with initial-user-namespace CAP_SYS_ADMIN, NoNewPrivs=0, seccomp mode 0; private mount namespaces available The contributor-run sudo env "PATH=$PATH" make verify-fanotify arch=amd64 passes all 45 cases with race detection and no skips, confirmed in retained JSON/JUnit reports. Both iterator break and panic scenarios pass, verifying borrowed-event closure, descriptor cleanup, unread-event draining, and exactly one terminal deadline error. Reports are preserved as test/reports/fanotify-*. Both notification and content groups return no owner and os.ErrNoDeadline without retaining a descriptor when the kernel rejects poll registration. The shared filter helper’s eventfd/timerfd/inotify/socket regression suite passes all 294 cases with race detection and no skips.
socket message I/O, ancillary ownership, and polling Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2 Required rootless package suite passes with race detection and no skips, including binary abstract Unix names/replies, Unix datagram/seqpacket pairs, Netlink transport/options/membership, descriptor passing and truncation, credentials, deadlines, concurrent close, and descriptor-exhaustion cleanup.
netlink framing, discovery, request exchanges, and isolated kernel fixtures Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 Ordinary suite: UID 1000, no effective/bounding capabilities, NoNewPrivs=1, seccomp mode 2. Isolated suite: UID 0 inside a privileged rootless-Docker container, private user/network namespaces available. The required isolated suite passes all 99 cases with race detection and no skips through verify-netlink-container using the configured Go image and a writable disposable source copy. Coverage includes multicast, ACK-before-DONE ordering, interrupted-dump draining/reuse, receive-queue ENOBUFS, malformed framing, response mismatches, timeouts, and setup failure cleanup. Ordinary-user runs skip the six unselected isolated fixtures. All four parser fuzz targets pass. The direct agent-shell namespace probe still fails with EPERM; Linux 7.0 amd64/arm64 evidence belongs to CI, with remaining source-reviewed paths tracked under R01.
netlink/route listing, typed mutations, and notifications Go 1.27.4 / 7.3.6-1-t2-resolute / native amd64 UID 0 inside a privileged rootless Docker container with private user/network namespace children. verify-netlink-container passes all 313 cases across both Netlink packages with race detection and no skips. In addition to link, address, route, and notification coverage, it verifies UDP forwarding through a bridge to a moved veth peer, membership changes, partial failures, paired deletion, and cleanup on namespace destruction. Reports use test/reports/e17-netlink-*.
netlink/route neighbor cache and policy-rule operations Go 1.27.4 / 7.3.6-1-t2-resolute / native amd64 Privileged rootless Docker container with private user/network namespace children. The combined required Netlink run verifies IPv4 and IPv6 neighbor lifecycle, replacement and removal through independent kernel queries, and rule selection between private tables.
netlink/route lookup, inline multipath, and nexthop objects Go 1.27.4 / 7.3.6-1-t2-resolute / native amd64 Privileged rootless Docker container with private user/network namespace children. The combined required Netlink run verifies resolved and installed route identities, IPv4 and IPv6 weighted paths, partial IPv6 deletion, and changes to shared nexthop objects and their dependent routes.
namespace handles, thread transitions, and child inheritance Go 1.27.4 / 7.3.4-3-t2-resolute / native amd64 UID 0 inside privileged rootless Docker with mapped user-namespace children; initial NoNewPrivs=0 and seccomp mode 0. The configured image’s verify-namespace-container run passes all 59 namespace cases with race detection and no namespace skips; the separate Landlock device-node prerequisite gap is recorded above. The latest run uses the current checkout. Coverage includes all eight handle types, supported creation/entry, user/PID hierarchy, ownership, child membership, first-child PID 1 startup, thread restrictions/teardown, refused transitions, FIFO rejection, descriptor exhaustion, and panic cleanup.