Skip to content

tests: Remove LD_PRELOAD from nfs-removal-race.sh - #153

Closed
oech3 wants to merge 1 commit into
coreutils:masterfrom
oech3:patch-1
Closed

oech3 wants to merge 1 commit into
coreutils:masterfrom
oech3:patch-1

Conversation

@oech3

@oech3 oech3 commented Dec 28, 2025 •

Copy link
Copy Markdown
Contributor

@pixelb

pixelb commented Dec 28, 2025

Copy link
Copy Markdown
Member

We'd have to check I think that strace inject was supported.
In general this is much the same as LD_PRELOAD, as you're making an assumption as to which syscalls the implementation uses, so I need to think a bit about this

@oech3

oech3 commented Dec 28, 2025

Copy link
Copy Markdown
Contributor Author

Also for static binaries

@pixelb

pixelb commented Dec 28, 2025

Copy link
Copy Markdown
Member

Also for static binaries

Right. I suppose we could:

if !strace ..inject; then
  use strace
else
  try_LD_PRELOAD
fi

@oech3

oech3 commented Dec 28, 2025 •

Copy link
Copy Markdown
Contributor Author

Just grepping injected syscalls and skip if failed?
I think there is no reason to keep both.

@oech3

oech3 commented Dec 29, 2025

Copy link
Copy Markdown
Contributor Author

Fair name: cp-mininal-syscalls.sh.

@pixelb

pixelb commented Jan 1, 2026

Copy link
Copy Markdown
Member

I think strace...inject...when is a bit brittle.
LD_PRELOAD is implicitly tied to the implementation, and we can check that with witness files.
So closing this alternative for now

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.

2 participants