Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp957937lqh; Sun, 5 May 2024 09:13:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm0B7u7RYGyKpjurMvMwKj5wCOhOD1ZZLiDHjpoAIX5Ay4AzIu/IssVrqoADZIOKEyn5ran52QSMeOoEo3QbxPXEQPITVxvY4KdcSILQ== X-Google-Smtp-Source: AGHT+IFNR7JBjsRm6Ur2fL4bkoIQkFyccyomjqySV8pOGeEIbEze80bw/LT3vQ8KYEGRGgTxtsdc X-Received: by 2002:a05:620a:400a:b0:790:a313:bcda with SMTP id h10-20020a05620a400a00b00790a313bcdamr9332709qko.52.1714925607698; Sun, 05 May 2024 09:13:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714925607; cv=pass; d=google.com; s=arc-20160816; b=sk5HXvlzeNBDjBrkvnAJJkAOE9Sie+WpGtG+z4ZvVnWIjWTdNclwHOxZZ7P2oStann tskROwcV7xti4UByFm3w88VKmbBiiN+eEXL9lWUDKK4YWGhu7Foohh9WPgUBaQ2PvKtQ tPLgGvTkI0RwDeIzbK+Q5/F0++v72aqQE+hdvBO1i0swiSm/G61zOTW1y++lg0QhfMgH M6x2IUG5Fn9ehYEkEZghk2FlHnGWtDy9dn6aeHc7g7NvQNZzGe8c0T6ER+CmH4kXLabx +2HSbyM/92+/IJcKOX/br2m20UK8fqWpUcAEn8NJdGttehtq7XWjxq3U8W8uHuLlxOeJ w/6g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=lhsv45r1t4Tm+Nf53YDSZFCWV2ksRDlGBGes39kXPmM=; fh=Hur1Ox4UVY8CJ+UkFvS1tjjuIJbfjIxUd04pOdDk42c=; b=OBfqMIDo7durgP7YuN8XERnf6JtF6Zvim0dTFHUGPokXrA1GoLkKJlx+a/NDOvZj0g 2VAhPAKQ7W++01aIqgL+wAkLI2V/5kttotmyfcTIRfj1gsvMLdTKXvwbwlSYk5Y3EZO4 RG1DWKBhcRWtBETAFTMGrg+WYm0IRQqgfes+yMeQIvr6PtUePuKqOend6gGP9kRZ1iEv 7Rb3RWVP8GXZDoMZRKGCThp+N87Lo3/ybkGUw8uteuxIG8VVwACY8F2w1UQUIn6jeX7p n+l/e2E5u/fEIhfc4mVFVZr6SVNgppzt0q0RZq8NjSIiEAKTAdjZkB5YRpgxcAp4QNGH luCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nCjy//GN"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169052-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dw19-20020a05620a601300b0078eeda78c4fsi7997220qkb.14.2024.05.05.09.13.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 09:13:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169052-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="nCjy//GN"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169052-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 62F621C20C51 for ; Sun, 5 May 2024 16:13:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F3B17F470; Sun, 5 May 2024 16:09:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nCjy//GN" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8874A381D4; Sun, 5 May 2024 16:09:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714925397; cv=none; b=nzyir/fhxexdctENq+kELRpCf9BFW4BQfQef4GxOKLBCihyN5tPpOsojDEr80TPioUd3QmgDT1q3QJciTozTj1WOUz6I/r4dAvvqy7La16Cc2jZWg5Sc7AbOwGQB1JqeQPiflzeAiAt4MP+nfgcfkV9W9YHWtXO7+lubIoSQL/E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714925397; c=relaxed/simple; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YgmC3nkyNzOP0EYbTDuS/Ydd6G2K/iA/VjpkV8brbkrAoIDwoh8xGKVSo384+ykXPAwwjMj/leEkYypN0C5Rr8RUFlkO4j6Pu7L2NU1CMjBB0DiIex8vBSi2CL8lDMT/XjHJAMwyuhIdFsw/pcp3WRgXZki3vgEHHwv64lTQn08= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nCjy//GN; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DF8BC4AF68; Sun, 5 May 2024 16:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714925397; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nCjy//GNLhmqA5rs+dZZl1QCmyYSxaQlXDUwvYrm33awCSrxBgoNQtgTEd+Og5reU 1zfpiAJVvYvH9wItGrJ4dlyOo1VBxfVQT+0TPSwS6pBwlj4x0T0vXWLHRxsW+NBcov 1GBUBgTju3SAFfkJpbUB5d/D4ixYKRZbSC2UwjlZqcgVu4MQggxhkG6KAr21NEWq3L 0KkdIVsYS7NgzJvC2au3jbEGcFX64kCrdx6ChAeAXd70cAqr/40KbW438zRh/iz+Bp AYkRBsIesQ4rIkXq2RH197dPeLajwJNlegZb6k18Wf6vs/nf1+m+19Rl2bg2C/92qW uPmG0zhErxdXQ== From: Mike Rapoport To: linux-kernel@vger.kernel.org Cc: Alexandre Ghiti , Andrew Morton , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , 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=20Mathieu-Daud=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 RESEND v8 16/16] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Sun, 5 May 2024 19:06:28 +0300 Message-ID: <20240505160628.2323363-17-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240505160628.2323363-1-rppt@kernel.org> References: <20240505160628.2323363-1-rppt@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 -- 2.43.0