mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove ineffectual code in sentry ELF loader
PiperOrigin-RevId: 195517702 Change-Id: Id90309a6365cac06e68e8774aa79dc76ce1b11c7
This commit is contained in:
@@ -408,11 +408,8 @@ func loadParsedELF(ctx context.Context, m *mm.MemoryManager, f *fs.File, info el
|
||||
path := make([]byte, phdr.Filesz)
|
||||
_, err := readFull(ctx, f, usermem.BytesIOSequence(path), int64(phdr.Off))
|
||||
if err != nil {
|
||||
ctx.Infof("Error reading PT_INTERP path: %v", err)
|
||||
// If an interpreter was specified, it should exist.
|
||||
if err == io.EOF || err == io.ErrUnexpectedEOF {
|
||||
err = syserror.ENOEXEC
|
||||
}
|
||||
ctx.Infof("Error reading PT_INTERP path: %v", err)
|
||||
return loadedELF{}, syserror.ENOEXEC
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user