public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Avoid some crashes when loading separate debuginfo
@ 2021-11-05 13:59 Florian Weimer
  2021-11-05 13:59 ` [PATCH 1/2] Use sysdeps/posix/dl-fileid.h as the generic and only implementation Florian Weimer
  2021-11-05 13:59 ` [PATCH 2/2] elf: Detect PT_LOAD segments that extend beyond EOF and refuse loading Florian Weimer
  0 siblings, 2 replies; 14+ messages in thread
From: Florian Weimer @ 2021-11-05 13:59 UTC (permalink / raw)
  To: libc-alpha

This mini-series adds a small check to detect invalid LOAD segments.

Tested on i686-linux-gnu, x86_64-linux-gnu.  Built with
build-many-glibcs.py.

Florian Weimer (2):
  Use sysdeps/posix/dl-fileid.h as the generic and only implementation
  elf: Detect PT_LOAD segments that extend beyond EOF and refuse loading

 elf/dl-load.c               | 78 +++++++++++++++++++++----------------
 sysdeps/generic/dl-fileid.h | 35 ++++++++++-------
 sysdeps/posix/dl-fileid.h   | 50 ------------------------
 3 files changed, 65 insertions(+), 98 deletions(-)
 delete mode 100644 sysdeps/posix/dl-fileid.h


base-commit: ff012870b2c02a62598c04daa1e54632e020fd7d
-- 
2.33.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-11-08 15:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-05 13:59 [PATCH 0/2] Avoid some crashes when loading separate debuginfo Florian Weimer
2021-11-05 13:59 ` [PATCH 1/2] Use sysdeps/posix/dl-fileid.h as the generic and only implementation Florian Weimer
2021-11-08 15:54   ` H.J. Lu
2021-11-05 13:59 ` [PATCH 2/2] elf: Detect PT_LOAD segments that extend beyond EOF and refuse loading Florian Weimer
2021-11-05 14:04   ` H.J. Lu
2021-11-05 14:07     ` Florian Weimer
2021-11-05 14:26   ` H.J. Lu
2021-11-05 14:31     ` Florian Weimer
2021-11-05 14:37       ` H.J. Lu
2021-11-05 14:41         ` Florian Weimer
2021-11-05 15:03           ` H.J. Lu
2021-11-05 15:50             ` Florian Weimer
2021-11-05 14:30   ` Adhemerval Zanella
2021-11-05 14:35     ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).