From owner-svn-src-head@FreeBSD.ORG Sun Jul 15 20:31:46 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9C16106564A; Sun, 15 Jul 2012 20:31:46 +0000 (UTC) (envelope-from mdf356@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 82E068FC08; Sun, 15 Jul 2012 20:31:46 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so9594120pbb.13 for ; Sun, 15 Jul 2012 13:31:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=K/lYFVD4ZbZPwsoPB9ZFgacBaFHyX2GgVDrzDt5kJZE=; b=SNHnU67tYxcPma/jBjcAh8/giZbyfRTaxivkzf1XmkKc8gwjrbLoO8WHrWTd/RfBLU pLVvMCZ4Txeq/UMFv2l2Sq76IvsKezpipI/NFmHi34zrV3H8SAbbwa4AUEllA1Npq2cf Bz9VOhy8lectr2exF+LjiM/3K6lLZP4RubIbPb+p71nysmXN9OxCnnmzIi6+VEHF0HKS ZNO8EPP4pZUWZ+MxzPlL6/kTq8byn93YcYlGsCu9fQ2GSHDaVL1/ffoA2BZ/Gs8iGUd7 Ed1DY5vyhmesTJ1AZdP08cuHBIvvsCG1Gx/GwHwhkzNFBH/vKQZpmfec67Os/AWAcoTV dMcQ== MIME-Version: 1.0 Received: by 10.68.195.97 with SMTP id id1mr22193844pbc.91.1342384306305; Sun, 15 Jul 2012 13:31:46 -0700 (PDT) Sender: mdf356@gmail.com Received: by 10.68.208.168 with HTTP; Sun, 15 Jul 2012 13:31:46 -0700 (PDT) In-Reply-To: <201207152029.q6FKTmfW071319@svn.freebsd.org> References: <201207152029.q6FKTmfW071319@svn.freebsd.org> Date: Sun, 15 Jul 2012 13:31:46 -0700 X-Google-Sender-Auth: FaVLU0NAuDyQ9EA_Qdox1_WwUWU Message-ID: From: mdf@FreeBSD.org To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: Re: svn commit: r238502 - in head/sys: kern vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jul 2012 20:31:46 -0000 On Sun, Jul 15, 2012 at 1:29 PM, Matthew D Fleming wrote: > Author: mdf > Date: Sun Jul 15 20:29:48 2012 > New Revision: 238502 > URL: http://svn.freebsd.org/changeset/base/238502 > > Log: > Fix a bug with memguard(9) on 32-bit architectures without a > VM_KMEM_MAX_SIZE. > > The code was not taking into account the size of the kernel_map, which > the kmem_map is allocated from, so it could produce a sub-map size too > large to fit. The simplest solution is to ignore VM_KMEM_MAX entirely > and base the memguard map's size off the kernel_map's size, since this > is always relevant and always smaller. > > Found by: Justin Hibbits MFC after: 3 days Thanks, matthew