Skip to content

fix: support libc interposition - #16383

Draft
xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:libc-interposition
Draft

xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:libc-interposition

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Context: #14946

@oech3

oech3 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Disagree. We should fix broken consumers instead. We don't have too many consumers.
Upstream of fakeroot is debian and it is still actively maintained.

- name: Run safe traversal verification
run: ./util/check-safe-traversal.sh

test_libc_interposition:

@oech3 oech3 Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would not delete this (or rewrite in Rust). The solution for this is not changing backend only.

@codspeed

codspeed Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will degrade performance by 57.47%

1 warning, 1 note

⚠️ 127 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

ℹ️ 1 benchmark has no flamegraph

The flamegraph wasn't generated: most of the time was spent in runtime internals, which would leave nothing useful to analyze.

See affected benchmarks

❌ 3 regressed benchmarks
✅ 412 untouched benchmarks
⏩ 70 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory socket_addrs_direct[100000] 8.6 KB 68 KB -87.29%
❌ Memory hostname_ip_lookup[100000] 100.9 KB 160.3 KB -37.06%
❌ CPU Simulation rm_recursive_tree 12.1 ms 12.6 ms -3.84%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing xtqqczze:libc-interposition (5d802c9) with main (887b9e6)2

Open in CodSpeed

Footnotes

  1. 70 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (9137846) during the generation of this report, so 887b9e6 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@xtqqczze
xtqqczze force-pushed the libc-interposition branch 2 times, most recently from f54059b to 54a2d4e Compare November 15, 2026 18:07
@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Skip an intermittent issue tests/misc/usage_vs_getopt (fails in this run but passes in the 'main' branch)

@xtqqczze

Copy link
Copy Markdown
Collaborator Author

@github-actions

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 155.51 MB (+128 KB, +0.08%)

Significant per-binary changes:
  env     1.20 MB ->    1.28 MB  (+80 KB, +6.51%)

@xtqqczze

Copy link
Copy Markdown
Collaborator Author

apparently there is a failure in test_touch_set_date_year_zero on 32 bit Linux with rustix/use-libc. Tracked by #16533.

@oech3

oech3 commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

The fact that consumers are relying on unstable API is not a valid reason to fix our properly implemented utils in particular for the case OS is providing proper APIs. I fthey are relying on side-effects essentially , we should fix then by side-effectonly. We should not explicitlyv support it. This should never be justified.

@xtqqczze
xtqqczze force-pushed the libc-interposition branch 5 times, most recently from 8cf10f8 to d6f5cab Compare November 26, 2026 18:46
@xtqqczze

Copy link
Copy Markdown
Collaborator Author

This branch has not been deployed

No deployments
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