Received: by 2002:ab2:3c46:0:b0:1f5:f2ab:c469 with SMTP id x6csp130186lqf; Fri, 26 Apr 2024 01:37:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXXNQBnsZAfcZgbgcuzTXCpfM3V55xMwKYAeUHZ6fzG2towByZHt6w+2dXfQXExSTeldpkkfYT9Q3cx4wb/IPwoUmbkzOee16GC9hDIKQ== X-Google-Smtp-Source: AGHT+IG/D+oNHAda1UfRq/BmuvZakVpFk63HEePNXBcXxdq+R+Jeup9mQNKzCno37wxAkVqjHgCU X-Received: by 2002:a17:906:1901:b0:a58:7f5f:7ba with SMTP id a1-20020a170906190100b00a587f5f07bamr1539892eje.52.1714120664971; Fri, 26 Apr 2024 01:37:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714120664; cv=pass; d=google.com; s=arc-20160816; b=uYnUD9wSUTCpBJTQTCzh/DSgRqWqybc6eyx1Dundk5RPj6nh9TsaRZLQ0IJlDYweZb +pxoq2u6JnGGNRyWQuO1NyFHvl90y7yYG/pbrCDJaqytSRRbfcFxd6etL8HjoOENNUti Jtsg7ywznI+by3NYyJgdEZAWBnn0oZPvWiD0Q8EJ/1mBSO/50JTQCMz87OlchbOUgR2a 1RCnrETgqeTVcvq6NY4ja4LRRz5q3QbfJcvbIjkTe0HZntthuhg3jqqmmCGur05sku/p 4pjAsehuXHtEl6+4HVSKDjlhwT+t5089Rm2bfZQiglOLmFrTJkc6OqfyUIMXiE6f4QIk dZ/w== 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=CzSJNj8w8iUnmlgWvNYhDvD5pl9OAXL/ljrL7Y6PMxw=; b=i3YTaCrhXTomXZed+78ah4Plsq1OnByniRc2ObtnV5hmhkNvFlPKJgVdxP7dPBHbXl b5D77GbRqnLawnVIpYdaXDgyDplCvIv5qbzi9r5QYwxYo8cwGAHzo1LrtvE6Nkp+8ehW 1r/QycW0nghGBjztaIip0knrQKFp4qW/GV+b1OM8xQWhBYTTkd9JQ6/et49jUWFUdOLD i3EAra7P7sWA9btnous/nYW6jYLry70jjjDk2UWKm3St43BF/FK4VvJsRRqZfXWfZXig VTJsMJRDXxkzhsnE0wy2IllNSD8va8xycWHMRXv22uLCGSffqGGgRVP5zha2zGAAn9mQ 6g1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vQ8mtMLc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 17-20020a170906329100b00a558ef9e616si8634903ejw.65.2024.04.26.01.37.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 01:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-159714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vQ8mtMLc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-159714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-159714-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A17671F21692 for ; Fri, 26 Apr 2024 08:37:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AECEF2D60C; Fri, 26 Apr 2024 08:32:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vQ8mtMLc" 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 B441E13D52F; Fri, 26 Apr 2024 08:32:12 +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=1714120332; cv=none; b=haWEOI+7SSue+syBSyTWLkIs8nLPTtqVU+x9wW9KUmSPagxNFNvkohkT5nfvwAZ6+bh6MVqgqqU5m3M0uW007GEdGqhaC4B/hgSrxkIx7nc8X4/ccSvWJxlQk4ZDZkdGjLUd3JjoEFfea/RSTLlcHFsf85uL1dOFZiK4BiITKoA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714120332; c=relaxed/simple; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=d4yTNvNciG6F2KxfthpWPe879IjVVOii7I592AN79HB+9qBhcmHkq03D4g3j+IRSgegoqfikD2DD0rKmxNror5Y8UyYoNENPAGSj1jPnOWFR2yND0pzvMRW9+GUbly1Eg3mt4oZivJEKVU6aELbc5YjpYysFWgMkIGxUdm5zXJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vQ8mtMLc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5724C2BD10; Fri, 26 Apr 2024 08:32:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714120332; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vQ8mtMLcrimNPX91Y2YQmvdQw4cikExY2pLxFz+/UT+e9TLir0xOZ3FBo5RrzGpzb JWR44T3XJshDZMYXiba7l/A544v2LOC9MQLrngwOyrxDozIHscwKHoIb5QIGzqfNXg hlLFV/4Q2E5d2sHTZ7tlXh/zsv1dp1lvJElyqwmb0wchrenBmob4Dc1MtkVQ+MEtdh 7oC9vfii7ckW0bsH176/J480uOF/fn8rgcExibP+RvW506G6An6Z0c8ibMrhm9JIVO 4Z8XvkBOO1+QWHViSo081jrAt8THz37irqAEYTIKSADYbtZr55Yu4BB7vII7ZC4wKk Q8kmGiXMxjpQQ== 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 , 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 v6 16/16] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Fri, 26 Apr 2024 11:28:54 +0300 Message-ID: <20240426082854.7355-17-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240426082854.7355-1-rppt@kernel.org> References: <20240426082854.7355-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