Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6394008rwr; Tue, 9 May 2023 14:43:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RUrR7j1GJIcIhCDllKva3dKYRc5jy5/3BNdhdYkmn0c5Pizb4uexzmFk7HIr2dFMfAiqf X-Received: by 2002:a17:90b:3881:b0:24e:4a1a:3994 with SMTP id mu1-20020a17090b388100b0024e4a1a3994mr15572012pjb.3.1683668620130; Tue, 09 May 2023 14:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683668620; cv=none; d=google.com; s=arc-20160816; b=nOOiO6o6oh17if5P7dyzeq8ebaH77iPzsmQoyoRHwzv1iiflqn/8IDUjEmoGk7UgHA /hP2K84EYZFsZ/HlXDGOWWB1sIgSq4we2B7FuqE9ZSM5dxOBKE1VnLWEMlwAp/3BeOnR bJj/YRtCkOTygxF8c6MXo3sls2HNjPrrhKspQlQkJkxJXwFBNPbQwU+aMPTgJ+UM9hCw LIjyoSON+Qv/Ifonegj3bwsPU6NlX4Kl6G5WxzkyrYPpMF/YnP3Bl6SnTAgrH9lOx2ca 1G+Xh9Eo2hk/j5MV+WTS74iuAHTAhuy5leQWfoUOZW1Wp2+vKsfg3Zp6qdLH76XnxVQo BVSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=svGV0USSt7ecLCHRTXbLuwPhCwC3JPPXKAzLDLNlRjA=; b=aEUWcruWb+W0TMjmCI+uZjoRPBsPDCK0IvNUYYHS1vZLPCFJnb0Mzj8L0mBiuV7p/H BD3ZaBKwWOtcbHcjnwrybYmJjmXLVPCT0m7NSBTFFZK88LE1LhEUgubTI211zKwcQT1g fiBMg1Xcb85gyD+kChRUcY+a8lIMg7VEU12qMGaYWSVVRMSZRXkz5GcMgYmKy1VI+tpW Zhh/IixcSHsXF0ldP0091S28Gw5qIq0uoKltjJKqKwEGs+fBQ1rvHb3IggcMqb8Cj/sp l6amTCqFLpUTo3inZc2Is8EFFIzRj8w8uIhAGJQELGYFPEpsfTBYFz6IbsZYMItIUFGL eEZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="UT/piCyq"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gj4-20020a17090b108400b0023699c44b66si22161572pjb.167.2023.05.09.14.43.28; Tue, 09 May 2023 14:43:40 -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; dkim=pass header.i=@gmail.com header.s=20221208 header.b="UT/piCyq"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235275AbjEIVMq (ORCPT + 99 others); Tue, 9 May 2023 17:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229656AbjEIVMo (ORCPT ); Tue, 9 May 2023 17:12:44 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8A6D198A; Tue, 9 May 2023 14:12:43 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-64384274895so4589372b3a.2; Tue, 09 May 2023 14:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683666763; x=1686258763; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=svGV0USSt7ecLCHRTXbLuwPhCwC3JPPXKAzLDLNlRjA=; b=UT/piCyqIzYoo+P2gSw+QQSyXT0S06eCT2Xlnjp6RY/huIoizI4Z37OkANO8EOPf0J 1FKeGRsDcihqTx55Tz1ahXEmVVP6dzwEjVwlk6WuSFffQ0TACXkSe+9wP8UAjcmARF1b rDAy/rKtPPCRaLJfJte0zBsCo8pGHosvS/Eijb+xnJLKumBuC5cKSGZu6Mz3hw1Wbk9q boLY7gSp3JIuzVYrSGaNiq/uag3s0MLcOIg6J5fO0xdr1qILObJbsId9/hnJcj0mqFHt d0SmEg0kkhd/bKibWC3sGGVnEGXfOh31xRyfsI72weVAST/OE5Oko9LHzeSjwMwH3uJN 54bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683666763; x=1686258763; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=svGV0USSt7ecLCHRTXbLuwPhCwC3JPPXKAzLDLNlRjA=; b=TQWWAfI7Xa5pqRxvTU+genEmeA1Qg239t28coexQDoc5oZwoqxI98y1Ekmd1b13VwW GFWpxBTMJRua54X+2HSK/1WzJZRtC6iBTeM29AtewYvDGXfO70tXJRX+3RUDn/v8uAHs RkmUsjeUPgPBs5A2e2MMapdF2I/e/lpqa1T5uE57RkUF0lnAqWgXs85nm0saurPFd4Xs UoInWL3DRLQy3ALXheVKRNwhS+1gP1xXAVqbPSq6RCNzV6l/SfvOWghae8/308OBTxJb zJdalTzGVbSpvALzxYykr/CKc0tj280YUpez1nUTd3yhqIKD8u1Zoi4guGEqkTtMjzWm 2C9Q== X-Gm-Message-State: AC+VfDy5FuBYWp5X8u7/UZpmW6bk9M0JykaMzRyPBJCeNihdPf6NxvA6 NbCKns/wdBqRSo1srY2grQ/QA0BlWoZM2A== X-Received: by 2002:a17:902:ce8d:b0:1aa:fc8c:8f1f with SMTP id f13-20020a170902ce8d00b001aafc8c8f1fmr19261002plg.50.1683666763082; Tue, 09 May 2023 14:12:43 -0700 (PDT) Received: from localhost ([2001:4958:15a0:30:3c22:a6a6:f3a4:12ce]) by smtp.gmail.com with ESMTPSA id l6-20020a170902d34600b001a800e03cf9sm2050041plk.256.2023.05.09.14.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 May 2023 14:12:42 -0700 (PDT) Date: Tue, 9 May 2023 14:12:41 -0700 From: Lorenzo Stoakes To: Christoph Hellwig Cc: Kent Overstreet , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcachefs@vger.kernel.org, Kent Overstreet , Andrew Morton , Uladzislau Rezki , linux-mm@kvack.org Subject: Re: [PATCH 07/32] mm: Bring back vmalloc_exec Message-ID: References: <20230509165657.1735798-1-kent.overstreet@linux.dev> <20230509165657.1735798-8-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Tue, May 09, 2023 at 01:46:09PM -0700, Christoph Hellwig wrote: > On Tue, May 09, 2023 at 12:56:32PM -0400, Kent Overstreet wrote: > > From: Kent Overstreet > > > > This is needed for bcachefs, which dynamically generates per-btree node > > unpack functions. > > No, we will never add back a way for random code allocating executable > memory in kernel space. Yeah I think I glossed over this aspect a bit as it looks ostensibly like simply reinstating a helper function because the code is now used in more than one place (at lsf/mm so a little distracted :) But it being exported is a problem. Perhaps there's another way of acheving the same aim without having to do so?