Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4074393rwi; Mon, 17 Oct 2022 00:42:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7MGhcz6lCmBcFMKDCEhIFYAPY51/j6gKbxFWkOpJPi7+0EajrLjlzszTKqLAj5Zzg17jyg X-Received: by 2002:a17:90a:e018:b0:20a:bb3d:bb8f with SMTP id u24-20020a17090ae01800b0020abb3dbb8fmr12063340pjy.16.1665992538959; Mon, 17 Oct 2022 00:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665992538; cv=none; d=google.com; s=arc-20160816; b=ejNzRaL2QFZxJSCRvU5xPOu80Za9GD8MCYb0iMcyw0a8s73ZhEBM9J9LLK/EfRtcbo wfp+udqytPqDc8PwEcNiAQzpZkP6T+YVLj1v9gfxndVmxnE0SoYck0jmh4qpbN9uqX16 MqSVmyVGatx4x7gxh8wbS4+/c0uKNmd7iXBKJR/nUXDc8CMlzv1Lx9BfL/ohWXquwH3A bqWjY1cdwgHS/ASUmBCV4NAEgA/gbkWXlucOCnyjIex3HkXV5tkCCUSNQuLutCGTt0UW FuLF5zwFauqOXhNNt55l3W7gWgi4rZzCHcsIg58jO2kYE85ZcSejLul0mMOhf+Hfwzw3 QvLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=mfYfVP5XzmJoOZUYpaq/SsgeKgnXY7O6wlYNAVTD8AY=; b=cLplsc2G+Z3aYH+YkYYmmwU7hA9Kl2ayYE9tp2Q17MX3VxSaEXB5CGVvk8f9lTsl5C 5xLNKVWRBdrj/QHXxBzFrHmL3VYs2eIFs0GiUE+q2471/mwqRm8LxoKPuXiT7C2BoDnI bZ5GfDyp2t20RzOCV078Z+htp+p3ytaERkTLG1TmG+PVV26uEros06HGIdE7P7JJGqKk q6eXYWTooggAntV2w7SUPCBV7I/SaxMSvS8K+OOcA3jCkDMUc1KIJEjB8MmCyDP8vVlF HVY1cMywN97vE+b2EygdKRUBDEwAmk3Vi9EgjnuwW5+/fmFwHY3T1bycs7b2pTslbcPc ko1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y193-20020a638aca000000b0044c67258354si11314273pgd.800.2022.10.17.00.42.05; Mon, 17 Oct 2022 00:42:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230149AbiJQH0Q (ORCPT + 99 others); Mon, 17 Oct 2022 03:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229799AbiJQH0O (ORCPT ); Mon, 17 Oct 2022 03:26:14 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AB19DF1F for ; Mon, 17 Oct 2022 00:26:13 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4877668D05; Mon, 17 Oct 2022 09:26:08 +0200 (CEST) Date: Mon, 17 Oct 2022 09:26:07 +0200 From: Christoph Hellwig To: Song Liu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, x86@kernel.org, peterz@infradead.org, hch@lst.de, kernel-team@fb.com, rick.p.edgecombe@intel.com, dave.hansen@intel.com, urezki@gmail.com Subject: Re: [RFC v2 0/4] vmalloc_exec for modules and BPF programs Message-ID: <20221017072607.GA30977@lst.de> References: <20221007234315.2877365-1-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221007234315.2877365-1-song@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 07, 2022 at 04:43:11PM -0700, Song Liu wrote: > Changes RFC v1 => RFC v2: > 1. Major rewrite of the logic of vmalloc_exec and vfree_exec. They now > work fine with BPF programs (patch 1, 2, 4). But module side (patch 3) > still need some work. Can you please move the changelog under the description of WTF the series actually does like the normal kernel process? Explaining the changes from a previous version before you even describe what the series does is completely incoherent. > This set is a prototype that allows dynamic kernel text (modules, bpf > programs, various trampolines, etc.) to share huge pages. The idea is > similar to Peter's suggestion in [1]. Please refer to each patch for > more detais. 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).