From owner-freebsd-questions@FreeBSD.ORG Wed Jan 4 19:57:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1330616A41F for ; Wed, 4 Jan 2006 19:57:24 +0000 (GMT) (envelope-from klowd92@hotmail.com) Received: from hotmail.com (bay105-f28.bay105.hotmail.com [65.54.224.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9D1643D5A for ; Wed, 4 Jan 2006 19:57:23 +0000 (GMT) (envelope-from klowd92@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 4 Jan 2006 11:57:23 -0800 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Wed, 04 Jan 2006 19:57:22 GMT X-Originating-IP: [212.179.178.41] X-Originating-Email: [klowd92@hotmail.com] X-Sender: klowd92@hotmail.com From: "klowd9 -" To: freebsd-questions@freebsd.org Date: Wed, 04 Jan 2006 19:57:22 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 04 Jan 2006 19:57:23.0149 (UTC) FILETIME=[14010FD0:01C61169] Subject: Data Execution Protection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 19:57:24 -0000 Does FreeBSD have any support for Data Execution Protection (DEP) and Non-Executable Stack? What are the future plans for this subject? I quickly coded a executable file of ELF format, using nasm. It had no .text section. Only a .data section, which is where my code was placed. Any much to my suprise it not only assembled and linked with no errors, but also ran with no errors. I believe windows will not run a file which there no section which is marked executable. Thats is just the work of the PE Loader. Im not sure the what the policy is on running code that isnt marked in an executable section. Im assembling with nasm, and linking with ld. Maybe one of them is marking the section as executable, but i find that hard to believe.