Skip to content

v0.9.31

Choose a tag to compare

@github-actions github-actions released this 08 Sep 23:13
· 1278 commits to main since this release
v0.9.31

kern exec now obeys the box's limits. It did not.

A command run through kern exec was placed in the caller's cgroup, outside the box's --memory and --pids-limit, and said nothing about it:

box PID 1                 .../kern.slice/kern-box-<tag>-<pid>    capped
the kern exec'd process   .../app.slice/app-<the caller>.scope   the caller's

Namespaces and seccomp always held; it is the resource cap that leaked, so a fork bomb or a memory hog started with kern exec ran without the ceiling the box was given. Upgrade if you use kern exec on a box with limits.

The placement has to happen before the namespaces are joined, and that costs an RCU grace period. The faster kern exec in v0.9.3 was faster because it was not applying the cap. Box start is unaffected.

Also in this release

  • a command killed by the box's memory cap now says why. It exited -9 with an empty screen.
  • a box whose registry record was lost stays visible. /run/user is swept by systemd-tmpfiles and cleared on logout; the box kept running while ps stopped showing it and kern stop could not reach it.
  • FROM <stage> builds an image that runs. It printed built and failed at kern box with "no layers in manifest".
  • COPY keeps directory modes. A 1777 /tmp or a 2755 setgid dir came out 0755.
  • compose reads folded command: lines that continue with - (--source, -drive, -netdev), and tmpfs: has one grammar again: --tmpfs /run:size=64m used to fail on the exact spelling kern compose produced.
  • kern build prune 0 refuses instead of silently keeping 20.
  • #8: every box mounts its own devpts, so forkpty(3)/openpty work in a detached box.

Known and unchanged

  • the resource caps have one witness. CI does not start boxes and the second reviewer's host has no cgroup delegation, so --memory/--pids-limit enforcement is verified on one machine.
  • the squash shared by FROM <stage> and push loses hard links and fills sparse files.
  • compose networks do not isolate services from each other: one stack is one namespace, and up says so.

Full detail in CHANGELOG.md.