Skip to content

core: containment classifies a zombie cgroup member as foreign #310

Closed

Description

@ElbertePlinio

Found in review of PR #307 (#299).

A cgroup member that is a zombie reads its environment as zero bytes, and its stat shows state Z. classifyCgroupEnvironment in packages/core/src/containment.ts then classifies it as "foreign" on both reads, so cleanup can refuse with "do not carry this session's containment token" naming a process that already exited. probeToken and probeCgroupIdentity treat state Z as gone. This predates #307, which keeps the same verdict for this case.

  • Treat a zombie member as gone in cgroup environment classification, consistent with the other probes
  • Keep refusals for live foreign and recycled members
  • Deterministic test with a real or simulated zombie member

Activity

  1. added
    bug
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions