Skip to content

Commit 1cea46d

Browse files
committed
runtime, internal/syscall/unix: mark getrandom vDSO as non-escaping
Updates #66779 Change-Id: Iaa3eda4309bb1e8c28136dd048479e7269f4c189
1 parent 1d0f5c4 commit 1cea46d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/internal/syscall/unix/getrandom.go

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
)
1414

1515
//go:linkname vgetrandom runtime.vgetrandom
16+
//go:noescape
1617
func vgetrandom(p []byte, flags uint32) (ret int, supported bool)
1718

1819
var getrandomUnsupported atomic.Bool

src/runtime/vgetrandom_linux.go

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"unsafe"
1212
)
1313

14+
//go:noescape
1415
func vgetrandom1(buf *byte, length uintptr, flags uint32, state uintptr, stateSize uintptr) int
1516

1617
var vgetrandomAlloc struct {

0 commit comments

Comments
 (0)