Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
17c9396
feat(fspy): replace Linux LD_PRELOAD and seccomp_unotify with freesta…
wan9chi Nov 27, 2026
0adff27
fix(fspy): address CI failures and vfork slot reclamation review
wan9chi Nov 27, 2026
6dbc340
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
ccd3078
test(e2e): run the vitest browser case with Chromium's sandbox on
wan9chi Nov 27, 2026
07a85d6
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
f0cbde2
refactor(fspy_preload_linux): borrow user path strings directly and r…
wan9chi Nov 27, 2026
a187c05
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
74820e9
refactor(fspy): simplify exec scratch, argv copy, and launcher materi…
wan9chi Nov 27, 2026
09f80f1
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
21ff4b6
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
f624e33
fix(fspy): hand off the validated exec fd, report unresolvable paths,…
wan9chi Nov 27, 2026
978bce3
revert(fspy_preload_linux): drop the loss report for unnameable relat…
wan9chi Nov 27, 2026
dc6cabf
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
1533537
test(e2e): add pagefind_cache fixture covering static-PIE ELF64 binaries
wan9chi Nov 27, 2026
ed8d0e2
fix(fspy): record AT_EXECVE_CHECK path lookups and set up error pipe …
wan9chi Nov 27, 2026
14bd0ec
test(fspy): keep `sh` basename in long-shebang test for BusyBox /bin/sh
wan9chi Nov 27, 2026
93c4868
ci: install Bun runtime binary in Test (musl)
wan9chi Nov 27, 2026
6274157
fix(fspy): harden macOS preload interposers and expand Unix tests
wan9chi Nov 27, 2026
42c264f
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
14fb5ad
fix(fspy): harden Linux seccomp tracker, expand syscall tests, and ad…
wan9chi Nov 27, 2026
273fcf4
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
cb6e541
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
11c8d7c
fix(fspy): tighten kcmp error handling, preload rematerialize, and Ra…
wan9chi Nov 27, 2026
46421df
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
aac1eab
fix(fspy): propagate virtualized SIGSYS SIG_IGN across tracked execve
wan9chi Nov 27, 2026
79a6b87
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
19f4f32
test(fspy_shared_unix): open O_PATH fd directly via openat so musl Op…
wan9chi Nov 27, 2026
22e4869
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
74fe011
fix(fspy_preload_linux): probe kcmp directly so EPERM/ENOSYS arms set…
wan9chi Nov 27, 2026
dfb0355
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
c9a2fb4
fix(fspy): match kernel AT_EXECFN, document 0111 limit, and make macO…
wan9chi Nov 27, 2026
a59cade
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 27, 2026
1ec1eb4
fix(fspy): handle nested fspy fallback, creat, AT_FDCWD empty execvea…
wan9chi Nov 27, 2026
6709cc8
fix(fspy): handle restricted process_vm_readv in nested probe and cla…
wan9chi Nov 27, 2026
1028ac0
fix(fspy): handle unresolvable macOS spawn fchdir, re-probe kcmp, and…
wan9chi Nov 27, 2026
193adaf
refactor(fspy): remove Linux-only nested fspy probe from #1029
wan9chi Nov 28, 2026
119b67a
fix(fspy_preload_macos): initialize spawn chdir atfork handler in ctor
wan9chi Nov 28, 2026
8cde1a2
ci(benchmark): clean freestanding Linux artifact targets after baseli…
wan9chi Nov 28, 2026
065707d
Merge remote-tracking branch 'origin/main' into fspy-linux/4-linux-el…
wan9chi Nov 28, 2026
415f56c
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
85e8dd8
test(fspy): synchronize script writes against spawns in shebang tests…
wan9chi Nov 28, 2026
a84af10
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
fab0d70
fix(fspy_elf_loader): let signals interrupt a blocking creat replay
wan9chi Nov 28, 2026
6c335ec
docs(fspy_elf_loader): document exec and SIGSYS virtualization limits
wan9chi Nov 28, 2026
9132ac5
fix(fspy_shared_unix): fail execveat of a script through a close-on-e…
wan9chi Nov 28, 2026
9359e1e
docs(fspy_elf_loader): document auxv, shared FD table, and async SIGS…
wan9chi Nov 28, 2026
3f8e408
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
53e78e2
fix(fspy): keep argv writes visible and run top-level /proc/self/exe …
wan9chi Nov 28, 2026
25d208a
test(fspy): assert ELIBBAD for a top-level spawn with a text PT_INTERP
wan9chi Nov 28, 2026
f75814d
fix(fspy_preload_macos): keep spawn chdir across reallocating file-ac…
wan9chi Nov 28, 2026
82d69d8
fix(fspy_shared_unix): parse macOS shebang lines like XNU
wan9chi Nov 28, 2026
ef89449
docs(fspy_elf_loader): document fd-relative programs, copied argv, an…
wan9chi Nov 28, 2026
421c3fc
style(fspy): use map_or_else for the exe-link fallback
wan9chi Nov 28, 2026
d5efc66
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
664daf9
fix(fspy): close round of Linux launcher fidelity gaps
wan9chi Nov 28, 2026
1e614ec
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
995d8ff
fix(fspy_preload_macos): retry PATH candidates and keep execvp's shel…
wan9chi Nov 28, 2026
32ab914
docs(fspy_elf_loader): document masked replay, exe-link aliases, and …
wan9chi Nov 28, 2026
c4ac36e
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
b138868
fix(fspy_elf_loader_test_launcher): read path arguments with user_path
wan9chi Nov 28, 2026
a08f942
fix(fspy): report a lost access when an exec path can't be resolved
wan9chi Nov 28, 2026
4c54cf5
docs(fspy_elf_loader): document masked waits swallowing EINTR after d…
wan9chi Nov 28, 2026
a95bf87
Merge branch 'fspy-linux/3-elf-loader-sigsys' into fspy-linux/4-linux…
wan9chi Nov 28, 2026
946c8d3
revert(fspy): drop creat replay, CLOEXEC-dirfd script, and ELIBBAD sp…
wan9chi Nov 28, 2026
12d3813
revert(fspy): drop low-ROI exec, shebang, and environ fidelity changes
wan9chi Nov 28, 2026
427844a
fix(fspy): report lost accesses from a deleted cwd and on macOS
wan9chi Nov 28, 2026
90d9b94
docs(fspy_elf_loader): document descriptor-slot and virtual SIGSYS ta…
wan9chi Nov 28, 2026
ce31173
docs(fspy): point stale user_cstr references at user_path
wan9chi Nov 28, 2026
85d2e65
fix(fspy): don't report sandbox-denied path lookups as lost
wan9chi Nov 28, 2026
bfee1ea
fix(fspy): don't report unresolvable paths as lost after a chroot
wan9chi Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 45 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
# --locked: verify Cargo.lock is up to date (replaces the removed `cargo check --locked`)
- run: cargo clippy --locked --all-targets --all-features -- -D warnings
- run: |
cargo clippy --locked -p fspy_elf_loader -p fspy_elf_loader_test_launcher --target x86_64-unknown-none -- -D warnings
cargo clippy --locked -p fspy_elf_loader -p fspy_elf_loader_test_launcher --target aarch64-unknown-none-softfloat -- -D warnings
cargo clippy --locked -p fspy_elf_loader -p fspy_elf_loader_test_launcher -p fspy_preload_linux --target x86_64-unknown-none -- -D warnings
cargo clippy --locked -p fspy_elf_loader -p fspy_elf_loader_test_launcher -p fspy_preload_linux --target aarch64-unknown-none-softfloat -- -D warnings

