From owner-svn-src-stable@FreeBSD.ORG Wed Jan 21 15:04:06 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1A03106567D; Wed, 21 Jan 2009 15:04:06 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BE8BD8FC18; Wed, 21 Jan 2009 15:04:06 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0LF46E2081010; Wed, 21 Jan 2009 15:04:06 GMT (envelope-from emaste@svn.freebsd.org) Received: (from emaste@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0LF46BP081009; Wed, 21 Jan 2009 15:04:06 GMT (envelope-from emaste@svn.freebsd.org) Message-Id: <200901211504.n0LF46BP081009@svn.freebsd.org> From: Ed Maste Date: Wed, 21 Jan 2009 15:04:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187530 - in stable/6/sys: . vm X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jan 2009 15:04:10 -0000 Author: emaste Date: Wed Jan 21 15:04:06 2009 New Revision: 187530 URL: http://svn.freebsd.org/changeset/base/187530 Log: MFC r181693: Fix REDZONE(9) on amd64 and perhaps other 64 bit targets -- ensure the space that redzone adds to the allocation for storing its metadata is at least as large as the metadata that it will store there. PR: kern/128744 Modified: stable/6/sys/ (props changed) stable/6/sys/vm/redzone.c Modified: stable/6/sys/vm/redzone.c ============================================================================== --- stable/6/sys/vm/redzone.c Wed Jan 21 15:01:36 2009 (r187529) +++ stable/6/sys/vm/redzone.c Wed Jan 21 15:04:06 2009 (r187530) @@ -54,6 +54,8 @@ static u_long redzone_roundup(u_long n) { + if (n < REDZONE_HSIZE) + n = REDZONE_HSIZE; if (n <= 128) return (128); else if (n <= 256)