From patchwork Fri Apr 22 05:18:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Song Liu X-Patchwork-Id: 12822745 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC977C433F5 for ; Fri, 22 Apr 2022 05:24:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 638306B0072; Fri, 22 Apr 2022 01:24:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5E6B86B0073; Fri, 22 Apr 2022 01:24:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4AF0D6B0074; Fri, 22 Apr 2022 01:24:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.26]) by kanga.kvack.org (Postfix) with ESMTP id 3B0506B0072 for ; Fri, 22 Apr 2022 01:24:22 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 07B99242DA for ; Fri, 22 Apr 2022 05:24:22 +0000 (UTC) X-FDA: 79383374364.15.DDD9B1B Received: from mx0b-00082601.pphosted.com (mx0b-00082601.pphosted.com [67.231.153.30]) by imf18.hostedemail.com (Postfix) with ESMTP id 5478A1C0025 for ; Fri, 22 Apr 2022 05:24:19 +0000 (UTC) Received: from pps.filterd (m0148460.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23LNWgjA000937 for ; Thu, 21 Apr 2022 22:24:20 -0700 Received: from mail.thefacebook.com ([163.114.132.120]) by mx0a-00082601.pphosted.com (PPS) with ESMTPS id 3fjnsxbx1e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 21 Apr 2022 22:24:20 -0700 Received: from twshared29473.14.frc2.facebook.com (2620:10d:c085:108::4) by mail.thefacebook.com (2620:10d:c085:21d::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 21 Apr 2022 22:24:18 -0700 Received: by devbig932.frc1.facebook.com (Postfix, from userid 4523) id 8BD3B60E40DF; Thu, 21 Apr 2022 22:18:17 -0700 (PDT) From: Song Liu To: , , CC: , , , , , , , , Song Liu Subject: [PATCH bpf 0/4] bpf_prog_pack and vmalloc-on-huge-page fixes Date: Thu, 21 Apr 2022 22:18:09 -0700 Message-ID: <20220422051813.1989257-1-song@kernel.org> X-Mailer: git-send-email 2.30.2 X-FB-Internal: Safe X-Proofpoint-GUID: NGWChDQSpCprfm2XLR5NayY1ICfxhaxK X-Proofpoint-ORIG-GUID: NGWChDQSpCprfm2XLR5NayY1ICfxhaxK X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-22_01,2022-04-21_01,2022-02-23_01 Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=kernel.org (policy=none); spf=none (imf18.hostedemail.com: domain of "prvs=5111fe83e2=songliubraving@fb.com" has no SPF policy when checking 67.231.153.30) smtp.mailfrom="prvs=5111fe83e2=songliubraving@fb.com" X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 5478A1C0025 X-Stat-Signature: k8gx17g79j4rc6aqous1w986gj6kedag X-HE-Tag: 1650605059-294338 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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; 2/4 seems safe to go as well; 3/4 and 4/4 may still need more work/discussion. 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