Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp89934lqj; Thu, 11 Apr 2024 10:35:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVq7ldFa7iqlolQ7j0l5uUzWwBdRxAHDHrWsxH3USJeAYOXAnam4e1qTYPgsiUExbT/HHn3k7UxUznCUaJQ8uiTVY+Y4uV7NAHzzAW0vg== X-Google-Smtp-Source: AGHT+IGrJouEipgAlr6A+rbgQW0WasB1lvEclvFkPSI6tYsTmQEpiiwujoZbTreXnnt0voBLTxKs X-Received: by 2002:a05:6358:9814:b0:186:1d2a:a457 with SMTP id y20-20020a056358981400b001861d2aa457mr119129rwa.15.1712856950449; Thu, 11 Apr 2024 10:35:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712856950; cv=pass; d=google.com; s=arc-20160816; b=QOGKNoJy2td6sBxQuP8zz8rO4s4wnLWvzSNhxI7HcdpUBP1abY2zJR51Jc22io6Bhw ZMFinkdGUsat6IDbSdA4xMKTkIg5R+TzCb2q3DpIkmYuOKWw5cR3HjdiKhtygtppE8Iq bjLGqyPQAAYfvq0ns7H/o8dshTT9YhoD/lIfcjMsI4y0FaBqczwrhU+DaQvZ134mbOrC CIQLEkaGeLnL1OI9Hd3VtzIcAjozZHi/5FFT3fY1RKCIc3ytmicGVo3Bu1qchuEB0sjo be/hZ8V13WmlwKy1WPAIms1ZLSLGJSj4nrTC5Wtpg+IcA/vyliz3R18GQHgNleeI46t7 xrEw== 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=SgAimfoqqdos20VWKa/NZoWkGX6dsss6oX4o+VgWJ6E=; b=kDSim1m+wPhZJGYiy6F0fcRxAD1S6cNftN2bYw3w8sdmgZWL0qt6llmfEe3Vnt98LF cDp4VhA902804fIDGz3pbCCuqDpTCEoPBPqtZOECnM1dGPq5n8w2Frw4S+Fqb2lbYGuy DptHAasYY6ql6EouhObEAZjCsatigjgcw0OV7zcNIJtU4fPSnSjdHRMLDByQfOyMZkRz iymsUU0uBWr99ODAR2Y0VZS/wv9NoTcnjmkYdud69kWJ+54OmOEp9Ar6IAOq6iAaiG7G 5x46U/Pm+KsCl12P7+FmN/k3duJeRk49eJqU0KKCxApdURHbbXor20BPzQUzWhalcwy+ NRRw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SxJIf0UP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-141269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141269-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s27-20020a63525b000000b005dc7fe4a2a0si1604729pgl.584.2024.04.11.10.35.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 10:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SxJIf0UP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-141269-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141269-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 028D42829F9 for ; Thu, 11 Apr 2024 17:35:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 13790139D01; Thu, 11 Apr 2024 16:04:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SxJIf0UP" 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 1ADE4139593; Thu, 11 Apr 2024 16:04:21 +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=1712851462; cv=none; b=iQhBwbcFW4ofeOLYf3G7vigTR81VEslTlNSyrk+OYHj7JcdBPPSjT0Y96nUaAO+qdha8H7hEzE0YSDmaiHdnY2Lh8ntC7UTLXArR2KVMjDevyQXHRvqOS9pWjy2PZU+/mTt567tQpu52ozCJcNpeDInAAn4YmUn0pvxkB7Ak/60= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712851462; c=relaxed/simple; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BD3pHuQclkBAFe2caaWI5oY4SOEUKJRc3L5jktQRUbizb6teNiYjC/+E3LjzlkMRq6epTtk3Cbu2+SIH6NNIUI51vEGJDNd5S3dlQtgFO56Sfvlk4vtiW2x4rcZp5WMAQIlDDxIzyycjatVBbAI5/V4zY6grndtgRsQ+kiw9Rcs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SxJIf0UP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1098C113CD; Thu, 11 Apr 2024 16:04:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712851461; bh=+AOj3OMDSB3feHYUPdQfVhUVtDWDdcImqVlO1v4xpng=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SxJIf0UPAU/LSJIdhd5VJkQ97hM+Vopgra/mjrFIBCe+cviCEtH8l//T3816NvlXD JNi13TTDCZkr1Fg3WXdPtQ+MZRUJwf1k1qRoeQyxufSwG+h+JZeR8/tvkEBGc8TcVR 4kRT3j5Stzw4SWMef8fiEbIX6jEtbDFYCl6VOLTAE7qUe+BaJYoN70qBRU9UyVdRdK SnPe3YHBtYQkdMJyF6t+OlokdAyToH6ZaN+xGGpQSe+9dEZuQCdf7HQ8nt9T2j9jQX o3VlR73dRPQLNATQXpf1b4JuRSG48Vtoma+TPIBkV3i2OZl6wAJsdHYuvFMkZ7Tt+a /PvhAgJJc2OoQ== 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 , Michael Ellerman , Mike Rapoport , Nadav Amit , Palmer Dabbelt , Puranjay Mohan , Rick Edgecombe , Russell King , 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 v4 15/15] bpf: remove CONFIG_BPF_JIT dependency on CONFIG_MODULES of Date: Thu, 11 Apr 2024 19:00:51 +0300 Message-ID: <20240411160051.2093261-16-rppt@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240411160051.2093261-1-rppt@kernel.org> References: <20240411160051.2093261-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