From owner-freebsd-current Tue Sep 1 18:22:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA06106 for freebsd-current-outgoing; Tue, 1 Sep 1998 18:22:54 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA06076 for ; Tue, 1 Sep 1998 18:22:42 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id SAA16677; Tue, 1 Sep 1998 18:21:27 -0700 (PDT) (envelope-from jdp) Message-Id: <199809020121.SAA16677@austin.polstra.com> To: Mike Smith cc: "Andrew Reilly" , current@FreeBSD.ORG Subject: Re: ELF binaries size In-reply-to: Your message of "Tue, 01 Sep 1998 18:15:32 -0000." <199809011815.SAA02451@dingo.cdrom.com> Date: Tue, 01 Sep 1998 18:21:27 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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