From owner-freebsd-hackers@FreeBSD.ORG Sun May 10 16:58:13 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 572C01065672 for ; Sun, 10 May 2009 16:58:13 +0000 (UTC) (envelope-from raykinsella78@gmail.com) Received: from mail-fx0-f216.google.com (mail-fx0-f216.google.com [209.85.220.216]) by mx1.freebsd.org (Postfix) with ESMTP id DA7EB8FC19 for ; Sun, 10 May 2009 16:58:12 +0000 (UTC) (envelope-from raykinsella78@gmail.com) Received: by fxm12 with SMTP id 12so2281386fxm.43 for ; Sun, 10 May 2009 09:58:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0pu/FL8YEBnigkP/u+N4wmmxnXnGSuQ1UNKks70VIss=; b=ccWy/Re+HtEw4wTFNiBu9E7EpoxCreBwCMObdxh4zf34lV+KiWdo0zuL4RDLsjAKlO hVh1AjW4dcRyin1OzS57kn3QytgyxDzJa19prDyKf1tkuG2HfawVKmotoDgQOdPzX+cS gDn84oZLJ0+bjVbjs6Q6bab9HfblkyK68eQyk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BCUwXc4902H3ODMaVX9/PpItZhjhyj/Sa2i6/ObBPbn9MgJYBw5xcMJZk5sl69ohPQ DzZNYqglGBw3A5Whh2n8H2RNimSu361Mcmmp3/JKaqkcjzK+LKjp92sWw8Y+xnIjseW1 CU1PFIwA6Uud2xMWwf/v1LxcjR6aE/IhcIuO8= MIME-Version: 1.0 Received: by 10.239.134.65 with SMTP id 1mr302646hby.160.1241974691943; Sun, 10 May 2009 09:58:11 -0700 (PDT) In-Reply-To: References: <584ec6bb0905100532n36ae97b1rc5e6e31c23bdb44b@mail.gmail.com> Date: Sun, 10 May 2009 17:58:11 +0100 Message-ID: <584ec6bb0905100958m1a0ee883h76eaa41eb566e033@mail.gmail.com> From: Ray Kinsella To: Ryan Stone Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: contigmalloc & access protection failure X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2009 16:58:13 -0000 ah I specified VM_PROT_ALL because I though that was "protecting" against reads/writes and executes. I had it the wrong way around, it was that VM_PROT that confused me, my kernel panic works perfectly now thanks. Regards Ray Kinsella On Sun, May 10, 2009 at 5:22 PM, Ryan Stone wrote: > Oh, and you're passing VM_PROT_ALL -- that says "map this > read/write/execute".=A0 You want VM_PROT_READ > > Ryan Stone >