Module wasmer_vm::probestack

source ·
Expand description

This section defines the PROBESTACK intrinsic which is used in the implementation of “stack probes” on certain platforms.

The purpose of a stack probe is to provide a static guarantee that if a thread has a guard page then a stack overflow is guaranteed to hit that guard page. If a function did not have a stack probe then there’s a risk of having a stack frame larger than the guard page, so a function call could skip over the guard page entirely and then later hit maybe the heap or another thread, possibly leading to security vulnerabilities such as The Stack Clash, for example.

Statics§

  • The probestack based on the Rust probestack

Functions§