[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: src
From:       Margarida Sequeira <margarida () cvs ! openbsd ! org>
Date:       2003-05-31 0:53:01
[Download RAW message or body]

CVSROOT:	/cvs
Module name:	src
Changes by:	margarida@cvs.openbsd.org	2003/05/30 18:53:01

Modified files:
	libexec/ld.so  : Tag: OPENBSD_3_3 sod.c 
	gnu/usr.bin/ld/rtld: Tag: OPENBSD_3_3 rtld.c 

Log message:
Pull patch from -current:
Fix by millert@

Previously, ld.so would use a single page for mapping the hints file
and then, if that was not big enough, map the rest of it contiguously.
However, there is no guarantee that the address space after the
first mmap has not already been used by something else.

Instead, just fstat the file and map up to st_size.  Also reorganized
the code a tad and added some sanity checks for st_size.

Problem tracked down by dhartmei@ and mickey@; drahn@ OK.

Ok deraadt@

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic