#3756·youki

[Bug]: youki accepts duplicate RLIMIT_NOFILE entries and starts the container

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

Bug Description

With an OCI 1.3.0 bundle containing two process.rlimits entries for RLIMIT_NOFILE, youki successfully creates and starts the container. The reduced probe actually runs and observes soft=48, hard=64 for the conflicting pair (32/64 followed by 48/64). Identical entries (32/64 twice) are also accepted. Each single-entry control succeeds.

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-rlimits, then run:

bash
cd youki-duplicate-rlimits
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.

Each pair uses the recorded candidate configuration and its deduplicated control. Only the rlimit list differs within each pair. The small static probe uses getrlimit(RLIMIT_NOFILE) and writes an atomic observation before waiting 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-rlimits-reproducer.tar.gz