# fspy builds only on Windows, macOS, and Linux, but vp must still build
# without it on other platforms. Cross-building `vt_bin` for FreeBSD catches
Expand Down Expand Up @@ -156,6 +156,10 @@ jobs:
if: ${{ env.TEST_TARGET == 'x86_64-unknown-linux-gnu' }}
run: $TEST_CARGO_CMD test --release -p fspy_elf_loader_tests --target $TEST_BUILD_TARGET

- name: Run fspy hardening tests (release)
if: ${{ env.TEST_TARGET == 'x86_64-unknown-linux-gnu' }}
run: $TEST_CARGO_CMD test --release -p fspy --test linux_hardening --test linux_syscalls --test untracked_fallback --target $TEST_BUILD_TARGET

# x86_64-apple-darwin runs on arm64 runner under Rosetta; install x64 Node
# so fspy's x86_64 preload dylib can be injected into spawned node procs.
- uses: oxc-project/setup-node@f46a72f95efdc55273fcd042d61c84e723b2892c # v1.4.1
Expand Down Expand Up @@ -388,11 +392,49 @@ jobs:
- name: Run ELF loader tests (release)
run: cargo test --release -p fspy_elf_loader_tests

- name: Run fspy hardening tests (release)
run: cargo test --release -p fspy --test linux_hardening --test linux_syscalls --test untracked_fallback

