From patchwork Mon Apr 22 09:44:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13638192 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 9D7E1C10F15 for ; Mon, 22 Apr 2024 09:48:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 342386B00D4; Mon, 22 Apr 2024 05:48:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2CB626B00D5; Mon, 22 Apr 2024 05:48:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 145036B00D6; Mon, 22 Apr 2024 05:48:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id E801A6B00D4 for ; Mon, 22 Apr 2024 05:47:59 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id AE9B21A0AB4 for ; Mon, 22 Apr 2024 09:47:59 +0000 (UTC) X-FDA: 82036691478.25.955946F Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf04.hostedemail.com (Postfix) with ESMTP id BEA544000F for ; Mon, 22 Apr 2024 09:47:57 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pZG8pQfl; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 145.40.73.55 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=1713779278; 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=Wj5KcysWhV15iWwyWAmR8k34EDiCULhuus1nvtS424B3o0BApveLmYuU3D3oJjf7+vyVyF TDNn34kh+M3bl4h9QFZKonloP1y4ghFrHDscaW/h9toj541BTj04sE2eVsUhhct/AhwYpY XG6tgUBw5JXmBQEHFEyDhXhwUk0DXKg= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713779278; a=rsa-sha256; cv=none; b=NQaIUeAIJDAJnNUKIaaQxQ7EaxZ4MuZWkP79+wzv3t00tAHxdWGx85MTvi0gTaniRFw5x0 rjAHEPr9rc+FvwgwU7YyGe6Tik+CygbftNM3ByBoaMmcbxjTDK1Hi5eRyz8ek0FjtWJhJb JrgvhPTAd5DyBAYYOgqF84bJ/azl3qE= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=pZG8pQfl; spf=pass (imf04.hostedemail.com: domain of rppt@kernel.org designates 145.40.73.55 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 sin.source.kernel.org (Postfix) with ESMTP id 27E2FCE0A6A; Mon, 22 Apr 2024 09:47:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05CA2C32782; Mon, 22 Apr 2024 09:47:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713779274; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pZG8pQflxLsEuJFglVKqJVh1hzZ6znU6by6zRe6CVzeVYUIAfkP3KeqnCBd341Ok/ ZOAQMatwn0MrxZV/qFh9l15DBEe/HrHpyTAZh+pCjnAzVTpL1PuxwVZAPTWRbs8388 FPoIBbcENyioCyFjKvGfWLnYLQ0jPXxHWcvQyPbJW6HlNu8cDhOXh9/zSaqXxmP2a1 ZQc+c66AbHHonWEZ0/NqO/wG1tPBotsJEOtsMluC1yKGZFNE6ftrfpAJMvXH8VQJx2 UifyO8EHPM4iUUB2xtq07CReWxKqTAgWKsDzYr0X0ychttFdDC3QIMNctMPSzamCNs t1CDFLgjmIpAA== 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 v5 15/15] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Mon, 22 Apr 2024 12:44:36 +0300 Message-ID: <20240422094436.3625171-16-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240422094436.3625171-1-rppt@kernel.org> References: <20240422094436.3625171-1-rppt@kernel.org> MIME-Version: 1.0 X-Stat-Signature: wibj5tg95sjgpbjfaybctjmtwfoj1kna X-Rspamd-Queue-Id: BEA544000F X-Rspamd-Server: rspam06 X-Rspam-User: X-HE-Tag: 1713779277-407672 X-HE-Meta: U2FsdGVkX19Muw/C8cl6afRDMwW++R0XwLKBxvCoHl38dixjozroA0hWe38pgc4jufBNwinrXYLSbeZ0oB3fymJuhRo96i8rQxyD/XtJ9+S7xQT7ah0AsIroMsVBDyZYC3VxRXg5zZgW6kWu3sq+4CK732GHU7Z1DBGzeOOn8BcJh7pRbiyjsj5xL1Z5RaChif6GV2Qryh8rgU0brFRTyMng9JNlwgM0DjpMJg7Z80ZBrgrW49HVahQW7ZWHPvxL9McCpQlULTe67SnGYYr4mEhW4OUrNmIzlGhzVQCN/Nz2CA4VFM3N5cyOiS+KIE6v0nN5kUbZq4dkkzktKGRMta0rd4rVq3j1Apx2ePwD/s41ISUOzjy9RxIDxoFMrjEdLQEr48b/MYJEwQw6Pp59PTFP5nAEGj6kJckiVFSxHc6k8JVBFe34as8ynP5V9l6iwUbgWflcPR7SWhLLy+VGa1g6H6UAzNj2B61FrR7vfUal3E5uAWm8ZCF18luXbGm9Anubcuvq4OfqJwZPDBZSQgbMR329Slh6ylJiEgbNBEiQ/BnCCZDgdOaIigDvU6dBYYPOnoCOJFFI9P/W56CF8zL68NKEknuXbYNWnNCI/2WWg4T6NrVL/OavE2DwUHAgZZvvM/J3Si8Vnpql5o4NXHPRITxzqwjAaPFyidzOAoNu7Ahcr2g8YuC1nr5SzTMysgM1dguwItb1/x2ZiiSKkT16E3mPn+sWg4tmQzrtjY8X8Qc66Oe9zmrpIORN8+2LwMTTOKn0vj3ZivE/EDygRl3G/q3byR5KYcEkklrV8/amdS55e/M4SZqZ0+My2xwC6bQu6203vuqWUQLMxvOFpiZsA48pVroQ/xX2uP8MuqjYym8lIruV1SqugZrLXaHC9DCehFGBDh9VFL3y7L6ycCRtyRzn/1FU0JoicK5v8kPi1zj4EigV6/yOaqrq9m+Byd4ez1oSFl0uI41fVHT PuNfPaNb eIeXVDaj9tiQT80gCLmLKFUSnTWJrNmDoUfh9 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