vm: Detect stack underflow in addition to overflow.