Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp915642lqh; Sun, 5 May 2024 07:33:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUld1Xdc9QJ7KQyPvQHyEiCT/JQHBRvqOWSMEQPVnbdZcv7b6WAQgM4IqJZdFR0XHwflxM26WLN2Lp9/17Q5mv3BnM7eUdlWRqg8VsIRg== X-Google-Smtp-Source: AGHT+IFOhejQ3a9qf20B0+gAd5I2pYv7bDlSfufB748NUX6I6ru8HOsLCHizLVzEqu423Jy0mct0 X-Received: by 2002:a17:903:18d:b0:1dd:c288:899f with SMTP id z13-20020a170903018d00b001ddc288899fmr9906582plg.18.1714919595766; Sun, 05 May 2024 07:33:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714919595; cv=pass; d=google.com; s=arc-20160816; b=OCyBO2Z34Y0CyKeHD+CWaDlgWHUQJCPecly25OKl1GOYrv9YJE7ErlGpvTeyHS/v7G vX5vF8vHA/OvB59tKpUugD71o90qFn4TnB//lZy252F4Ozp9VKJhpvb2CUPl5StUdtCd m5aixSVG2ikr3e8khQmriZwXtt8iC4ttxyfcXQtqH5wxBqN91eo4SR33gn76kWggHsz0 whKBXVVW+pMXd8cPuvH+LdLfZ+IlRerFza2VT7yrctHcFe3Z43rNfSQDyFhPfI9IO5yF JkRgvOjoW8jDyggc7MY+meaDsnlLYSGjIY0UJUmo/5iCem4tgQsH4xnUirvYVZEYDeMK /HAw== 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=DttcZnoA4Nwqtiu+wrQIU+3N5liHgrsEPNudlftI9umotlxupCV4CsTh/67+xJuOsJ A6HzqlAKjsii2fmv/PVr413qowJmQ/3sLvPygoCb5JhJLoWldLVMPGoenm+dGPTmUdkH 1Aiqg+DEi9nSe0SlEOMSnd36jzE0LEjidYyO+YBn3RVcG8hq2Uu7BPjGoVSbIimVmgaN btAxK+fJ1ZWVOkd3nYJxMXCrxyaQR/WLDIej3XfWV0dKxFrXm79/AmNk11kalzmU0pv7 GpyGyFczuSP/cgbHCTFLk4YXHiWTEEc3pOSmbXXkuea+VtGdbNa7dvyI3cWpynyPvPPD Uxmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rIzV4Wwc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169016-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169016-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id e9-20020a170902ef4900b001eb30562f52si6552667plx.644.2024.05.05.07.33.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 May 2024 07:33:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169016-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rIzV4Wwc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-169016-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169016-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6504C281EB0 for ; Sun, 5 May 2024 14:33:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A68FD78C85; Sun, 5 May 2024 14:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rIzV4Wwc" 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 A9D48E54C; Sun, 5 May 2024 14:29:34 +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=1714919374; cv=none; b=nTfFMATvrl6NRUn79rTME7s8nEe6a8y4ltdFq1FRuf6E6qQ1+sgjAJMmg92etxN9zVz79ymPwLtTheWiytGhXaztiiT+bfeHSS1fnY8gqzwqr8sDWrtY7GUcq0H8fT7p+25pSQHFy9K/YJCS6hKRwayBY2dFGyt4CFRR2K/DTxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714919374; c=relaxed/simple; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Qniy7nmsQ2E82pDX/gp1FtTSsbwm6PQ7gFhYM3E1MNJERFsNQYCEt9T0AaUROuIATcFqZohI52ZfLufnLddYZm3ep2THeLL1rhD+k4Gce9a/VD8HKhTVv9iS3cpA5L6ItKqUEatCa6uR1pDcVViRZrxD3edSDvQQxPUY4ObP4MY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rIzV4Wwc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA7B2C4DDE6; Sun, 5 May 2024 14:29:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714919374; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rIzV4WwcX4flP99+xQJRz+y6n5qM8s4Y1tDnLwOFGGfiupCbYenRgLuEDlKBHSVq4 VnvQLazUZzKKIGULThp3xl6bmKDuoaEuFmKhgf4oachirRXtnXIbNuyEL4TY0L01Cg VEOKM7nEDciJw8kyu5wKI/r7qYnaHNPy0NUODhDQu6CdwEss+wsxJWOHNOonu/oreE qMuP6d/ZlAFAdIeuto3cPceFKdHGgiYh/92whHBMSzI5vNGRN4yKejfFXKQuJFykad pL+M0osv2QyMs4JPoreo3/HbeaI4YzmY/islIV20euO4C/3egO03ZFXNTm4ghxyo0i Mv0R6nEPMcy6Q== 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 v8 16/17] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Sun, 5 May 2024 17:25:59 +0300 Message-ID: <20240505142600.2322517-17-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240505142600.2322517-1-rppt@kernel.org> References: <20240505142600.2322517-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