Skip to content

Fix sentry panic during path resolution from unlinked directories in tmpfs.#13294

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl921630834
Open

Fix sentry panic during path resolution from unlinked directories in tmpfs.#13294
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl921630834

Conversation

@copybara-service
Copy link
Copy Markdown

Fix sentry panic during path resolution from unlinked directories in tmpfs.

In tmpfs, child directories did not hold a reference to their parents. If a
directory was unlinked but kept alive, for example, cwd, its parent
could also be unlinked and have its refcount drop to 0 and destroyed.

When the process in the child directory subsequently tried
to cd .., it resolved to the parent dir and called IncRef on it. Since
the parent directory was already destroyed, this triggered the
"non-positive count" panic.

Assisted-by: jetski

…tmpfs.

In tmpfs, child directories did not hold a reference to their parents. If a
directory was unlinked but kept alive, for example, cwd, its parent
could also be unlinked and have its refcount drop to 0 and destroyed.

When the process in the child directory subsequently tried
to `cd ..`, it resolved to the parent dir and called `IncRef` on it. Since
the parent directory was already destroyed, this triggered the
"non-positive count" panic.

Assisted-by: jetski
PiperOrigin-RevId: 921630834
@copybara-service copybara-service Bot added the exported Issue was exported automatically label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant