From patchwork Sun May 5 14:25:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13654397 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62DC6C4345F for ; Sun, 5 May 2024 14:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cBAXKedy0W0RbUae70e9BeOy86RsDqeib7aAhnN5sNE=; b=ZmQ6ftuYgn0VTR 1yj1ERxLcOTTU5Zwdyf8ps93gDBpgWHJnPf9TlEZsWZN9Mdibf+J4iUwBKYxDNUc+l3Q9pyQ2J4p1 DP6TxaGpsrtcv/e4zMi0AQo448AS5jKDUkVLOq0Hya9z1FbRFUWa3Z8UXUuORzS2YLdoXO4dFmmdE tlHWF1KFTbT3J5Rihh1nwNqJ58+n0wM+tJhb72kpsIi+TEksZWKzNKmElMb4xaLea4HMWS5ih4dT2 2i9roTqCM+gP6ZuMDBdvDX/dZ00zMcIlB9PEHEZjgcrOgCz72+sQJdfZfSvT0Dosu5aVe3B9lIt7r 4MaQ2btbyxyWbrbtpJvQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3csC-00000004UUC-44x8; Sun, 05 May 2024 14:29:52 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3crz-00000004UKF-2fzv; Sun, 05 May 2024 14:29:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=lhsv45r1t4Tm+Nf53YDSZFCWV2ksRDlGBGes39kXPmM=; b=E5bChvVuMIadOuT0eqSpRC8I+R VR2/eDjG11mVdrvIfzZeBUWTQsGca8g7JIeMEpZoUhijb0vQn/CCSCV4b0z0/NZrZiujIBgMy50gh QmsfufNzZsurRG3UiScjVLkSTSk6DVe56TZHdGNlv0Dzr1Dstnn5i6uM7uCrwzK8x/uqA0xeYAU/V pMgH25JHPlfTiu21lTpJOmrap895HY3uP4LHCdjJiQAXf/oLtLqj+nreucI3uGpviG1Q5f39gu55i Rf3XMX93VKH8cJwcU5WFbvFSxCpPqh2cY1QDwCbFMk+f78W0gdNHACph09TCXownJq28o8k+CDUtQ YhFzbUxA==; Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s3crw-00000001M9y-02Vk; Sun, 05 May 2024 14:29:38 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 7C8D760C90; Sun, 5 May 2024 14:29:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA7B2C4DDE6; Sun, 5 May 2024 14:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714919374; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rIzV4WwcX4flP99+xQJRz+y6n5qM8s4Y1tDnLwOFGGfiupCbYenRgLuEDlKBHSVq4 VnvQLazUZzKKIGULThp3xl6bmKDuoaEuFmKhgf4oachirRXtnXIbNuyEL4TY0L01Cg VEOKM7nEDciJw8kyu5wKI/r7qYnaHNPy0NUODhDQu6CdwEss+wsxJWOHNOonu/oreE qMuP6d/ZlAFAdIeuto3cPceFKdHGgiYh/92whHBMSzI5vNGRN4yKejfFXKQuJFykad pL+M0osv2QyMs4JPoreo3/HbeaI4YzmY/islIV20euO4C/3egO03ZFXNTm4ghxyo0i Mv0R6nEPMcy6Q== 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 , Liviu Dudau , Luis Chamberlain , Mark Rutland , Masami Hiramatsu , Michael Ellerman , Mike Rapoport , Nadav Amit , Palmer Dabbelt , Peter Zijlstra , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= , 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 v8 16/17] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Sun, 5 May 2024 17:25:59 +0300 Message-ID: <20240505142600.2322517-17-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240505142600.2322517-1-rppt@kernel.org> References: <20240505142600.2322517-1-rppt@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240505_152936_504045_D79D46EB X-CRM114-Status: GOOD ( 14.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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