#3757·youki

[Bug]: youki accepts duplicate IPC and UTS namespace entries during create

Author: RaShiShoCreated Sep 27, 2026Updated Oct 1, 2026
Labelskind/bug

Bug Description

An OCI 1.3.0 linux.namespaces array containing two entries with the same type is accepted by youki. This reproduces for both ipc and uts. A state query after create reports a created container with a process ID. Removing the duplicate in each paired control allows normal startup.

The tested source commit is 993a50ffb788be1a1a879f3446c10dd0c0b6a5a1. Current upstream HEAD and other host kernels have not been tested for this report.

Steps to Reproduce

Requirements: root on Linux, Python 3.10+, unshare, cc, static libc development files, and the indicated runtime. No external rootfs image is needed. Save every file in the Standalone reproducer files section into one directory named youki-duplicate-namespaces, then run:

bash
cd youki-duplicate-namespaces
sudo unshare --mount --propagation private \
  python3 reproduce.py \
    --runtime /absolute/path/to/youki \
    --output "$PWD/replay-1"

Use a fresh output directory. The script preserves configs and logs and cleans up only its randomly named containers in isolated runtime state roots. Its exit code reports evidence collection/control/cleanup success, not OCI conformance.

The IPC candidate appends a second {"type":"ipc"} to mount/pid/uts/ipc. The UTS candidate appends a second {"type":"uts"} instead. Each control uses the same bundle with that extra entry removed. Candidates stop at the create/state observation, then use force-delete only for cleanup.

Expectation

No response

System and Setup Info

Actual youki --version output:

youki version: 0.7.0
commit: 0.7.0-993a50ffb788be1a1a879f3446c10dd0c0b6a5a1
spec: 1.1.0
rustc: 1.96.0

Source commit: 993a50ffb788be1a1a879f3446c10dd0c0b6a5a1.

Host OS information

Ubuntu 24.04.1 LTS, x86_64, WSL2.

Host kernel information

6.6.114.1-microsoft-standard-WSL2

Additional Context

youki-duplicate-namespaces-reproducer.tar.gz