From patchwork Mon Sep 18 07:29:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13388982 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 A48B1CD3423 for ; Mon, 18 Sep 2023 07:32:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2366C6B0292; Mon, 18 Sep 2023 03:32:25 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C0C46B0295; Mon, 18 Sep 2023 03:32:25 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 087D06B0296; Mon, 18 Sep 2023 03:32:25 -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 ED0B36B0292 for ; Mon, 18 Sep 2023 03:32:24 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id C4D36120BC4 for ; Mon, 18 Sep 2023 07:32:24 +0000 (UTC) X-FDA: 81248900208.09.E8E292C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id 26E8A140007 for ; Mon, 18 Sep 2023 07:32:22 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Vnbzf3Qh; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf09.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695022343; 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=hpRvplrQS5IqpGgGr3tvfF4hOei026V7oQnE9P+m2j0=; b=QZs2lXMITSP4H0WxEo8k8I7uqs9mcaTH0F+984kKREEAt+nvjV9SOkKw8IMekmu5JkN88L MOiLJJwt6yhyDUeYBNvEgswYfXdE8PyXVXku1gI9VErWPLhUJwLtorTKfqDYR/Jh58pOd6 H+zHRtNif3brt0hZjFY074HnSpvET5s= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=Vnbzf3Qh; dmarc=pass (policy=none) header.from=kernel.org; spf=pass (imf09.hostedemail.com: domain of rppt@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=rppt@kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695022343; a=rsa-sha256; cv=none; b=agfnUnAj1aYIDsQHS+qwIfPmPbSOiCOLtgl810wZW6q3rh61K8tSanbLu7zT5KomVc9cAx YSZsLWVGdH/cUU8jU29s5MWaQgWsCDueqQbVvqzeyiOGOkPR6EW21WmFa+CnUsu8ofKkyH fpNK3VLtlj3BFi5vRNEFvQPRyPeNwIw= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5D75D60F9A; Mon, 18 Sep 2023 07:32:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6BC40C433B9; Mon, 18 Sep 2023 07:32:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695022341; bh=07Jp3LphXzl4EkHja0JdIUA/xjHpNGiZuguIXloPztM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vnbzf3QhQuVmwYQAf2Mt0WSZBefd5lhLSFtkXhwMC+n+X7N4ki+6T0boDwsgMr0XN AAdXg1yYsIa/lFW8JGjF+xmiLYY63eHqaMwytJIlEVwOkPrMrojuYJZhQpE797YZju GZcg8J0n+fEArc0GhUtiTV4LpXaeVrImgv2qDiS2pZ01DSA9wJwPYqPfL7KPbaX6bE QYQH9HSRdQuGBz3raOjQKyLrYnfzs7cZoMWOYQ1LzctZYuLHDNxMU/K31vWL6RTmKL zi7xoAjilllhk4DMDBlwvUkOVzwZl6SwuVwOf6rk+tbCRJ2s6/D0PIr6IMDdrgSqtE mxvGlqxn371yQ== From: Mike Rapoport To: linux-kernel@vger.kernel.org Cc: Andrew Morton , =?utf-8?b?QmrDtnJuIFTDtnBl?= =?utf-8?b?bA==?= , Catalin Marinas , Christophe Leroy , "David S. Miller" , Dinh Nguyen , Heiko Carstens , Helge Deller , Huacai Chen , Kent Overstreet , Luis Chamberlain , Mark Rutland , Michael Ellerman , Mike Rapoport , Nadav Amit , "Naveen N. Rao" , Palmer Dabbelt , Puranjay Mohan , Rick Edgecombe , Russell King , Song Liu , Steven Rostedt , Thomas Bogendoerfer , Thomas Gleixner , Will Deacon , bpf@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 v3 13/13] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Mon, 18 Sep 2023 10:29:55 +0300 Message-Id: <20230918072955.2507221-14-rppt@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230918072955.2507221-1-rppt@kernel.org> References: <20230918072955.2507221-1-rppt@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: 26E8A140007 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: 8493stk45qj1p3ixtukoe45nrjbxmmor X-HE-Tag: 1695022342-966688 X-HE-Meta: U2FsdGVkX1/bqTqB6SrYp6g8x2NGm54lTyO2TPVN0+Lc0Qo3uEuJd3DeCBDw4atMzYMm6bt8GKmB3o/yRNZf38NIpNCnA4CRw4fKArJezYDHGeus+/Flf8iLq9HC3IfuPM7dXxHif23stir+wyc+oQ6G6xAzuaWYlLfJxgtEIwom17X+jdD2RPbVi72yRLL2Xks26Bt9TCV7jCkD9oEwlBVcyN0pZ23ufyWTUNt0rHx2gnWN9OggeGlhyNlYNbueojll0W0Ta4Amk5TnsY7Om3FlGzyOqrBFt+y4yF1ZVbpGEgZxNnjwMM9Dmf42BSRjY+ZvgUqovQ8BjqxU7b7rMSIhmeG+Gmjtz9WvIEFh36PwyRl7jUOXg8xcO6jygis97n5xBoKqqRQzFR7CErepUVEKX/Tocsx5ou1PS//vlp+OEcdyX2FJwK9BvGVAMjT0S2XkG4II9lo7ZoiJR4Mn38nRJmkq/S5f5ckhYRreSf+Ziejtm9DH5LgZMY3w3euxbZZ5kLGIOrmjNlt8zO7TOZzte4wzYmJn1tIavweFFGLXP0x6JN5MajOwSMAH2IXlvsxWxtm0S13FsTqIDl4+6vS0Crarpp5tmlrOwV6AVZ9G29D71J4SMO0besWYspyMpiD86QA3JZCCdrzIZ83gvPdCfGIhddnK4GX0sRRTwMZFdY+rXfG7Zigsumkx1DLSVUGTBNhpWcvSKS165gtGYuhIWiRor/GCzREeXUiZkfVrSi8OwcqJjAs+ZzOdQJRQ3fpjYaczXZ3ajYAJj4AgDRWlPVoh3pSimTxkWGbHtVIP7lB+3coJrE2+C0JtDbtnGbDfd8nMNsGumegQPpowN0Z7LmT4yd/FXcYCV9ZiZ51+Fj8GmhXF6T2zCwNboJEYLQkf/XX73d7V1xWC0v21G2KaTO7I0WIJXEXA/KGrGpcouPapEvzXWT52OZu2Ldtym3Eb/LvH0/tPYvTMUU4 7VZSvHjp 5dNW3hjqCadW1hk3W+klKNAz0XlHa1Vl8wwFyww0wt44qQFTveLYr8tcliaUZFITCMO3345We26WsIXtNxj/+ANS8stTQ52qxvQP3xyk6L1mw/cr0OYtJ4XjhrzfSmfjroIKvD5YkAvB/N31NEBynkMNbsb4bNKXILfvWZpmSv5SOVp7szSiuyUF7t9PSVe8m30yE6lBYsrVnhZ77HMI8Byk49UWrpwSsGnv7Q58duVybyoZvzPb1ohh5W0OHHyaQkYQXaoayc3F0ZBlKAXsvV396u9CDRPprtBZpHK2TsHwjaZSms4DhMqJ4SVT0zYxpr0CHGD2F5vhkOJUhU97Q0udde2NNxk6x/JknXaFAUBAJHzO0rzaciMEtRfMhXjeGBuOn59SXSyMRLUtBlWacjDgErNo/hUpbvjfCpqyLsBHTf/v0l9mQK5AsSPe1nN4B5qbbp3UWDBZIDAxwXPfXNp+4Ng== 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: 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 6a906ff93006..5be11c906f93 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -42,7 +42,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