Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3743983pxb; Fri, 11 Feb 2022 06:53:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMmg8uY8FYgt749ywO5Aq4DCOut6g4+xbNTBV9Adn7sEqm8pZKonqoDOV+74nohUFPrasg X-Received: by 2002:a17:907:6d94:: with SMTP id sb20mr1747964ejc.375.1644591222012; Fri, 11 Feb 2022 06:53:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644591222; cv=none; d=google.com; s=arc-20160816; b=YQZvmSa4hEywB/TmP71bs5wqCabDryCiF90izdoPtsRfe/7nQ2kanTy0Af+l3v7qt1 d7h7TCQtHM4mho9GEguJTTH6QUOUQmJxd09culwyWdj+W0/rZLjmlx4MpmVLzqVxHtUq cX4OrkkbC3p0bmbuB3srkt0g34GNl2bSCGaKFySOxBq+OoIYHuTeIg51cIHiGS5twTSy 47bMTVYJjWWaSDwID2C8EoNFq/dXsbZdm0lOTkyo20bc7z2mamoSZ4cPKAMSGoGzAXSN 2cMKQPG34hqZtw9HTZOlZaKqTQu6yNFGGDCaQRdV1eOilnPdDaESvpMYUM4FA98AdlLx ecJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=GIFKWEnhrFZ/AvnpuMAk8BiEFrWfX3dmPnD0u9Ia8/E=; b=mA7r54Ew4Nbd88KPokP4/ZUeaWvPOzwEJs8lQiudvMw6qqhjsCT80rAqrjBIGoA0hI e2bU9gJ1ltAqc/UG/9TxkkCDvuNp/Ps9JGshPtn1HviN0Qx8ydeR+p2bXOBXGTEbMiuE b/7AktsGq6GTsMvswkhkT9ZYiAeHqNrUIUlWzCjVsfaHVkvZdyTRHvbIBD8hkssmsd/m IQZIsFUcAK3/2NR9yf/xPaWB2D3YIHIBlVC0D9ia2fnKMjPDraZZP6qX6SDvtLLD7j8J J31Wnuv8C1u+H55hB4hBnBUva7BdUmbL3Loy7Ceho/9aFoy9iRKqRkvSaoL6vERtc6pg GtHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id st14si6443394ejc.422.2022.02.11.06.53.16; Fri, 11 Feb 2022 06:53:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348318AbiBKI5m (ORCPT + 99 others); Fri, 11 Feb 2022 03:57:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346462AbiBKI5l (ORCPT ); Fri, 11 Feb 2022 03:57:41 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1168BF5D for ; Fri, 11 Feb 2022 00:57:38 -0800 (PST) Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxWMr7JAZin3sAAA--.392S3; Fri, 11 Feb 2022 16:57:32 +0800 (CST) From: Tiezhu Yang To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh Cc: Xuefeng Li , netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH bpf-next 1/2] bpf: Add some description about BPF_JIT_ALWAYS_ON in Kconfig Date: Fri, 11 Feb 2022 16:57:30 +0800 Message-Id: <1644569851-20859-2-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1644569851-20859-1-git-send-email-yangtiezhu@loongson.cn> References: <1644569851-20859-1-git-send-email-yangtiezhu@loongson.cn> X-CM-TRANSID: AQAAf9DxWMr7JAZin3sAAA--.392S3 X-Coremail-Antispam: 1UD129KBjvdXoWrtF47WF4fJFyxCFWfJr1DZFb_yoWDArX_tr y5tr4kWws0kF9Y9F129F4fWFykXr15GF18C3Wagr1UA34ava13G3s8JF1jkF9xWw4Yyrnr WrZ3A39akr1IvjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUby8FF20E14v26ryj6rWUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUGwA2048vs2IY02 0Ec7CjxVAFwI0_Gr0_Xr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8Jr0_Cr1UM2 8EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s0DM2AI xVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20x vE14v26r106r15McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xv r2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxan2IY04 v7MxkIecxEwVAFwVW8ZwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC2 0s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI 0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv2 0xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2js IE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZF pf9x0JUba9-UUUUU= X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When CONFIG_BPF_JIT_ALWAYS_ON is enabled, bpf_jit_enable is permanently set to 1 and setting any other value than that will return in failure. Add the above description in the help text of BPF_JIT_ALWAYS_ON, and then we can distinguish between BPF_JIT_ALWAYS_ON and BPF_JIT_DEFAULT_ON. Signed-off-by: Tiezhu Yang --- kernel/bpf/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/bpf/Kconfig b/kernel/bpf/Kconfig index d24d518..88409f8 100644 --- a/kernel/bpf/Kconfig +++ b/kernel/bpf/Kconfig @@ -58,6 +58,9 @@ config BPF_JIT_ALWAYS_ON Enables BPF JIT and removes BPF interpreter to avoid speculative execution of BPF instructions by the interpreter. + When CONFIG_BPF_JIT_ALWAYS_ON is enabled, bpf_jit_enable is permanently + set to 1 and setting any other value than that will return in failure. + config BPF_JIT_DEFAULT_ON def_bool ARCH_WANT_DEFAULT_BPF_JIT || BPF_JIT_ALWAYS_ON depends on HAVE_EBPF_JIT && BPF_JIT -- 2.1.0