Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp754079pxb; Fri, 22 Apr 2022 10:25:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBe6oqnZSo1EBWut6LbYFcc+q4CsPU4KPqaHgiQkzz69NQvtWYCzpkrcsoQtzy9mDJVmsv X-Received: by 2002:a17:902:d344:b0:158:408c:4d5f with SMTP id l4-20020a170902d34400b00158408c4d5fmr5743726plk.122.1650648352345; Fri, 22 Apr 2022 10:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650648352; cv=none; d=google.com; s=arc-20160816; b=X0xk5I7kbzmZNc3xItAC7jq2t/qawdrN+O42GpIM0c13qIdGXXoo1fJ12+v6xwHH0z xZawFswJ6ktBAsqKpC9JDeV5DZxI+ju6NhRz5iJenu9bc9Nd/xRbWblSAipIPJHY6IXB U9hyGPjeJJPi5fI2GXqOHq8kw1oYdgLIU0TFHq39Z2TABlmFwQa3PuWTois7HYvH0XLo M9+YqXWxAh7p5qHVRhdIDhUU+cfZ8N/z5P1kQiBrrjdYAoCfHSPZnVYTcAso70TqqIth iAu7YYNHtbxyv+yPHIPC0337rmeMAyEKZFoCPqO5S/i8tL1V6/yg7Eb/ZQ+Y5yZ6I1Dk VqFA== 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=JfaFBap5XOtEB+YkkJ9E9pvw6jjkwyxBWuZ63OV8jOo=; b=kZcl6X36ghhy69Wq+eiXIStIX4fRr7dvdsIlymtUk0V4ao1aT68OvCqnOlJdBzrHcV h0u8e+4uJIZpdIOkm+idVduHUwlxYWyMBBIHSGWBld5hATsumhYmbJ4n/eVgtHk7SNtR MTDDtjgEvZnZIsgBFjNyp0kVSrrdgDyIegb5E79+aNdUE8PasDGDsWjNDz0x5S0Ahltk +9gvGO7LuQRjfNRJKIYYvt7KGYJAyVFK17SalU5eprMhZTvSy1TM12LkwchO+zwA+mmA tVC/cOdi9AOmNEhWPrhEAjfzplr02bJdC6Gtpm4q2nIJLpo+gj6ecfaMW0aQqFhmEVRe v2rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2iW4xAij; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j18-20020a170902da9200b001589eb32cf3si9259617plx.150.2022.04.22.10.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2iW4xAij; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 39E0CB8982; Fri, 22 Apr 2022 10:19:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1448859AbiDVOpe (ORCPT + 99 others); Fri, 22 Apr 2022 10:45:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448834AbiDVOp1 (ORCPT ); Fri, 22 Apr 2022 10:45:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A73E15BE6E; Fri, 22 Apr 2022 07:42:34 -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=JfaFBap5XOtEB+YkkJ9E9pvw6jjkwyxBWuZ63OV8jOo=; b=2iW4xAij7Xo+8jKTLoxPTikuIu Fi62Db6A46bHFst2qLDayoFWOb6RX6ajDK/tjDgbw4Pp5AR+9Y7Nc+WmtKOA5T3+cA6Hd1Ba/7NMl /H7JeZ4vNiMnbDct96DTc0XhWrFzeGMii1/9riBIc9DQAeXnDvco+HHPcdDJSXDvg/XPKZtB/77na zmba1NEbnS/W29AXrGd4wjDpw0S6Hh31RRpAHGtnkzgO4KYM3/9N1iN6BLGyxf86UL3iTp9S9EfJ2 GynSoMhj1cmlB3tfGWVWw9qnFEUdF2Z0z7EwCyuhCfiJia20VFlM4CvE0TVx8EZ7CI0Rqw+PLuWMl BrrXqijA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhuUS-000s6V-32; Fri, 22 Apr 2022 14:42:32 +0000 Date: Fri, 22 Apr 2022 07:42:32 -0700 From: Luis Chamberlain To: Song Liu , Linus Torvalds Cc: bpf@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, ast@kernel.org, daniel@iogearbox.net, kernel-team@fb.com, akpm@linux-foundation.org, rick.p.edgecombe@intel.com, hch@infradead.org, imbrenda@linux.ibm.com Subject: Re: [PATCH bpf 0/4] bpf_prog_pack and vmalloc-on-huge-page fixes Message-ID: References: <20220422051813.1989257-1-song@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422051813.1989257-1-song@kernel.org> Sender: Luis Chamberlain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 Thu, Apr 21, 2022 at 10:18:09PM -0700, Song Liu wrote: > NOTE: This set is based on Linus' master branch (d569e86915b7), not > bpf/master. > > There are various discussion about these changes, check out [1] [2]. > I guess we can use this thread to discuss which patches should go in 5.18. > AFAICT, 1/4 need to with 5.18; Since huge pages are effectively disabled on v5.18 I can't see why. > 2/4 seems safe to go as well; My impression on the discussion was that huge pages design was broken and evidence for this came up after x86 finally enabled *a small* portion use case of it. This revealed how broken huge pages were not just for x86 but for other architectures. And so I can't see why we'd enable for v5.18 huge pages for the large system hash. > 3/4 and 4/4 > may still need more work/discussion. Happy to review these but if huge pages are disabled I don't see the point in a module_alloc_huge() yet. Luis > > Thanks! > > [1] https://lore.kernel.org/linux-mm/20220415164413.2727220-1-song@kernel.org/ > [2] https://lore.kernel.org/linux-mm/20220421072212.608884-1-song@kernel.org/ > > Song Liu (4): > bpf: invalidate unused part of bpf_prog_pack > page_alloc: use vmalloc_huge for large system hash > module: introduce module_alloc_huge > bpf: use module_alloc_huge for bpf_prog_pack > > arch/x86/kernel/module.c | 21 +++++++++++++++++++++ > arch/x86/net/bpf_jit_comp.c | 22 ++++++++++++++++++++++ > include/linux/bpf.h | 2 ++ > include/linux/moduleloader.h | 5 +++++ > kernel/bpf/core.c | 28 +++++++++++++++++++++------- > kernel/module.c | 8 ++++++++ > mm/page_alloc.c | 2 +- > 7 files changed, 80 insertions(+), 8 deletions(-) > > -- > 2.30.2