Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6425832rwr; Tue, 9 May 2023 15:17:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5JZyPBXMgnIqJjjdUsrlJPC850f87lSTSuVh/YR8kEw/NkBD4MSaINHiRLQSh8wY19fzoX X-Received: by 2002:a17:903:1cf:b0:1a2:7d:8a8d with SMTP id e15-20020a17090301cf00b001a2007d8a8dmr18816087plh.57.1683670635447; Tue, 09 May 2023 15:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683670635; cv=none; d=google.com; s=arc-20160816; b=BnGOK4LqbymPxTO5IrRhb4uiHMsUE07kWXhH2Ef3H7ofV1bPykt/pPY3v8SJxIw21N oQg9tcaQ8cNMTVyb0oKjeTf2RJ6OCXtrMHf2/yK3IWhdU7MP2UhWKEwcs0f84wustDqf Z/y3heyssbsR6OF/yPdD5FnNwHY/rqKftBmoJZfGOr5OW3ZHgALSU64HHkRtcCfStZCW jCW9Jxl9Tf4XqsUL5lRpGzUCDju0hStdv+5DlgzIAe/I0S7Gvh0rrCuVdGaESytZRtZu X0myD7IS36PonuY15lXcPLODszzh4n6nTlihzr+D303PuhetmOCV+08klQtDEgSS6o+d kGDA== 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=oAgvMbAj+GWYGSe4mUWGv1kbwRrY0W02jDlSTybEV/A=; b=WeWGNQ3GfOKmYodjN2JTl9ywTPaAQMJTn8oZvKm5X3dv94F3SUHgY3gscbdEAsBncM 4VsxpVB5OrOcIoyV7mWXJWxIRLCr0P8q35DGpZ9+04xM5Dw91iwZGSSG0bZGcOEPJB+J aFl1XdYKZazXhRt5QSZ6dv/tYw1ODfREPJ4Gc35cPFUsaP21kMZVuilzXuGaEBS9zq15 Y2RUKGYA838tJ3OvBtsQ+NF5lYADyWZEgGKik7dTS49Va4jz73jME1A5eVEbXOA5Eybz w1h6no8ZnQf2MIh0fk1U0D8812JBtMKJo6lclbF9g8AcvbdJoyKPc+Y4Fbo/77+RcKj6 QAJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QnG6UmOq; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k17-20020a170902c41100b001a979e702b2si2716037plk.416.2023.05.09.15.17.03; Tue, 09 May 2023 15:17:15 -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=@kernel.org header.s=k20201202 header.b=QnG6UmOq; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236015AbjEIVnd (ORCPT + 99 others); Tue, 9 May 2023 17:43:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234952AbjEIVnb (ORCPT ); Tue, 9 May 2023 17:43:31 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8409544BA; Tue, 9 May 2023 14:43:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 19748611EF; Tue, 9 May 2023 21:43:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DAE2C433D2; Tue, 9 May 2023 21:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683668600; bh=2wgNGj7IRW2IEkHkrYYCOyn9Q8mDflypIGx2KHMdfs4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QnG6UmOqAoqjkEFma9E6VFvw3wm4LuZW7KuhuEHuxfHCBNoxtwTt3JGlY6GkLUIvu ji80MClXV2oa39iA0lqwqN5oTRmq1Gl/+X1tbCDilnYZSkObKO/5vo77sWGap2thyh 8eKfzPbEbLt7wHx2knWN3Kdjf86J8kpTVqxqJZaFrvfyjuOYE5T6eg2gtPGDJLfjZV /O14s6TWsy4bMmbinHaeHp5387HyBS4hdEoAMXj76FrLb+uYy5iFLVjAua8adhumch ZHETd7SqJujh2SHfCcacdVlIOMdlDdRUv5E1XkggKrswJ6E6FAW1qtRiTim7Y2U6rY mH3pJVaJr3U2Q== Date: Tue, 9 May 2023 14:43:19 -0700 From: "Darrick J. Wong" To: Lorenzo Stoakes Cc: Christoph Hellwig , 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: <20230509214319.GA858791@frogsfrogsfrogs> 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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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? I already trolled Kent with this on IRC, but for the parts of bcachefs that want better assembly code than whatever gcc generates from the C source, could you compile code to BPF and then let the BPF JIT engines turn that into machine code for you? (also distracted by LSFMM) --D