mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Document ELF PT_LOAD difference from Linux
PiperOrigin-RevId: 284191345
This commit is contained in:
committed by
gVisor bot
parent
40035d7d9c
commit
f8bb3f7904
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user