From patchwork Mon Apr 22 08:50:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 13638051 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 34EC6C10F15 for ; Mon, 22 Apr 2024 08:51:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BCD246B0087; Mon, 22 Apr 2024 04:51:54 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B7D7C6B009B; Mon, 22 Apr 2024 04:51:54 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A462C6B009F; Mon, 22 Apr 2024 04:51:54 -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 8729D6B0087 for ; Mon, 22 Apr 2024 04:51:54 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 365A81C111A for ; Mon, 22 Apr 2024 08:51:54 +0000 (UTC) X-FDA: 82036550148.16.83136CC Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf18.hostedemail.com (Postfix) with ESMTP id 271331C0002 for ; Mon, 22 Apr 2024 08:51:51 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eVoUrqTz; spf=pass (imf18.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=1713775912; 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=MBqyF46t8SaV0f+LhW2jxjE1FEnF0evSQb6D8MAVThZI+a5Qx5HgO84wO3bpgyVBbIJlBU O8xr+2I2UKqJJBN4Ww1z3gKuf8TyCGk22AxXMCefqt0nwdWxQp5Y0+eSuU+lqR0YZpSm52 aKET5xYcAGG+HF1JVlYxJHLlfzfEmJw= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eVoUrqTz; spf=pass (imf18.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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1713775912; a=rsa-sha256; cv=none; b=tNax4wyX8ghNyjv+Qii/SV5cgZ/8//6fYQpdZixuMsShZeitNnL5sTLtY2PFBmnSEKjaYE ZvbV2GRJwWYp0j5PA7SPAFgnVNpeLBvfPQSRSMmXQA1Rh0Ubc7sUOF+udCT4AQd4mdm/Ry fWeuWFuLyKqc1KT6a/nV1wikjftJ3vA= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4D73FCE0A08; Mon, 22 Apr 2024 08:51:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 38C17C2BD11; Mon, 22 Apr 2024 08:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713775908; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eVoUrqTzKvKDMlRbSWxMwMfDr77F/fKfaXZo2D+M3jvbmz9/9rPDY11wr5uJd9WHR 73qR6p9MsEwspl1mw67ZTeyYCQ1FdiUxyXu6GbwzDfstwCeP1NpczqvSY3Ba3Z0ExF qBMPc7gnPplQ3FSNK9aAmG5M0zlt/ivtRKIDO9W7wAAOdsxTPJAPWUmM+W1fP4IdGd KAT9/hPs4sBh1ZzDW2QkE9pzzbAWiIcuTpjmeUWW8EYfxXBJk1pSD+eFGRvkHE7PRe d4xcLwN7QI4MoUdGlr27hLmYCSgh98aXj/Vzt/0ZDsn1XD4giLiMchiuCvfBPl67Xb qXJvsrGnAVEqQ== 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 11:50:28 +0300 Message-ID: <20240422085028.3602777-6-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240422085028.3602777-1-rppt@kernel.org> References: <20240422085028.3602777-1-rppt@kernel.org> MIME-Version: 1.0 X-Stat-Signature: uhhxsud3q9578b1r7bb7qpdgxegwi53o X-Rspamd-Queue-Id: 271331C0002 X-Rspamd-Server: rspam02 X-Rspam-User: X-HE-Tag: 1713775911-857952 X-HE-Meta: U2FsdGVkX1+4COM5AVS9rEyCfvFkA8CKeU3HNm0Kr+0MydIXwzPcQ+7UhiJRbRYYD9LcZr1/rU9GLFfgcZfXMin5WQiN+Yzzdl0VggwAZ7WiK8uZB612XJJqiuF198vw6N3oMxRfE2zsGYZFMNZlvmky8asECLyUj8lkB7LfLgwfLvfHFRUSbTTHq1gP+EP+M56kq7rx/Cb2QzBxpR56Q+A7lIAZiAM4cPCUacVt7oA+O6x7DhXkyqVgOey7coR5Gdy7DZe3fkjn2ZKw0DlKzTfAA5/UxJTsq9/ao3Nu05JPytMbGDVS6qk+o7G7UZf11ytZNmcif9EuxhPpHvbg/DnFf2cw8kE6H1GJXzc9eXhK+X6u5CYGTgXQvkTHQ6wjndp2LEES4OPhlcOhJhcvSpKRUCfbJU5ERGg8yv65BmYZSQcWeh5JmAmfOxx8wK9AHCvXgPn6tOgtgNzaBG1VstUS6vPE6ZtXo2TC5vZMaGia/bPoD3rBkXMuTHNOw9DCDTnsL8jEJjCCMs7x4lB1qwEYM/9AnJG9jn7eryL4EALo5zDubqcuPnTkVMIStvXfhHHtOrBOw5nMMmZn8Louu4SUjTfHGmdqGDygQxQMeZJNh2paWs4nuCL92EZ745zSf03kb6+KPeTZs/VawYU4zU4xsFuCnrECcdNQqvFYZ3RIrs5su21nLG7SeN+qWMYCKNYu4RBirJ3tZTto0zyabJJ3oVLgSo8ik3ClT4sal0+iWpgcYKYcLFcEVmzjVTzye6gHaVN3Wmv0j/8ISCnNe5QsrkjxYiZ5tEl01X/hqloRPHd6JzYiA43vgFBtvYPi1pP5ndOJRix7ofbEvZrHKxXf3TjGtAqMryHlCqeXS9C6mXXGA4brv7fL/AXI9qIHC+/tdKftp0wuOmgUCS5xf5kRIM91I6mPuQ+eeEZAw+n+MDge3bL+wOSe8yUeMkuuIM/FQkTediynEP5bIjQ vIt3n5Ap vr5ZcYoIV+/JwPd8yHgHvki1q1mI5nv+hgU8JqTRGfKqtR00kHD83ryXuhmNIM8oNInRUFkcJ4sqFmvKsZDsfizz+Ous++oiWYGI1JBbxCOdlfLTW2Ce4W5mAmVlfJC7iJYzy6Imko2uZL1ShiTPYN3cszNulC3kvjMPpMIRfMJ0K1Rxx4EGZLAOX40mx0UgOvWJBFgQERdJdhMtNkoAELOJmqf/+mlbfjpH6SkZhYoqPj+Pa5uZsfDEa88AFeYcrrAV2mwDHz6UExtoBwGxCRXHTsmv/D/yw3VJTbzChKPHHDlfEdjMksMFpVY9BesAwfMzVCVpN7seutK1D9AIqZNo69sQ9hXw3bK6LunGtD9X/0gt4IWleips8jLW67HIrOctyTivaIm4oYFM= 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