#13362·gvisor

Missing systrap system call patching on ARM64

Author: lyphyserCreated Jun 4, 2026Updated Sep 16, 2026
Labelstype: enhancement

Description

It seems that system call patching is not implemented on ARM64, despite the fact that it should be easy since all instructions are 32-bit.

Do you have a specific solution in mind?

The B instruction can be used to provide a 26-bit relative jump, which should hopefully be enough to find free memory in most cases (e.g. libc.so on my system is 2MB and should either be loaded first with free space before or randomized with free space around).