diff options
| author | Andrei Vagin <avagin@google.com> | 2024-07-04 00:55:08 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-07-08 06:39:50 +0000 |
| commit | 7ca8bbea5b1d25d89927d7b017d7f7da4ab226a7 (patch) | |
| tree | 4f36913f3a146462b82053e4a233fbce9069ffd9 /pkg/vminfo | |
| parent | eb4d8036c1b6035539881d798dd7e557b4a7d78f (diff) | |
vm/gvisor: add gvisor presubmit test
Download the latest gvisor release and run the syz-manager smoke-test
suite.
Signed-off-by: Andrei Vagin <avagin@google.com>
Diffstat (limited to 'pkg/vminfo')
| -rw-r--r-- | pkg/vminfo/linux.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/vminfo/linux.go b/pkg/vminfo/linux.go index 030b9a038..d6b83ef2f 100644 --- a/pkg/vminfo/linux.go +++ b/pkg/vminfo/linux.go @@ -34,6 +34,7 @@ func (linux) checkFiles() []string { "/proc/version", "/proc/filesystems", "/sys/kernel/security/lsm", + "/proc/sentry-meminfo", } } @@ -45,6 +46,11 @@ func (linux) machineInfos() []machineInfoFunc { } func (linux) parseModules(files filesystem) ([]*cover.KernelModule, error) { + _, err := files.ReadFile("/proc/sentry-meminfo") + if err == nil { + // This is gVisor. + return nil, nil + } var modules []*cover.KernelModule re := regexp.MustCompile(`(\w+) ([0-9]+) .*(0[x|X][a-fA-F0-9]+)[^\n]*`) modulesText, _ := files.ReadFile("/proc/modules") |
