You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[macos] run: invalid --cpuset-cpus 3-1 is accepted (fail-open) #267
On macOS HVF (a3s-boxv3.2.5 / 2d5d7cb61c968d7f3dd852f42f48530066c3c03a), a3s-box run --cpuset-cpus 3-1 …succeeds (exit 0). The inverted range is stored on the box record instead of being rejected before workload start.
Upstream shim unit tests already treat parse_cpuset_spec("3-1") as an error, but the CLI/microvm admission path does not reject it.
Expected
Invalid cpuset specs (e.g. inverted range 3-1) are rejected with a non-zero exit before creating/starting a VM, with an error mentioning cpu/invalid/range, and no leftover box resources.
Actual
a3s-box run --rm --cpuset-cpus 3-1 alpine:3.20 -- true# → exit 0 (workload runs)
a3s-box run -d --name c --cpuset-cpus 3-1 alpine:3.20 -- sleep 30
a3s-box inspect c
# resource_limits.cpuset_cpus == "3-1"
Sandbox OCI validate_cpuset appears to only check character set (digits/,/-), not range order. macOS microvm path does not apply the stricter shim parser at CLI admission → fail-open.
Activity
fix(sandbox): match setpriv euid for owner peer auth; reject inverted…
ZhiXiao-Lin commentedon Sep 8, 2026
Fixed and verified on main via #264 (merge $merge). CI: https://github.com/A3S-Lab/Box/actions/runs/34246006559