From patchwork Thu Apr 11 16:00:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13626225 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 672D8C4345F for ; Thu, 11 Apr 2024 16:04:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 08F536B00B1; Thu, 11 Apr 2024 12:04:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 067386B00B3; Thu, 11 Apr 2024 12:04:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E70F76B00B4; Thu, 11 Apr 2024 12:04:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C79786B00B1 for ; Thu, 11 Apr 2024 12:04:24 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 994D71C10D8 for ; Thu, 11 Apr 2024 16:04:24 +0000 (UTC) X-FDA: 81997723248.13.929C190 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf28.hostedemail.com (Postfix) with ESMTP id B87B8C001C for ; Thu, 11 Apr 2024 16:04:22 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=SxJIf0UP; spf=pass (imf28.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=1712851462; 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=02o19lmQVxWaBb2US9j6Qo3VSenln0dvTRKx8Y9RL2BnOQITaSswt40sdsMnYb/lOQmW2R B90ayMxIgaHIo1smsZmnjonDc1gpw6C9k7AEHzE8M8RbYkPG5imnhxuR8l5/8XjcNl2V91 Dyy5H9wP56ZyE5FfkwbnmpXnPAedf9g= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1712851462; a=rsa-sha256; cv=none; b=0oRR5CKukFIGvlVY/46GpJjkzJ5iIPZEAI2zU37uJKMServeS5VRQ9x7iyGSrp6Ms2udHz YRDMyDGZXHEXwUyrNcYSY223fxnL/fZJC/oA7SVTJWwostSCdpjfgIiNHR8BGro3tz8bVC jOzvjBruVslgjNgNcbb4ka4L4HG9tcY= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=SxJIf0UP; spf=pass (imf28.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 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id F350F620E6; Thu, 11 Apr 2024 16:04:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1098C113CD; Thu, 11 Apr 2024 16:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712851461; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SxJIf0UPAU/LSJIdhd5VJkQ97hM+Vopgra/mjrFIBCe+cviCEtH8l//T3816NvlXD JNi13TTDCZkr1Fg3WXdPtQ+MZRUJwf1k1qRoeQyxufSwG+h+JZeR8/tvkEBGc8TcVR 4kRT3j5Stzw4SWMef8fiEbIX6jEtbDFYCl6VOLTAE7qUe+BaJYoN70qBRU9UyVdRdK SnPe3YHBtYQkdMJyF6t+OlokdAyToH6ZaN+xGGpQSe+9dEZuQCdf7HQ8nt9T2j9jQX o3VlR73dRPQLNATQXpf1b4JuRSG48Vtoma+TPIBkV3i2OZl6wAJsdHYuvFMkZ7Tt+a /PvhAgJJc2OoQ== 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 , Michael Ellerman , Mike Rapoport , Nadav Amit , Palmer Dabbelt , Puranjay Mohan , Rick Edgecombe , Russell King , 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 v4 15/15] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Thu, 11 Apr 2024 19:00:51 +0300 Message-ID: <20240411160051.2093261-16-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240411160051.2093261-1-rppt@kernel.org> References: <20240411160051.2093261-1-rppt@kernel.org> MIME-Version: 1.0 X-Stat-Signature: 11i71asjbw9w5pix8rw796x7kuysqi7c X-Rspamd-Server: rspam10 X-Rspamd-Queue-Id: B87B8C001C X-Rspam-User: X-HE-Tag: 1712851462-339800 X-HE-Meta: U2FsdGVkX18YZd3mIEgAxCRughQawof+ry/UGNjvkgrI+jnUqBqoXn71yIB/1aUein/TMlpIw3clVnybYFYUKxweEb4prNb9xISaiA7GQzL81F3pg3aD1zOpzsqKGumibQt5fCm7LnxLdyLbyjw354aQJyN/KfjGKAvUaJ9JHutYgDIcGoxFgJKQiaX7i5c2e/xj2xWPr7ApHWg2sJgjAhQwDZO22cgwLxlNNzx9XO3VphL11mZqlXwvrCpsqzaHuMchnZIewgLkhUPBi/IUpVkKc6uDuxctlAMgqsbdtR40r11M/JVW/xhJrKeg09I+XMt82S2eM750kfqC22fSh5GR1DN7++qm5jkw959VUw864ts5DdsOPdnDc2vHEJwTwwa+OK/XsNSJ8eRI3s5fauFvxGRklvgOKZibCIcktlzLdGXxhkJ9ImOxH3YnoeApLggwzgtShg88q1rZwoeFHA69WNGnU8fis8gIrmAvdv/CiiXWmUQXV1J8DnSN28jpVr0XdSOUUT1YPeEG4rbsjV79mT9DDRnSBPJv2owHTJR2bFsQ58G0yKuEx7L6Sww7J2exDhE12u1gmaILUGoK6SQe352y6eJRct0amJntDculC7e8AMCGYqaTaKrwgCwCbW0GI6l/TOPpr6hwD390T6SRo984Ob2BS39meZM84bYl85yk/OBuCe9MpWyXR1L2XeYFl947CYOMlgMmDdN5FrmdL7mhPVUfhUuTdvoWOEd6YSiZb1zICJ3zrA1sHAK8lMC8N8MAvqxobVOPS2jvLsserc9IR5mlAj/yPjIUpk9lWsBoQI+F/PYkPnGSadMco0LDT9MNyVeGzLoWWjFTghNYKKmhm4Nkmogh06CL8ed73+KkOvfExBc9+ptKn6Rd5jHWtmwwzW/4/O09Qacd8PVCsmgH+MSE0dZ0/KfkRpkppAmNVbPkAb8SjqPwqTajffVK53i773tHItgTLky dXzAWXcI nm6uv4a0IfFl/ClpDvfw3iiG2pfK/UVoFwwOUwI4VaDSxxZs/5zSHwvPyShACcZZeMzrvAkqvaEtDWXjbmVE57Zsb9GLAr7h81grHXgqE0TW+KQtf5gRO7f6HxnVEWQre7mHI1Hqr4Z/HzwwM5uKnkOpGtn3Q2SBvdyJI81pf7Ue3QV4SSUDyvHAc/ORqaYBjL+1fhwCXH6vOLT1UzRDqljnWx7S69tAP4rLkq0wq0/96JcAdpUmA9Plq5HcGYHZRXOduj8M0wAcHuE/uo35s6qtRUMvP9OttHbTe/gVHgvaVw3InoYin7riXhAX+AGeBYrIP3m0F5NCuKndP+OdvPJaYiNdBccPtAL1/9iTn9BIZrFyQSSzGGK5fHuf99oBMRaRzj2a/pKF+X4w= 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