diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-16 21:12:51 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-16 21:12:51 +0000 |
commit | ab3613e0e4a9781213a582c4661ec2d163a119ef (patch) | |
tree | 3bb5e4c147d78924d47445ad0fc3ab41c4492c2f /pkg/sentry/loader | |
parent | 455c458013e952101b39296af612b79702b54078 (diff) | |
parent | 63b4f6e296a8f131ec969a685f0e31663be58385 (diff) |
Merge release-20210607.0-51-g63b4f6e29 (automated)
Diffstat (limited to 'pkg/sentry/loader')
-rw-r--r-- | pkg/sentry/loader/loader.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/sentry/loader/loader.go b/pkg/sentry/loader/loader.go index 47e3775a3..8240173ae 100644 --- a/pkg/sentry/loader/loader.go +++ b/pkg/sentry/loader/loader.go @@ -23,6 +23,7 @@ import ( "gvisor.dev/gvisor/pkg/abi" "gvisor.dev/gvisor/pkg/abi/linux" + "gvisor.dev/gvisor/pkg/abi/linux/errno" "gvisor.dev/gvisor/pkg/context" "gvisor.dev/gvisor/pkg/cpuid" "gvisor.dev/gvisor/pkg/hostarch" @@ -237,7 +238,7 @@ func Load(ctx context.Context, args LoadArgs, extraAuxv []arch.AuxEntry, vdso *V // loaded.end is available for its use. e, ok := loaded.end.RoundUp() if !ok { - return 0, nil, "", syserr.NewDynamic(fmt.Sprintf("brk overflows: %#x", loaded.end), linux.ENOEXEC) + return 0, nil, "", syserr.NewDynamic(fmt.Sprintf("brk overflows: %#x", loaded.end), errno.ENOEXEC) } args.MemoryManager.BrkSetup(ctx, e) |