summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/loader
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-12-06 16:39:53 +0000
committergVisor bot <gvisor-bot@google.com>2019-12-06 16:39:53 +0000
commit0947a11e291e1ba3617749c071e0bd101fcea22f (patch)
tree0f3bdfd4716bc39bd681831a3ee6ba49daedb374 /pkg/sentry/loader
parentd6834255f1ae9a7f76491c292d379edd94f795ce (diff)
parentf8bb3f79041bf819cdf803c1009a442154692301 (diff)
Merge release-20191129.0-9-gf8bb3f7 (automated)
Diffstat (limited to 'pkg/sentry/loader')
-rw-r--r--pkg/sentry/loader/elf.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/sentry/loader/elf.go b/pkg/sentry/loader/elf.go
index c2c3ec06e..6299a3e2f 100644
--- a/pkg/sentry/loader/elf.go
+++ b/pkg/sentry/loader/elf.go
@@ -408,6 +408,8 @@ func loadParsedELF(ctx context.Context, m *mm.MemoryManager, f *fs.File, info el
start = vaddr
}
if vaddr < end {
+ // NOTE(b/37474556): Linux allows out-of-order
+ // segments, in violation of the spec.
ctx.Infof("PT_LOAD headers out-of-order. %#x < %#x", vaddr, end)
return loadedELF{}, syserror.ENOEXEC
}