Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp680882imw; Fri, 8 Jul 2022 09:46:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1si/iXukn+c2yxRtszZNw9vGuioG9fLUi4wdElFYwdJkUtn5DlwJ2HIqB4elXoCV4BqlvPQ X-Received: by 2002:a17:906:9c82:b0:6e1:2c94:1616 with SMTP id fj2-20020a1709069c8200b006e12c941616mr4404667ejc.64.1657298786110; Fri, 08 Jul 2022 09:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657298786; cv=none; d=google.com; s=arc-20160816; b=zdBVF2rtgWTglcTKm+0r3eVPFWKgRKjw4wQdSMQHMY9aNxHd0SEoMmAsOyvR5JY70u A02CwdMdkrzc7zHFYmsOrFZHgsQPLGyg6VnDw7nEYkYYWpjQl1uP1SJ5usDsyMu+jg2E 7mVc2AIXCwWwB9vm5ceaY/Ezr8Scm2GbbbeAjb/n6AvKXJ4dga1FYJUpR8zyltFIAuRC o52wDfRZNV+Fq7rw5LYMmNGS7DtL8dVbmLZEeVSanc+j7JK8yh+8sdONh3WJc6peoZPz uTAFpuEOUcpVUdCQEpV452+0uakyjQZ2peegdQiz7U7V71TM2eA/hQXUo99f5o5mmBVi ghhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6RqQ8+XNVDVObMJIyPeKINSrkjPLTw+0lvhGuSc1mv4=; b=QXTjuVqCGCwkpfOvn6rErILmA/StGcIuKHBKnUm6RV1f14pZeq3bmo/XyoT6LBNinj pGJsFpAmSssh3dhOJn1dssiPpmF5r1rvxLYU6eiIjwt6ayFb1t8j4FP+MGN7aJZ9SuoE UH+nfbsoPplemFPEw6yUZlpQKwzxMMK8Qy16Khz+FZCTJLrb6eNmofsSsT0nMYENt4ZC +AXqczbrUc7XUUr1J/CAJU2jfLTCBbcqGruD1K8YB2JkYj1mmnJRHESVnyGIQqXtG2nM bguDjDTebY5GIGJqQql1h4yI3P8gm79U0OiM2rqabTghvlBU8WgDNcd1UiBgoNrhJWs+ VKKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="U/181vdz"; 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 x3-20020a05640225c300b0043aa16f01fcsi4883850edb.437.2022.07.08.09.45.55; Fri, 08 Jul 2022 09:46:26 -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=@infradead.org header.s=bombadil.20210309 header.b="U/181vdz"; 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 S238919AbiGHP6Q (ORCPT + 99 others); Fri, 8 Jul 2022 11:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238878AbiGHP6P (ORCPT ); Fri, 8 Jul 2022 11:58:15 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 442A573922; Fri, 8 Jul 2022 08:58:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=6RqQ8+XNVDVObMJIyPeKINSrkjPLTw+0lvhGuSc1mv4=; b=U/181vdzVYQuUne6r4DSfvY+yg Qp6rXidC6C9LEBdozRcX7xo/qlo8qm4YTHwa+5tM++bKx1vSdPeNWBhbhmZNnefGmT6KhhVc09xee +A7G9itA8blRQMvCB4Vo5CgudikDfZrNXVUeFZ0sMtJsGxpxdyh3ZGnNYMXL/jSwMyLo3MsT6T9T2 wIAPsGLZup7bDPOqfjynoKwYV7hiO43NC8p8DQVShXMX6WIl97tAk9dPcWhcN4yvfSUO/XGf3XtVr 7Ierci+IrPeQU2BuSRPE5zp1AlgTMI7aqsG4Kj5RnglyRUdpbd2TOZUkI2feTeyeA0CZEUZTIXdtb mwZm7L2Q==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1o9qMq-004UMR-T3; Fri, 08 Jul 2022 15:58:08 +0000 Date: Fri, 8 Jul 2022 08:58:08 -0700 From: Luis Chamberlain To: Song Liu Cc: Song Liu , bpf , lkml , Linux-MM , Daniel Borkmann , Kernel Team , "x86@kernel.org" , "dave.hansen@linux.intel.com" , "rick.p.edgecombe@intel.com" Subject: Re: [PATCH v6 bpf-next 0/5] bpf_prog_pack followup Message-ID: References: <20220707223546.4124919-1-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,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 Fri, Jul 08, 2022 at 01:36:25AM +0000, Song Liu wrote: > > > > On Jul 7, 2022, at 5:53 PM, Luis Chamberlain wrote: > > > > On Thu, Jul 07, 2022 at 11:52:58PM +0000, Song Liu wrote: > >>> On Jul 7, 2022, at 3:59 PM, Luis Chamberlain wrote: > >>> > >>> On Thu, Jul 07, 2022 at 03:35:41PM -0700, Song Liu wrote: > >>>> This set is the second half of v4 [1]. > >>>> > >>>> Changes v5 => v6: > >>>> 1. Rebase and extend CC list. > >>> > >>> Why post a new iteration so soon without completing the discussion we > >>> had? It seems like we were at least going somewhere. If it's just > >>> to include mm as I requested, sure, that's fine, but this does not > >>> provide context as to what we last were talking about. > >> > >> Sorry for sending v6 too soon. The primary reason was to extend the CC > >> list and add it back to patchwork (v5 somehow got archived). > >> > >> Also, I think vmalloc_exec_ work would be a separate project, while this > >> set is the followup work of bpf_prog_pack. Does this make sense? > >> > >> Btw, vmalloc_exec_ work could be a good topic for LPC. It will be much > >> more efficient to discuss this in person. > > > > What we need is input from mm / arch folks. What is not done here is > > what that stuff we're talking about is and so mm folks can't guess. My > > preference is to address that. > > > > I don't think in person discussion is needed if the only folks > > discussing this topic so far is just you and me. > > How about we start a thread with mm / arch folks for the vmalloc_exec_* > topic? I will summarize previous discussions and include pointers to > these discussions. If necessary, we can continue the discussion at LPC. This sounds like a nice thread to use as this is why we are talking about that topic. > OTOH, I guess the outcome of that discussion should not change this set? If the above is done right then actually I think it would show similar considerations for a respective free for module_alloc_huge(). > If we have concern about module_alloc_huge(), maybe we can have bpf code > call vmalloc directly (until we have vmalloc_exec_)? You'd need to then still open code in a similar way the same things which we are trying to reach consensus on. > What do you think about this plan? I think we should strive to not be lazy and sloppy, and prevent growth of sloppy code. So long as we do that I think this is all reasoanble. Luis