From owner-freebsd-arch Sat Jun 29 16: 9:22 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DB0037B400 for ; Sat, 29 Jun 2002 16:09:19 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB02243E06 for ; Sat, 29 Jun 2002 16:09:18 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 99881AE275; Sat, 29 Jun 2002 16:09:18 -0700 (PDT) Date: Sat, 29 Jun 2002 16:09:18 -0700 From: Alfred Perlstein To: Jake Burkholder Cc: arch@FreeBSD.ORG Subject: Re: Time to make the stack non-executable? Message-ID: <20020629230918.GN97638@elvis.mu.org> References: <3D1E28ED.B67A5271@FreeBSD.org> <3D1E3126.C96FFAA5@mindspring.com> <20020629185554.I71376@locore.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020629185554.I71376@locore.ca> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Jake Burkholder [020629 15:51] wrote: > > > > For signals, this is easy: copy SVR4, and modify the signal > > functions to pass in a return address, then disable the execute > > bits on stack pages and see whose head blows up. > > > > Frankly, I'm very surprised to discover that OpenBSD has not > > already done this. > > > > Opinions? Patches from people who know and love the signals > > facility on Alpha, SPARC64, PPC, etc.? > > The sparc64 signal trampoline is already in libc, I'm running a kernel > which maps the stack non-executable locally. I recently (last week or two) forwarded a cvs commitlog from NetBSD which seems to have solved this. http://docs.freebsd.org/cgi/getmsg.cgi?fetch=462972+0+archive/2002/freebsd-arch/20020623.freebsd-arch Have you guys had a look? Sorry if this is red herring, I haven't investigated it deeply. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message