Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp11613696rwr; Sat, 13 May 2023 06:48:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5qVIw1shSgII6RmIbQeINCEvICy2DVoXrhhAvGJ7fnZJymGW6/HikqpuznPPpq/IqzsRgn X-Received: by 2002:a05:6a21:7898:b0:101:167d:8472 with SMTP id bf24-20020a056a21789800b00101167d8472mr23281579pzc.26.1683985705732; Sat, 13 May 2023 06:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683985705; cv=none; d=google.com; s=arc-20160816; b=kqfExZRPrAdSWOHdWbi5kzTJwzT0wwpY1d6oj579tITEvD3w+I8Yqi/zG+A91Jrln3 AHSSH6lQIzI7envl+0TGmdzRwJO0ji2z1DrypVQ9xOF2CGHYl1dmdRn63xIMaA36xXZw mTdl8g/eH8GOaiKxX/HEyy5YLrj3dxfDsJHsBVw4seFcj1wjON9cZHPAz3HZJz32g1tO lzVa9zAen9Iuooa+Atz/81ytsI3QDg5gx8LLnmbgKK4TPmayTuewc2tpCwVI+4NpHTY+ triiPE7ufVhT7yDe0KwAnCidzIA7Aahi6b7XrGSMBKBlu+a1RW0L6L6nXzJemNi7poXz Tjzg== 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=OZ9suH3ysp93knG+LU0uGT9RZVnxtGwdUs21az4sbeY=; b=oS2yrTTOX8vpx+0n+KESwGNwHJ9m76B6N1AoomL4xSWB1nLx+NOfPmPMS5AK+3IGwr S91HQjPHjZ2LdcUca+/Eh6U5lNESnSReOssKf3t62P+gh2FvGczZmkqWPsZIt50vxjJ9 V+VAnFwddWU/Usb8zksoFx7+1bJ7oJ6FoREYsmhnccFG9WNx4yATDloFJR3lt98M2+L5 xt60kFohTxlcER+zp5NRZkXIee03w3wLMoEjRD8HNh/2EmR3QJ6nGrN+/2sgeXGRgMp2 J3VRHTG+i2sOK8hd/k9It7KhpWfuHlJM5N3yNAvFT6sNtYFjr27DFtwQT7pTbbxA7/ob Fl9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=LLWWTC34; 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 d9-20020a63a709000000b0052c8d4d0d1esi6813479pgf.364.2023.05.13.06.48.10; Sat, 13 May 2023 06:48:25 -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=LLWWTC34; 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 S236911AbjEMN0A (ORCPT + 99 others); Sat, 13 May 2023 09:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbjEMNZ7 (ORCPT ); Sat, 13 May 2023 09:25:59 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69BE9F9; Sat, 13 May 2023 06:25:54 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3f4c6c4b425so26475525e9.2; Sat, 13 May 2023 06:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683984353; x=1686576353; 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=OZ9suH3ysp93knG+LU0uGT9RZVnxtGwdUs21az4sbeY=; b=LLWWTC34vSI3jpNT/zyl5RqzF/v1bIiGvyiYvrtMN8jjjzdEzIai/eiOraHQrauYam erId9ONSYr708J/L2MRSkt0ge+0hLyJr/N/u8r/cKralLyhjFzlX/6ki7aodxs7m7ZZG 3i7L/UK1r63y2DwYaHzCi4MKpkFoGA05F5gX/ji8gZuFn0ROx1bVlAs0foZWqb5BA6wn YvOT7j8Pz/zcfm0KXgYAuZQ81xmQTKOtAsjxWjFC9uH4oOvEhIlu8Hdk87BIfGe090t8 CpafDsH+CiRZ56wKFwMCQ+n19YJ0ZMUdYeC2F1Bd8gNmcAyC/gXUvAdIo6mb3m28mz8N KaCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683984353; x=1686576353; 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=OZ9suH3ysp93knG+LU0uGT9RZVnxtGwdUs21az4sbeY=; b=JTM91b2HZpOlPfOhJDIqW6A41ngglEucfdn3nWhmhC2CNS6eR/Ou6T4bz9TyhQ0AQg qCF0agqL2ZCSWzNAkr0uBmGju3wnIsi7G/6PddDcdmD2pzGgj3W+wqu/103xc4m8Mb1q u05HXvAgS/tQGmoDS2j0yuiNMpfm5g4SfBi2SquOQbL27GeQf3zQT3nbBp/UJnVmKuS7 60Rnxe2LZGx/4b0qgc6nos5/UHuF6w8lMm5O79SNfWDKv/4nhs3maedW+NX/PekzhGEf DH47XObylKnxk22MR+6OMqx0s0bSuRP03792wMvnDWFykXC77CONNegDyNeEGTOtiU7f +prg== X-Gm-Message-State: AC+VfDzqEzeoIXFrD9+wzli6UBDWLIC8MXrQsso3exCSL+MRwovadiAa Ls5K5pDVvkLXUZTZlhqoJZY= X-Received: by 2002:a05:600c:c6:b0:3f4:28db:f5ff with SMTP id u6-20020a05600c00c600b003f428dbf5ffmr13378158wmm.35.1683984352479; Sat, 13 May 2023 06:25:52 -0700 (PDT) Received: from localhost ([2a00:23c5:dc8c:8701:1663:9a35:5a7b:1d76]) by smtp.gmail.com with ESMTPSA id e3-20020a05600c218300b003f421979398sm20316940wme.26.2023.05.13.06.25.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 May 2023 06:25:51 -0700 (PDT) Date: Sat, 13 May 2023 14:25:50 +0100 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: <8f76b8c2-f59d-43fc-9613-bb094e53fb16@lucifer.local> 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 02:12:41PM -0700, Lorenzo Stoakes wrote: > 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? Just to be abundantly clear, my original ack was a mistake (I overlooked the _exporting_ of the function being as significant as it is and assumed in an LSF/MM haze that it was simply a refactoring of _already available_ functionality rather than newly providing a means to allocate directly executable kernel memory). Exporting this is horrible for the numerous reasons expounded on in this thread, we need a different solution. Nacked-by: Lorenzo Stoakes