Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Sep 1998 18:21:27 -0700
From:      John Polstra <jdp@polstra.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        "Andrew Reilly" <reilly@zeta.org.au>, current@FreeBSD.ORG
Subject:   Re: ELF binaries size 
Message-ID:  <199809020121.SAA16677@austin.polstra.com>
In-Reply-To: Your message of "Tue, 01 Sep 1998 18:15:32 -0000." <199809011815.SAA02451@dingo.cdrom.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > Does that mean that the last page in a text segment is treated
> > differently (wrt vm paging) than the rest of the image, or is
> > garbage loaded plast the end, along with the last page?  Is this a
> > security problem?
>
> No, we map both text and data read-only.

No, the text is read-only and the data is copy-on-write.

> The bss is still page-aligned.

Nope.  Not in ELF.  It starts somewhere in the middle of the last
data page.

See my earlier posting for the reason why these things aren't a
security problem.

John
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809020121.SAA16677>