- uses: oxc-project/setup-node@f46a72f95efdc55273fcd042d61c84e723b2892c # v1.4.1

# Run only Bun's postinstall on musl (`deno` and `workerd` do not ship
# musl binaries and their tests are filtered out on `target_env = "musl"`).
- name: Install Bun runtime binary
run: pnpm --filter vite-task-tools rebuild bun

- name: Run ignored tests
run: cargo test -- --ignored

test-linux-arm64:
needs: detect-changes
if: needs.detect-changes.outputs.code-changed == 'true'
name: Test (linux-arm64)
runs-on: ubuntu-24.04-arm
steps:
- uses: taiki-e/checkout-action@7d1e50e93dc4fb3bba58f85018fadf77898aee8b # v1.4.2

- name: Update submodules
run: git submodule update --init --recursive

- uses: oxc-project/setup-rust@3d6fb132fbe7cdcb66bf8ec193911c2945369d12 # v1.0.17
with:
save-cache: ${{ github.ref_name == 'main' }}
cache-key: test-linux-arm64

- run: rustup target add aarch64-unknown-linux-musl aarch64-unknown-none-softfloat

- name: Run ELF loader tests (debug)
run: cargo test -p fspy_elf_loader -p fspy_elf_loader_tests

- name: Run ELF loader tests (release)
run: cargo test --release -p fspy_elf_loader -p fspy_elf_loader_tests

- name: Run fspy tests (debug)
run: cargo test -p fspy

- name: Run fspy hardening tests (release)
run: cargo test --release -p fspy --test linux_hardening --test linux_syscalls --test untracked_fallback

fmt:
name: Format and Check Deps
runs-on: namespace-profile-linux-x64-default
Expand Down Expand Up @@ -440,6 +482,7 @@ jobs:
- clippy
- build-freebsd
- test
- test-linux-arm64
- test-macos-x64
- test-musl
- build-windows-tests
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/fspy-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,14 @@ jobs:
[[ "$RUNNER_OS" == "Windows" ]] && exe=.exe
cp "$CARGO_TARGET_DIR/release/fspy_benchmark_launcher$exe" "$RUNNER_TEMP/fspy-base-launcher$exe"
# A baseline worktree created after the head can leave newer
# workspace artifacts that Cargo considers fresh for the head.
# workspace artifacts that Cargo considers fresh for the head,
# including cross-target artifact dependencies like fspy_preload_linux.
cargo clean --release --workspace
for target in x86_64-unknown-none aarch64-unknown-none-softfloat; do
if [[ -d "$CARGO_TARGET_DIR/$target" ]]; then
cargo clean --release --workspace --target "$target"
fi
done

- name: Run benchmark
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

