Repository navigation
🐛 fix(identity): limit PID probe to Linux - #1036
Merged
gaborbernat merged 5 commits intoNov 20, 2026
Merged
Conversation
The PID-namespace tests now skip on Windows, so their bodies need the same platform coverage mark used by adjacent tests. A foreign-marker case covers the retry helper's exhausted path and checks acquisition after an explicit break.
gaborbernat
marked this pull request as draft
November 20, 2026 15:32
gaborbernat
marked this pull request as ready for review
November 20, 2026 17:33
gaborbernat
marked this pull request as draft
November 20, 2026 20:22
gaborbernat
marked this pull request as ready for review
November 20, 2026 20:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Windows,
host_name()probed a Linux path that Windows resolved on the current drive. A local account able to create that path could change the hostname recorded in a soft-lock marker; after the holder exited and the path changed,owner_is_stale()treated the dead marker as foreign and left a private lock busy. The namespace probe now runs only on Linux and Android. This addresses draft advisory ANT-2026-K9PQD1EN.Windows path resolution changes lock identity
Python's Windows path rules resolve a rooted path on the current drive. The old probe therefore read a drive-root entry on Windows and could append its inode to the hostname. The platform guard keeps the PID namespace suffix on Linux and Android, where it distinguishes containers sharing a hostname, and leaves other platforms with the escaped kernel hostname.
Behavior changes
Windows soft-lock markers use the same host identity regardless of drive-root entries, so a dead local owner can be checked for recovery. Linux and Android still distinguish PID namespaces. A marker written with a changed host under an affected version remains foreign to a corrected reader; an operator must verify that its owner has exited before using
break_lock().Reported by OSS Scanner: ANT-2026-K9PQD1EN.