Repository navigation
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
fspy benchmarklinuxmacoswindows |
…nding ELF/SIGSYS tracker Switch Linux file-access tracking from `LD_PRELOAD` + `seccomp_unotify` to the freestanding `target_os = "none"` ELF launcher + `SIGSYS` backend (`fspy_preload_linux`), unify Unix exec/shebang resolution in `no_std` `fspy_shared_unix`, simplify macOS into `fspy_preload_macos`, and add Linux hardening and JS ecosystem E2E cache tests: - `fspy_shared_unix`: rewrite exec/shebang/path resolution to `#![no_std]` shared across `fspy_preload_linux` and `fspy_preload_macos`, with unit tests for Linux, macOS, and `nostd_exec`. - `fspy_preload_linux`: freestanding bare-metal ELF/`SIGSYS` launcher binary built for `x86_64-unknown-none` and `aarch64-unknown-none-softfloat` (checked in CI). - `fspy_preload_macos`: macOS-only `cdylib` replacing `fspy_preload_unix` and `fspy_client_unix`; remove `fspy_seccomp_unotify`. - `fspy`: split `src/unix/` into `src/linux/` and `src/macos/`, add `tests/linux_hardening.rs` and update `tests/untracked_fallback.rs` and existing suites. - `vt_bin`: update `preexisting_ld_preload` snapshot and add 10 JS ecosystem E2E cache fixtures (`biome`, `deno`, `esbuild`, `miniflare`, `oxfmt`, `rspack`, `sass-embedded`, `sharp`, `tailwindcss-v4`, `tsx`). - `CHANGELOG.md`: add user-facing entry referencing all 4 PRs in the stack. Co-authored-by: Gemini 4 Neon <noreply@google.com>
Co-authored-by: Gemini 4 Neon <noreply@google.com>
e620865 to
0adff27
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0adff27. Configure here.
| } | ||
| joined.extend_from_slice(raw); | ||
| send_path(mode, BStr::new(&joined)); | ||
| } |
There was a problem hiding this comment.
Missed relative accesses look complete
High Severity
When resolving a relative path or fd for a trapped filesystem syscall fails (fd_path returning None or an error, or a join allocation failing), the interceptor records nothing and still replays the syscall. The kernel can succeed, but the run is still reported as a complete trace, so cache can hit with missing inputs.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 0adff27. Configure here.


Motivation
On Linux,
fspypreviously maintained two separate tracking backends:LD_PRELOADfor dynamically linked glibc binaries andseccomp_unotifyfor static/musl binaries, leaving gaps for direct-syscall runtimes (such as Bun), preexistingLD_PRELOADinterference, and out-of-process supervisor complexity. Switching Linux to a single freestandingtarget_os = "none"ELF/SIGSYSlauncher (fspy_preload_linux) unifies tracking across glibc, musl, static binaries, and direct-syscall runtimes, eliminatesseccomp_unotify, and shares#![no_std]Unix exec/shebang resolution with macOS.Changes
fspy_shared_unix: rewrite Unix exec/shebang/path resolution to#![no_std]shared byfspy_preload_linuxandfspy_preload_macos, with unit tests.fspy_preload_linux: add freestanding bare-metal ELF/SIGSYSlauncher binary forx86_64-unknown-noneandaarch64-unknown-none-softfloat(checked in.github/workflows/ci.yml).fspy_preload_macos: replacefspy_preload_unixandfspy_client_unixwith a macOS-onlycdylib, and removefspy_seccomp_unotify.fspy: splitsrc/unix/intosrc/linux/andsrc/macos/, addtests/linux_hardening.rs, and updatetests/untracked_fallback.rsand existing suites.vt_bin: updatepreexisting_ld_preloadsnapshot and add 10 JS ecosystem E2E cache fixtures (biome,deno,esbuild,miniflare,oxfmt,rspack,sass-embedded,sharp,tailwindcss-v4,tsx).CHANGELOG.md: add user-facing changelog entry referencing PRs feat(fspy_nostd): add Unix filesystem, I/O, and path-resolution primitives #1026–feat(fspy): replace Linux LD_PRELOAD and seccomp_unotify with freestanding ELF/SIGSYS tracker #1029.Stack created with GitHub Stacks CLI • Give Feedback 💬
Note
High Risk
This rewrites how tracked processes are spawned on Linux (seccomp, exec chaining, and cache correctness when tracking is incomplete), which is security- and correctness-critical for task caching.
Overview
Replaces Linux automatic file-access tracking that split
LD_PRELOAD(glibc) andseccomp_unotify(static/musl/direct syscalls) with a unified in-process path:fspymaterializes and execs the freestandingfspy_preload_linuxlauncher, which loads targets viafspy_elf_loaderand records filesystem activity through aSIGSYS/SECCOMP_RET_TRAPfilter into the existing IPC channel. Childexecve/execveatcalls are chained through the same launcher; when seccomp or launcher setup is unavailable, spawn falls back to untracked execution andTrackingIncomplete.The Unix stack is split by OS: new
src/linux/andsrc/macos/replacesrc/unix/;fspy_preload_macos(renamed fromfspy_preload_unix) keeps dyld interposition, whilefspy_client_unix,fspy_seccomp_unotify, and related workspace deps are removed. CI cross-clippy now includesfspy_preload_linux; tests addlinux_hardening.rs, broaden Bun/static/shebang coverage, and rework untracked-fallback assertions for the new bootstrap model.Reviewed by Cursor Bugbot for commit 0adff27. Bugbot is set up for automated code reviews on this repo. Configure here.