- **Changed** On Linux, automatic file-access tracking now uses an in-process ELF launcher and `SIGSYS` syscall tracker instead of `LD_PRELOAD` and `seccomp_unotify`, unifying tracking across glibc, musl, static binaries, and direct-syscall runtimes such as Bun. Tracked Linux processes run with `no_new_privs`, fall back from `io_uring` to standard filesystem syscalls, and require native ELF64 executables ([#1026](https://github.com/voidzero-dev/vite-task/pull/1026), [#1027](https://github.com/voidzero-dev/vite-task/pull/1027), [#1028](https://github.com/voidzero-dev/vite-task/pull/1028), [#1029](https://github.com/voidzero-dev/vite-task/pull/1029)).
- **Fixed** Remote cache operations now cap concurrent uploads to 4 per endpoint, use pooled HTTP/1.1 connections instead of multiplexing all reads and uploads over one HTTP/2 connection, retry transient `5xx`/`429`/`408` and network failures with jittered backoff, and back off briefly during sustained endpoint outages, preventing `503` upload bursts and Windows connection-reset drops ([#1016](https://github.com/voidzero-dev/vite-task/pull/1016)).
- **Fixed** Tasks that list `node_modules`, the workspace root, or `node_modules/.vite` no longer miss the cache when pnpm's `node_modules/.pnpm-workspace-state-*.json`, Vite's `node_modules/.vite-temp`, the workspace root's `.git`, or the task cache directory appear or disappear. Direct accesses to `node_modules/.vite-temp` and `.DS_Store` are now skipped as well, so they are neither tracked as inputs nor archived as outputs ([#1014](https://github.com/voidzero-dev/vite-task/pull/1014)).
- **Fixed** When a command handler sets a working directory for a command it generates, `vp run` now runs that command in the selected directory and includes the directory in its cache fingerprint ([#1005](https://github.com/voidzero-dev/vite-task/pull/1005)).
Expand Down
110 changes: 27 additions & 83 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 4 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ allocator-api2 = { version = "0.2", default-features = false }
anstream = "1.0.0"
anyhow = "1.0.103"
assert2 = "0.4.0"
assertables = "10.0.0"
async-trait = "0.1.89"
base64 = "0.22.1"
base64 = { version = "0.22.1", default-features = false }
bytes = "1.11.1"
url = "2.5.8"
wincode = { version = "0.6.0", default-features = false, features = ["alloc"] }
Expand Down Expand Up @@ -80,11 +79,10 @@ flate2 = "1.0.35"
fspy = { path = "crates/fspy" }
fspy_benchmark_launcher = { path = "crates/fspy_benchmark_launcher", artifact = "bin" }
fspy_benchmark_target = { path = "crates/fspy_benchmark_target", artifact = "bin" }
fspy_client_unix = { path = "crates/fspy_client_unix" }
fspy_detours_sys = { path = "crates/fspy_detours_sys" }
fspy_preload_unix = { path = "crates/fspy_preload_unix", artifact = "cdylib" }
fspy_elf_loader = { path = "crates/fspy_elf_loader" }
fspy_preload_macos = { path = "crates/fspy_preload_macos", artifact = "cdylib" }
fspy_preload_windows = { path = "crates/fspy_preload_windows", artifact = "cdylib" }
fspy_seccomp_unotify = { path = "crates/fspy_seccomp_unotify" }
fspy_shm = { path = "crates/fspy_shm" }
fspy_shared = { path = "crates/fspy_shared" }
fspy_shared_unix = { path = "crates/fspy_shared_unix" }
Expand All @@ -93,12 +91,10 @@ futures-util = "0.3.31"
globset = "0.4.18"
getrandom = "0.4.2"
hashbrown = { version = "0.16.1", default-features = false, features = ["inline-more"] }
itoa = "1.0.17"
jsonc-parser = "0.32.0"
libc = "0.2.185"
linux-raw-sys = { version = "0.12", default-features = false }
libtest-mimic = "0.8.2"
memmap2 = "0.9.11"
monostate = "1.0.2"
napi = "3"
napi-build = "2"
Expand All @@ -111,7 +107,6 @@ once_cell = "1.19"
os_str_bytes = "7.1.1"
ouroboros = "0.18.5"
owo-colors = "4.1.0"
passfd = { git = "https://github.com/polachok/passfd", rev = "d55881752c16aced1a49a75f9c428d38d3767213", default-features = false }
notify = "8.0.0"
path-clean = "1.0.1"
pathdiff = "0.2.3"
Expand All @@ -130,8 +125,6 @@ rusqlite = "0.41.0"
rustc-hash = "2.1.1"
rustls = { version = "0.23.44", default-features = false }
schemars = "1.2.3"
# SeccompAction::UserNotif (SECCOMP_RET_USER_NOTIF) was added after the latest published release (v0.5.0)
seccompiler = { git = "https://github.com/rust-vmm/seccompiler", rev = "08587106340b8e3cb361c7561411510039436857" }
serde = "1.0.219"
serde-untagged = "0.1.9"
serde_bytes = "0.11.19"
Expand Down Expand Up @@ -200,12 +193,11 @@ xxhash-rust = "0.8.15"
ntest = "0.9.5"
terminal_size = "0.4"
zstd = "0.14"
fspy_elf_loader = { path = "crates/fspy_elf_loader" }

[workspace.metadata.cargo-shear]
ignored = [
# These are artifact dependencies. They are not directly `use`d in Rust code.
"fspy_preload_unix",
"fspy_preload_macos",
"fspy_preload_windows",
"vt_client_napi",
]
Expand Down
Loading
Loading