From patchwork Fri Apr 26 08:28:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13644313 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 02EB3C4345F for ; Fri, 26 Apr 2024 08:32:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8F0086B00B6; Fri, 26 Apr 2024 04:32:15 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 89FC36B00B7; Fri, 26 Apr 2024 04:32:15 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7190C6B00B8; Fri, 26 Apr 2024 04:32:15 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 51F8B6B00B6 for ; Fri, 26 Apr 2024 04:32:15 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 0BB321C1164 for ; Fri, 26 Apr 2024 08:32:15 +0000 (UTC) X-FDA: 82051015830.30.2ECCCEC Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf02.hostedemail.com (Postfix) with ESMTP id 5B8AA80003 for ; Fri, 26 Apr 2024 08:32:13 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=vQ8mtMLc; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1714120333; a=rsa-sha256; cv=none; b=pgWjvDAjmPYZJ8c9fjiz92DSlASYeSd2C7LHAekuHQOLmKbrbioJ5zdcz1E+C4i2jK+VPT xcVppYcIX5We3kuJ1HIZNXXlBw4oc14OR/3KLyLq+92kFcVPXaGhHJhyNpNGaKYZyLajB/ 0iWN3THBQAuB5Uu7EtG47ASPEOK1Moo= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=vQ8mtMLc; spf=pass (imf02.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1714120333; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lhsv45r1t4Tm+Nf53YDSZFCWV2ksRDlGBGes39kXPmM=; b=LsylsHv50oscKvV8ghHGXJmQpdtZImFBuJ35hadA4d3uHV+Hurdk6IEAfkEhlilSdxRE/A ail8QY8tEMGvIU5ITmZrjdBJxaT08JKo2goaxlJxHE7Zv1sNt/ftT+enStOKpoltFKFudo DwHxw0KCAAFMd5tCnXagONpXvXJcIj8= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 99E676200D; Fri, 26 Apr 2024 08:32:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5724C2BD10; Fri, 26 Apr 2024 08:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714120332; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vQ8mtMLcrimNPX91Y2YQmvdQw4cikExY2pLxFz+/UT+e9TLir0xOZ3FBo5RrzGpzb JWR44T3XJshDZMYXiba7l/A544v2LOC9MQLrngwOyrxDozIHscwKHoIb5QIGzqfNXg hlLFV/4Q2E5d2sHTZ7tlXh/zsv1dp1lvJElyqwmb0wchrenBmob4Dc1MtkVQ+MEtdh 7oC9vfii7ckW0bsH176/J480uOF/fn8rgcExibP+RvW506G6An6Z0c8ibMrhm9JIVO 4Z8XvkBOO1+QWHViSo081jrAt8THz37irqAEYTIKSADYbtZr55Yu4BB7vII7ZC4wKk Q8kmGiXMxjpQQ== From: Mike Rapoport To: linux-kernel@vger.kernel.org Cc: Alexandre Ghiti , Andrew Morton , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Donald Dutile , Eric Chanudet , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Mike Rapoport , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , Rick Edgecombe , Russell King , Sam Ravnborg , Song Liu , Steven Rostedt , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@vger.kernel.org, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, linux-parisc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, loongarch@lists.linux.dev, netdev@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org Subject: [PATCH v6 16/16] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Fri, 26 Apr 2024 11:28:54 +0300 Message-ID: <20240426082854.7355-17-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240426082854.7355-1-rppt@kernel.org> References: <20240426082854.7355-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 5B8AA80003 X-Stat-Signature: wmimwtyr7iq514rjt5ftzksg8f6ztcs7 X-Rspam-User: X-HE-Tag: 1714120333-342904 X-HE-Meta: U2FsdGVkX1/SqCDEk2wJYBfJpbcdA/Efc4Ov/HO6KI27mNP2tOqFtVpbffXLat4QwgviCfUzma9vpN0ENhRElCo7ha82NXtnDJ9wQcwY/Y++OKjRImgmjd8v431ZakQxZnTG5Ja7/UWLWbrgPYhYUKceMwyVcM9jTHa+iuWP6GHm8bH3WcFOcmBvQSB80xhWN1q69qZ5A+GLsd1RkAegkUc16NXaQ0v1BpQn3uFiWEhxhx1irDLxkNQZoeIlFRxPojUPm66YZv1O1tCnL0lLcGH1j4Gr1LcmaNn+EMflftfg+nnOybOnm0xKU62/AhtbVLfdWtoH5C5UmYabLsFoUVT1KrUMUiGmDAHtJI8Ny8X3gYKrLdHFjRSabBdHplunl+dfI9wVHTb1eNzbhv+yEVguG/7xTIAGYly/+m2vfvcP77edEEEiVMS6yR+XWV7W/csbkFtqYZwR/1mQTqCyQ0PY7ihF3iTNIwUskpaVsG06GsZLutnzNOitfjHJBwLKlZ82oQWySioO5KOZqEibqjorONeLmwA6n1o8RbXiUx2+TlPmsjmofcVNicxl/k5wwyZk24r7jZqKgjtevV9Nte4VubXpEYp8aggMudhhfV5GsPz6001/8TZJl7j7onpcI26D4d9aBjm1YxhjATfvbfodVhG/9Lc1TPHpDAjmB1Ln4XL16jpQVinBgo0pU1EQcYjfkcLNt0WLZJuXDGOCpI+3dEIEC1PHjTkVQT9wcChJcj04W4m0TXMGaDypOjI/p80zf6OuX8Ph+xVX6N4WWaesKVJpfz816Ei31wtUHstCTI/z0rQu7qBtKhOm/gYMtfGbIGT7UDKr9REtzUb0JlyH7EXZHvE0Y8zu5JtQgEGYTnrHe3fPVONbs5bsNfkotR+x5jDcLuwVkTlkRs79IeoQIX/OUVtj8wrzkn3rtHSF0fhRE8J8WpIpc/mMG53oYUwpGd2GjxDHIQaNl81 +GbENYZK Syl+VDu0s7ChsUnXrIKtIoa1ZwHrq2Zbe/RyoseEllGhP8mj/BLXNvz0TYRgbILCmKPckzpxXHwcjc6R7HrMTg1A2n7jYQKbSZ4+8TzvcGjc2FlJUxiYULvTVn9jyS6ZQbNiUFTi3tWFioehOPnvmzyZHY5ZdgPf3Fho7jcN4CVMY79lzwvTg4yeSg5YDTwCLUR6yQW81hp/gPFBmARDrEY8FPa/ajhWBT2icinrqeEbgz4Omw9K++iV/gWnXoQuhHK9IdfFnRO40O/HDqGm6S/Oud8v5L+XBzKDmmbEzT60DTqptuQiuFimtUtwr9ZilP4LJkp5LCUJmjCofh9PU6XmFiNWe+Mlx9HI3JMPKixVErvY98KWE2mUECCPhAM2f6qYM1e8bPwngxgHxOnQ9SBaoJmELpp9ziMjPoL9SOFyuBPat0mz+D8fFgD/4lExvTfLHch1d9ThFNf/BItRrq2DJX6+W3pqy9p6T 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: List-Subscribe: List-Unsubscribe: From: "Mike Rapoport (IBM)" BPF just-in-time compiler depended on CONFIG_MODULES because it used module_alloc() to allocate memory for the generated code. Since code allocations are now implemented with execmem, drop dependency of CONFIG_BPF_JIT on CONFIG_MODULES and make it select CONFIG_EXECMEM. Suggested-by: Björn Töpel Signed-off-by: Mike Rapoport (IBM) --- kernel/bpf/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig index bc25f5098a25..f999e4e0b344 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -43,7 +43,7 @@ config BPF_JIT bool "Enable BPF Just In Time compiler" depends on BPF depends on HAVE_CBPF_JIT || HAVE_EBPF_JIT - depends on MODULES + select EXECMEM help BPF programs are normally handled by a BPF interpreter. This option allows the kernel to generate native code when a program is loaded