Skip to content

[release/2.3] fix(cri): introspect OCI runtime features for non-runc runtimes - #13778

Merged
AkihiroSuda merged 1 commit into
containerd:release/2.3from
k8s-infra-cherrypick-robot:cherry-pick-13504-to-release/2.3
Jul 18, 2026
Merged

AkihiroSuda merged 1 commit into
containerd:release/2.3from
k8s-infra-cherrypick-robot:cherry-pick-13504-to-release/2.3

Conversation

@k8s-infra-cherrypick-robot

@k8s-infra-cherrypick-robot k8s-infra-cherrypick-robot commented Jul 12, 2026 •

Copy link
Copy Markdown

This is an automated cherry-pick of #13504

/assign AkihiroSuda

Enable OCI runtime feature introspection for non-runc runtimes in CRI

introspectRuntimeFeatures returned an error for any runtime type other
than io.containerd.runc.v2, so non-runc shims such as
containerd-shim-runsc-v1 never had their OCI features surfaced to the
CRI RuntimeHandlerFeatures, even though they implement the shim "-info"
command.

The runc-only guard worked around a nil-pointer panic when marshalling
nil runtime options. That case is already covered by the "if options !=
nil" check, making the guard redundant. Dropping it lets all runtimes be
introspected; shims that do not implement "-info" still fail gracefully
and are logged at debug level, so behavior for those is unchanged.

Guard against nil plugin info Extra, nil runtime Features, and nil
features.Linux before unmarshalling or evaluating CRI user namespace
support.

Signed-off-by: Amir Alavi <[email protected]>
Co-authored-by: Cursor <[email protected]>
@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 18, 2026
@AkihiroSuda
AkihiroSuda merged commit cbe7b15 into containerd:release/2.3 Jul 18, 2026
85 of 88 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 18, 2026
@samuelkarp samuelkarp added impact/changelog area/cri Container Runtime Interface (CRI) labels Aug 11, 2026
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
containerd 2.3.4

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>Welcome to the v2.3.4 release of containerd!

The fourth patch release for containerd 2.3 contains various fixes and updates.

### Highlights

#### Container Runtime Interface (CRI)

