Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1760076rwb; Wed, 26 Jul 2023 18:51:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6pFTi56MFFl09rc0qH9DPJKbck85pTvC0FuXoNG+UANJQMzZ5arWcv5P443KU85tJkL4r X-Received: by 2002:aa7:d349:0:b0:51e:1093:3a9f with SMTP id m9-20020aa7d349000000b0051e10933a9fmr585775edr.11.1690422684076; Wed, 26 Jul 2023 18:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690422684; cv=none; d=google.com; s=arc-20160816; b=Xs8rkNucegbocKPAXIlnW3GsCSipzERTEa2Hh03fa9GegTsd50/J9zNKJ2yCVt/CYS SqT+pSTWn6ZDJ/6v4oKYfXADo6Hy4WWk5T1gn/0qf1Yis41nxPHnSD+w1RYWjtRejI7B mCiRL9X4y6uyuIXipxCwRo1zns0uXm65rzjLEh7IiAAs9CEmoZHYubjHdo4S6ZBQD1ng OlS0uiUAJwV9/fYFydg9JtF4RfDojxuhQmAEhL2RjcFDvok3NJmIQmg2jkoTk2K6wIJ4 PxIeCmjqUBN0GluLD//zQKZwO2CTcgDgkTz2brwZIayOpSAD61YUrSLmkcB8WHJo6vT7 E2yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=YMisf3ATyzIpjRTRyR6UKA0J3ZDwIC7QLQW/IQM4TI4=; fh=YVTk9eD2KbrWpXxYv4OTn/wx8fdkLj78bsybXfiWX+U=; b=Ve2HN60DO373EnKV6rIlfzxeKpJFBXPWn0W+0jzmWWCGcfGAdw3GWU93z3NU79jxGN Z04nxS+ZHsQaeiZRh50k9FL/N76gokXrp6NfrbwJSBKWL/VPOJ8vWw9L+kbRVLgfxeKX 909YiDY5XMwv1aAiwxCwQpXHNLx+aKesfOd1Bd1HbsTo7HsK4zga5HguR1TBuB/mCofc j42xQEjJYIZyR35axkX7CyPPynZyD3WfN9/o16FgpjhX6MeSvPEqvhMA21/8TCeGw3Uy tV59Zg9TUt4mA7bRBVtxTB+z555m0214Th9ZzNBypOOAyFFXbJqtKG8OT4L6Dg6DcNUP eEKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jTCWd/B5"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w7-20020aa7cb47000000b0051bdf3d61d9si145742edt.409.2023.07.26.18.50.59; Wed, 26 Jul 2023 18:51:24 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="jTCWd/B5"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230202AbjG0Bmz (ORCPT + 99 others); Wed, 26 Jul 2023 21:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjG0Bmx (ORCPT ); Wed, 26 Jul 2023 21:42:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A80EE61 for ; Wed, 26 Jul 2023 18:42:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DA1C961CED for ; Thu, 27 Jul 2023 01:42:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3CC14C433C8; Thu, 27 Jul 2023 01:42:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690422172; bh=fnyD6OA/d3s1ns0TdP0ragt14ud6rvUe8gaOSFG9Xis=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jTCWd/B5ufFb66j65JX4gQqtRFhJIASJOyKF0W2fTymwPeWZsPKVhuFpGRoCu1ETw L3eptu5be5CR3eEZvfBUEE6BtkSUe9Bw88z/4xBPeIJtfzrWKgaddCUWcIQx5Hu1Ao w505jfZiGHsxF+wDAuYJd/gLigChV31jIphry54HsLlLuzd13ofJZCXcbBdu++UOgz Ms1v6FK4c8ck/LkPpQXV0PaLPVeXMFFRmQepkO2zFY49yaPKWfUjlNdc3+vg6EjtyZ 1spKhu59rdRhaJlUX09lWZbHuDajLSZ+h3V3c6/ntDGpS90oDJj5Q/axAKXqvl8m6w pIZ23lXWm06ew== Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-4fe15bfb1adso706025e87.0; Wed, 26 Jul 2023 18:42:52 -0700 (PDT) X-Gm-Message-State: ABy/qLYWa3g2qS168zuvmyMPMWevnRo2KMfLimvREo6bN5lbg0/TwaQF RWJoZe6vtXfAYpKAQ/WJrVR2sMD3+rBvjdxXtLE= X-Received: by 2002:ac2:5e6a:0:b0:4f8:49a8:a0e2 with SMTP id a10-20020ac25e6a000000b004f849a8a0e2mr444073lfr.16.1690422170176; Wed, 26 Jul 2023 18:42:50 -0700 (PDT) MIME-Version: 1.0 References: <20230726062902.566312-1-zhaochenguang@kylinos.cn> In-Reply-To: <20230726062902.566312-1-zhaochenguang@kylinos.cn> From: Huacai Chen Date: Thu, 27 Jul 2023 09:42:24 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] LoongArch: eBPF: Restrict bpf_probe_read{, str}() only to archs where they work To: zhaochenguang Cc: kernel@xen0n.name, loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Hi, Usually, your E-mail format should be Chenguang Zhao Huacai On Wed, Jul 26, 2023 at 2:29=E2=80=AFPM zhaochenguang wrote: > > When we run nettrace on LoongArch, there is a problem that > ERROR: failed to load kprobe-based eBPF > ERROR: failed to load kprobe-based bpf > > Because ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE dose not exist, > so we enable it. > > The patch reference upstream id 0ebeea8ca8a4d1d453ad299aef0507dab04f6e8d. > > Signed-off-by: zhaochenguang > --- > arch/loongarch/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig > index 903096bd87f8..4a156875e9cc 100644 > --- a/arch/loongarch/Kconfig > +++ b/arch/loongarch/Kconfig > @@ -11,6 +11,7 @@ config LOONGARCH > select ARCH_ENABLE_MEMORY_HOTREMOVE > select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI > select ARCH_HAS_PTE_SPECIAL > + select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE > select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST > select ARCH_INLINE_READ_LOCK if !PREEMPTION > select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION > -- > 2.25.1 > >