News for hackers. Stuff that matters.
Re:Viable ROP-free roadmap for i386/armv8/riscv64/alpha/sparc64 by titzer on Tuesday September 26, 2023 @01:01PM (#37662334)
We've discussed engine support for stack walking for application-level GC within linear memory, but there hasn't been a clear win (at least in my mind) over just using a shadow stack, which doesn't require walking frames, just scanning a memory segment. Opening up the contents of executing stack frames imposes a ton of constraints on the engine and complexity (e.g. engine now has to maintain mappings, support frame modification, etc), that have implications for basically all execution tiers. It doesn't seem like the right tradeoff to me.

I've implemented a shadow stack for Virgil, so I am aware of how much it sucks. But that doesn't suck as bad as coming up with a stack walking protocol and then modifying every Wasm engine in existence to support that.

Re:Viable ROP-free roadmap for i386/armv8/riscv64/alpha/sparc64 by circuit10 on Tuesday September 26, 2023 @05:09PM (#37665841)
Actually yes, it sounded good at first but it makes optimisation and determinism harder for the engines so it's probably better not to have it