* Disable checkpoint restore in CreateContainer by default, requiring the enable_experimental_restore_via_create configuration option to enable ([#13913](containerd/containerd#13913))
* Set default runtimeFeatures.UserNamespacesHostNetwork to true in CRI ([#13914](containerd/containerd#13914))
* Deprecate checkpoint restore in CreateContainer ([#13868](containerd/containerd#13868))
* Support non-UTF-8 binary environment variable values in CRI ([#13454](containerd/containerd#13454))
* Enable OCI runtime feature introspection for non-runc runtimes in CRI ([#13778](containerd/containerd#13778))
* Disable checkpoint restore codepaths when CRIU is not installed and add enable_criu configuration option ([#13734](containerd/containerd#13734))
* Normalize sandbox image references in CRI to resolve images without domain prefixes ([#13759](containerd/containerd#13759))

#### Node Resource Interface (NRI)

* Emit deprecation warnings for plugins using deprecated NRI interfaces ([#13935](containerd/containerd#13935))

#### Runtime

* Enable log scrubbing by default on Windows ([#13904](containerd/containerd#13904))
* Fix memory leak in OOM watcher map when stopping container monitoring ([#13870](containerd/containerd#13870))
* Avoid orphaning shims on transient errors when loading process IDs ([#13857](containerd/containerd#13857))
* Fix corruption of binary protobuf shim start responses caused by premature whitespace trimming ([#13803](containerd/containerd#13803))

#### Snapshotters

* Fix EROFS snapshotter dropping lower layers stacked above merged filesystem metadata ([#13876](containerd/containerd#13876))

#### Breaking

* Disable checkpoint restore in CreateContainer by default, requiring the enable_experimental_restore_via_create configuration option to enable ([#13913](containerd/containerd#13913))

#### Deprecations

* Deprecate checkpoint restore in CreateContainer ([#13868](containerd/containerd#13868))

Please try out the release binaries and report any issues at
https://github.com/containerd/containerd/issues.

### Contributors

* Samuel Karp
* Maksym Pavlenko
* Mike Brown
* Akihiro Suda
* Derek McGowan
* Jordan Liggitt
* Paweł Gronowski
* Amir Alavi
* Andrew Halaney
* Bing Hongtao
* Chris Henzie
* Harshal Patel
* Krisztian Litkey
* Phil Estes
* Wei Fu
* ningmingxiao

### Changes
<details><summary>35 commits</summary>
<p>

  * [`c1f5360ef`](containerd/containerd@c1f5360) Prepare release notes for v2.3.4
* cri: disable restore in CreateContainer by default ([#13913](containerd/containerd#13913))
  * [`928c03c68`](containerd/containerd@928c03c) cri: disable restore in CreateContainer by default
* nri,deprecation: record and emit warnings for NRI deprecations. ([#13935](containerd/containerd#13935))
  * [`5966e2edb`](containerd/containerd@5966e2e) nri,deprecation: emit warnings for old NRI plugins.
* Set the default of runtimeFeatures.UserNamespacesHostNetwork to true ([#13914](containerd/containerd#13914))
  * [`ab52c58f1`](containerd/containerd@ab52c58) Set the default of runtimeFeatures.UserNamespacesHostNetwork to true
* Use ScrubLogs by default on Windows ([#13904](containerd/containerd#13904))
  * [`0c255158a`](containerd/containerd@0c25515) ctr: add --scrub-logs flag for Windows
  * [`1c2b13dc9`](containerd/containerd@1c2b13d) cri/config: use ScrubLogs by default on Windows
* snapshots/erofs: keep lowers stacked above a merged fsmeta ([#13876](containerd/containerd#13876))
  * [`0c511e068`](containerd/containerd@0c511e0) snapshots/erofs: keep lowers stacked above a merged fsmeta
* cri: deprecate restore in CreateContainer ([#13868](containerd/containerd#13868))
  * [`dc98141df`](containerd/containerd@dc98141) cri: deprecate restore in CreateContainer
* internal/oom: Fix memory leak by removing watcher from map on Stop ([#13870](containerd/containerd#13870))
  * [`537d82d54`](containerd/containerd@537d82d) internal/oom: Fix memory leak by removing watcher from map on Stop
* shim_load: Consider shim leaked only if we can't find pids ([#13857](containerd/containerd#13857))
  * [`decf97a9c`](containerd/containerd@decf97a) shim_load: Consider shim leaked only if we can't find pids
* core/runtime/v2: Drop checkpointctl module dependency ([#13840](containerd/containerd#13840))
  * [`796f07dc8`](containerd/containerd@796f07d) core/runtime/v2: Drop checkpointctl module dependency
* Handle []byte envvar value for CRI ([#13454](containerd/containerd#13454))
  * [`751fddddb`](containerd/containerd@751fddd) Handle []byte envvar value
  * [`0bce9060e`](containerd/containerd@0bce906) update to v0.36.x kubernetes dependencies
* fix(cri): introspect OCI runtime features for non-runc runtimes ([#13778](containerd/containerd#13778))
  * [`61a8f6f45`](containerd/containerd@61a8f6f) fix(cri): introspect OCI runtime features for non-runc runtimes
* core/runtime/v2: Preserve protobuf shim response bytes ([#13803](containerd/containerd#13803))
  * [`1d28017be`](containerd/containerd@1d28017) core/runtime/v2: Preserve protobuf shim response bytes
* Disable checkpoint restore codepath when CRIU is not installed ([#13734](containerd/containerd#13734))
  * [`374091d67`](containerd/containerd@374091d) github/workflows: install criu in node-e2e
  * [`db03e3968`](containerd/containerd@db03e39) cri: add enable_criu configuration option
  * [`dacd4c7d0`](containerd/containerd@dacd4c7) cri: validate CRIU availability and version early
* ci: bound Go fuzzing by execution count ([#13785](containerd/containerd#13785))
  * [`890a9c86c`](containerd/containerd@890a9c8) ci: bound Go fuzzing by execution count
* cri: auto-add prefix for pause image ([#13759](containerd/containerd#13759))
  * [`0b2f1d078`](containerd/containerd@0b2f1d0) cri: auto-add prefix for pause image
</p>
</details>

### Dependency Changes

* **k8s.io/api**                            v0.36.0 -> v0.36.3
* **k8s.io/apimachinery**                   v0.36.0 -> v0.36.3
* **k8s.io/client-go**                      v0.36.0 -> v0.36.3
* **k8s.io/component-base**                 v0.36.0 -> v0.36.3
* **k8s.io/cri-api**                        v0.36.0 -> v0.36.3
* **k8s.io/cri-client**                     v0.36.0 -> v0.36.3
* **k8s.io/cri-streaming**                  v0.36.0 -> v0.36.3
* **sigs.k8s.io/structured-merge-diff/v6**  v6.3.2 -> v6.3.3

Previous release can be found at [v2.3.3](https://github.com/containerd/containerd/releases/tag/v2.3.3)
### Which file should I download?
* `containerd-<VERSION>-<OS>-<ARCH>.tar.gz`:         ✅Recommended. Dynamically linked with glibc 2.35 (Ubuntu 22.04).
* `containerd-static-<VERSION>-<OS>-<ARCH>.tar.gz`:  Statically linked. Expected to be used on Linux distributions that do not use glibc >= 2.35. Not position-independent.

In addition to containerd, typically you will have to install [runc](https://github.com/opencontainers/runc/releases)
and [CNI plugins](https://github.com/containernetworking/plugins/releases) from their official sites too.

See also the [Getting Started](https://github.com/containerd/containerd/blob/main/docs/getting-started.md) documentation.
</pre>
  <p>View the full release notes at <a href="https://github.com/containerd/containerd/releases/tag/v2.3.4">https://github.com/containerd/containerd/releases/tag/v2.3.4</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!16411
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) impact/changelog size/L

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants