Files
DroidDeck/tools/linuxfs/preload
MaxsTechReviewandKurt Himebauch 7630173b24 fix(ddsession): keep path and status buffers off the wrapper fast path (#3071)
dd_descriptor_unlink, dd_descriptor_rmdir and dd_descriptor_rename put
one or two PATH_MAX buffers on their own frame (12 KB, 24 KB), and
dd_status_without_tracer put its 16 KB status buffer there, even on the
common path that only calls through to libc. Threads with small stacks,
such as .NET or Wine threads near their guard page, could overflow in
an otherwise plain unlink, rename or open.

The wrappers now do only the cheap checks and call the real function;
the buffers live in noinline helpers that run only when the descriptor
store or the status rewrite is actually needed. A test compiles both
sources with -fstack-usage and keeps each wrapper frame under 1 KB.

Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
2026-11-24 17:19:24 -05:00
..
2026-11-17 23:31:26 -05:00
2026-11-17 23:31:26 -05:00
2026-10-13 21:27:42 -04:00
2026-11-17 23:31:26 -05:00
2026-10-13 21:27:42 -04:00
2026-11-17 23:31:26 -05:00
2026-11-17 23:31:26 -05:00