Skip to content

fix(fspy): prevent recursive access handling#540

Merged
wan9chi merged 1 commit into
mainfrom
fix/fspy-handle-open-reentrancy
Jul 13, 2026
Merged

fix(fspy): prevent recursive access handling#540
wan9chi merged 1 commit into
mainfrom
fix/fspy-handle-open-reentrancy

Conversation

@wan9chi

@wan9chi wan9chi commented Jul 13, 2026

Copy link
Copy Markdown
Member

Motivation

File-access handling can call another interposed function while resolving or reporting a path. Without a same-thread re-entry guard, nested bookkeeping can recurse until the process stack overflows. This change suppresses only nested handling on the current thread, while accesses from other threads continue to be recorded.

wan9chi commented Jul 13, 2026

Copy link
Copy Markdown
Member Author

@wan9chi wan9chi marked this pull request as ready for review July 13, 2026 04:36

wan9chi commented Jul 13, 2026

Copy link
Copy Markdown
Member Author

Merge activity

  • Jul 13, 4:40 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 13, 4:41 AM UTC: Graphite rebased this pull request as part of a merge.
  • Jul 13, 4:44 AM UTC: @wan9chi merged this pull request with Graphite.

Co-authored-by: GPT-5 Codex <codex@openai.com>
@wan9chi wan9chi force-pushed the fix/fspy-handle-open-reentrancy branch from 77c69e4 to 70259db Compare July 13, 2026 04:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 77c69e46e3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/fspy_preload_unix/src/client/mod.rs
@wan9chi wan9chi merged commit c844cf0 into main Jul 13, 2026
16 checks passed
@wan9chi wan9chi deleted the fix/fspy-handle-open-reentrancy branch July 13, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant