Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp135686ybe; Wed, 18 Sep 2019 14:15:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqw52np2oMRJMV5OgricFkRoKAv/YPqiEA2vQdJJv9gFg452iNGRG19ywvteEhuMDTzOIymS X-Received: by 2002:a17:906:6bca:: with SMTP id t10mr5366237ejs.64.1568841336083; Wed, 18 Sep 2019 14:15:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568841336; cv=none; d=google.com; s=arc-20160816; b=GW1ERIubEFre7QUW5QUMfM9FA2sFSF9wmlminTc9JoYo+/8wT/hWxuztM8k75UR0OZ 0ymZMsO/DFzgy/SWJ4j8a9ofiHrkIFKlHtD+q7eFrqZu52iZ2tCBQH7ek9kTgf6w7Tvg Riqj6Sv3sH6pkr1mQmbvpVspVRHA/uFFz1vYPT6HdcRiCeiEMz0Co6+NWEvbcg+N9Kb2 dY0ju6L3zUGNdyk5CEddK6FBSP+7aw2HlAKmEqAShhidbaSfloLWuGHfKvTw/fKOqdj0 HbLR19RkWR41RrfUFPwIVYmKk9fPs6+SRMz1S0zDxTYnLIcB/YagEuG7AFlmcgzApMM1 QfBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vKK7998AnJXk/ahMz8WEIOrUKS2aXcEC5JzYNyFRKUk=; b=OzrdLRFxtmBotyCxXsEUvx3I5Ams8atNfnqnZ1iATpoUR5qyvqnYgTS1FUlKyApeMS dsP7H26sO8tvQW+Vq761Sfl6t5nHFynsjc+ljiaLryVQjrjuVuyMr3HaTB6y0bpow7n0 gl6n6dar5A2R4ec0WouMC8/9ZWWZpIRBzoo2C8Wxd7yj0FHOvt0AY3K5X/3cd7K/JJsR Vz+58vUzhGGhFD5B1603z+oCcPV0piquQXNYFEoH1HPN/b7BxX2VpiYlAEeVnFlcsagx QeE55Qlj0WuGG6p92jKXJykdYaJDrlczyztfXS0NY3o31dShd424o9jpJGY0kvBRcQ/O KaEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h51si4011383eda.85.2019.09.18.14.15.11; Wed, 18 Sep 2019 14:15:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387491AbfIRRxK (ORCPT + 99 others); Wed, 18 Sep 2019 13:53:10 -0400 Received: from verein.lst.de ([213.95.11.211]:34950 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387414AbfIRRxJ (ORCPT ); Wed, 18 Sep 2019 13:53:09 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id D313368C65; Wed, 18 Sep 2019 19:53:03 +0200 (CEST) Date: Wed, 18 Sep 2019 19:53:03 +0200 From: Christoph Hellwig To: Larry Finger Cc: Christoph Hellwig , Linus Torvalds , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Greg Kroah-Hartman Subject: Re: [PATCH] x86/mm: Remove set_pages_x() and set_pages_nx() Message-ID: <20190918175303.GA20353@lst.de> References: <20190918164121.30006-1-Larry.Finger@lwfinger.net> <20190918164518.GA19222@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 18, 2019 at 12:49:56PM -0500, Larry Finger wrote: > Is there approved way for pages to be set to be executable by an external > module that would not be a security issue? There is approved way for modules to set kernel code executable, because well they shouldn't. And as stated many times we do not add interfaces for things not in mainline to start with. So as a first step please submit your module for inclusion and then we can discuss if it actually happens to be a valid use case or not, and how to best accomodate it.