From owner-freebsd-arch@FreeBSD.ORG Mon May 30 02:47:10 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 6247516A41C for ; Mon, 30 May 2005 02:47:10 +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 001B643D1F for ; Mon, 30 May 2005 02:47:09 +0000 (GMT) (envelope-from ssouhlal@FreeBSD.org) Received: from [192.168.0.99] (pool-151-200-57-83.res.east.verizon.net [151.200.57.83]) (authenticated bits=0) by sp.dominia.org (8.13.1/8.13.1) with ESMTP id j4U2l8YG020792 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sun, 29 May 2005 22:47:09 -0400 Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: <40BB7DA9-472A-476A-B6B0-8C3DFDCC9060@FreeBSD.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: arch@FreeBSD.org From: Suleiman Souhlal Date: Sun, 29 May 2005 22:47:03 -0400 X-Mailer: Apple Mail (2.730) Cc: Subject: [PATCH] randomized mmap 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: Mon, 30 May 2005 02:47:10 -0000 Hi! The patch at http://people.freebsd.org/~ssouhlal/testing/ mmap_random-20050528.diff implements random mmap addresses (unless of course MAP_FIXED is being used), again from OpenBSD. This behavior can be disabled setting the vm.mmap_random sysctl to 0. I think this could greatly increase memory fragmentation, so I'm not sure it would be such a good idea to have it on by default. Also, it doesn't really make attacks unfeasable, but the implementation is so simple that I don't think we really lose anything by letting users decide if they want to enable it or not. Any comment? -- Suleiman Souhlal | ssouhlal@vt.edu The FreeBSD Project | ssouhlal@FreeBSD.org