From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28907 invoked by alias); 22 May 2013 11:50:59 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 28897 invoked by uid 89); 22 May 2013 11:50:59 -0000 X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE autolearn=ham version=3.3.1 Received: from mail-pb0-f44.google.com (HELO mail-pb0-f44.google.com) (209.85.160.44) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 22 May 2013 11:50:58 +0000 Received: by mail-pb0-f44.google.com with SMTP id wz12so1608389pbc.31 for ; Wed, 22 May 2013 04:50:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=Tl3uuw6oW0wXSauWYce6SKgeSI7yv4mhhj38HlhAH4o=; b=l+4cbiJ6Fg94LiWCfJmCdeT5b8lgJGDG21zx3G/W4CKlIAsX3ZkSZXKYKDJfqLgbqz jqX3CtwVi8XvzbtYANveV8kLJ5qSHwT/XnTCWmHnso7tj9AooY6swfnWHsQRoH/x66Uv ejRnJJCVPYM8LqtggWyKU75lHMfTn9S9yB29heWXTEcqkfBS23bevfogD6nzfquANFMF to+nQQhD5QXrJbP01ZM23UtdV0j189Wtj0MB68aFk9BSPVS0C8S4VJ/EHfNd6ilN+Uml 6oQ2OVy87ED1RNeF1U/GfmmhfjzpZVyzlaKoQ6/3RK9FwSVfmLc5ksu1vU54ttewTnd8 KyWQ== MIME-Version: 1.0 X-Received: by 10.69.0.38 with SMTP id av6mr7696151pbd.4.1369223457127; Wed, 22 May 2013 04:50:57 -0700 (PDT) Received: by 10.70.9.98 with HTTP; Wed, 22 May 2013 04:50:57 -0700 (PDT) In-Reply-To: <1853145.Z13BOjesii@laptop1.gw.ume.nu> References: <1853145.Z13BOjesii@laptop1.gw.ume.nu> Date: Wed, 22 May 2013 11:50:00 -0000 Message-ID: Subject: Re: [Patch] Updated version of emutramp_enabled_check() for PaX kernels From: Anthony Green To: Magnus Granberg Cc: "libffi-discuss@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkHSdJSPttpXkFEK9DhE92uosI4F726Vz5WgKAfA8vVccE+KahKkXUDrGk1zQ9tLpKGY6dd X-SW-Source: 2013/txt/msg00135.txt.bz2 Hi Magnus, Reading /proc/self/status is a little more heavy weight than checking an environment variable. Do we really have to do this every time we call dlmmap(), or can we do it once and cache the result? Thanks, AG On Mon, Apr 29, 2013 at 5:44 PM, Magnus Granberg wrote: > Hi > This patch check the PaX status in /proc/self/status > and it will return true or fales depend on the status of > emulate trampolines in Pax. > > /Magnus > > 2013-04-29 Magnus Granberg > > * src/cloures.c (emutramp_enabled_check): Check /proc/self/status for PaX > status. >