From owner-freebsd-arch@FreeBSD.ORG Sat May 28 02:35:17 2005 Return-Path: X-Original-To: arch@FreeBSD.org 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 289AE16A41C for ; Sat, 28 May 2005 02:35:17 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from sp.dominia.org (efnet-math.org [69.60.109.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7D3243D1D for ; Sat, 28 May 2005 02:35:16 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.1.12] (63-170-138-118.cst-sg.blacksburg.ntc-com.net [63.170.138.118]) (authenticated bits=0) by sp.dominia.org (8.13.1/8.13.1) with ESMTP id j4S2ZEH6018874 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Fri, 27 May 2005 22:35:15 -0400 Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: arch@FreeBSD.org From: Suleiman Souhlal Date: Fri, 27 May 2005 22:35:03 -0400 X-Mailer: Apple Mail (2.730) Cc: Subject: [PATCH] Stackgap X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2005 02:35:17 -0000 Hi! You can find an implementation of stackgap from OpenBSD at http:// people.freebsd.org/~ssouhlal/testing/stackgap-20050527.diff You can control the range of the random stack gap with the kern.stackgap_random sysctl. A value of 0 disables it. Otherwise, it has to be a power of 2 and not too large. The default value is 64K. I've only had the chance to test this on i386. Could anyone test it on other architectures as well? Any comments/objections? -- Suleiman Souhlal | ssouhlal@vt.edu The FreeBSD Project | ssouhlal@FreeBSD.org