From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78CB4C433FE for ; Tue, 18 Oct 2022 14:50:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbiJROue (ORCPT ); Tue, 18 Oct 2022 10:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230270AbiJROu0 (ORCPT ); Tue, 18 Oct 2022 10:50:26 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2BF1CAE69 for ; Tue, 18 Oct 2022 07:50:24 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id EC75A68C4E; Tue, 18 Oct 2022 16:50:21 +0200 (CEST) Date: Tue, 18 Oct 2022 16:50:21 +0200 From: Christoph Hellwig To: Song Liu Cc: Christoph Hellwig , Song Liu , Linux-MM , lkml , Andrew Morton , X86 ML , Peter Zijlstra , Kernel Team , "Edgecombe, Rick P" , "Hansen, Dave" , "urezki@gmail.com" Subject: Re: [RFC v2 0/4] vmalloc_exec for modules and BPF programs Message-ID: <20221018145021.GC20131@lst.de> References: <20221007234315.2877365-1-song@kernel.org> <20221017072607.GA30977@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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 17, 2022 at 04:23:52PM +0000, Song Liu wrote: > > Well, nothing explains what the method is to avoid having memory > > that is mapped writable and executable at the same time, which really > > could use some explanation here (and in the main patch as well). > > Thanks for the feedback. I will add this. > > Does the code look good to you? I personally think patch 1, 2, 4 could > ship with a little more work. I only took a quick look and I'm not sure how the W^X actually works. Yes, it alls into the text poke helpers, but how do these work on less than page sized allocations?