summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/mm/metadata.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-17 11:18:11 -0700
committergVisor bot <gvisor-bot@google.com>2020-04-17 11:18:11 -0700
commit80deebb0bfde2a53c943deb8d8473239bb6de3eb (patch)
treecb0fcf46c624381778ea1e53b0d85192a6a11d86 /pkg/sentry/mm/metadata.go
parent12bde95635ac266aab8087b4705372bb177638f3 (diff)
parentbe415eedcb3d5f61ed9f6a90bba8df2ecd54d8c8 (diff)
Merge pull request #1978 from lubinszARM:pr_signal_mm
PiperOrigin-RevId: 307078788
Diffstat (limited to 'pkg/sentry/mm/metadata.go')
-rw-r--r--pkg/sentry/mm/metadata.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/sentry/mm/metadata.go b/pkg/sentry/mm/metadata.go
index 6a49334f4..28e5057f7 100644
--- a/pkg/sentry/mm/metadata.go
+++ b/pkg/sentry/mm/metadata.go
@@ -167,3 +167,17 @@ func (mm *MemoryManager) SetExecutable(file fsbridge.File) {
orig.DecRef()
}
}
+
+// VDSOSigReturn returns the address of vdso_sigreturn.
+func (mm *MemoryManager) VDSOSigReturn() uint64 {
+ mm.metadataMu.Lock()
+ defer mm.metadataMu.Unlock()
+ return mm.vdsoSigReturnAddr
+}
+
+// SetVDSOSigReturn sets the address of vdso_sigreturn.
+func (mm *MemoryManager) SetVDSOSigReturn(addr uint64) {
+ mm.metadataMu.Lock()
+ defer mm.metadataMu.Unlock()
+ mm.vdsoSigReturnAddr = addr
+}