fix(verify): gate JIT verification to amd64 until trampolines are hardened
Test / vet (push) Successful in 48s
Test / test (push) Successful in 2m34s
Test / build (push) Successful in 41s

This commit is contained in:
2026-08-30 22:48:48 +02:00
parent 9cb1666b35
commit a5a59d6503
15 changed files with 206 additions and 30 deletions
+5 -6
View File
@@ -8,7 +8,6 @@ package verify
import (
"encoding/binary"
"fmt"
"reflect"
"syscall"
"unsafe"
)
@@ -23,12 +22,12 @@ func enterJIT(fn uintptr, stack uintptr)
//go:nosplit
func leaveJIT()
// leaveJITAddr is the machine address of leaveJIT.
var leaveJITAddr uintptr
// leaveJITAddr is the raw ABI0 address of leaveJIT, handed over by the
// GLOBL/DATA in trampoline_arm64.s (reflect would return the interposed
// ABIInternal wrapper instead).
var leaveRawAddr uintptr
func init() {
leaveJITAddr = reflect.ValueOf(leaveJIT).Pointer()
}
var leaveJITAddr = leaveRawAddr
const stackPad = 64