[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	margarida_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_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@



Visit your host, monkey.org