Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3214283pxf; Mon, 22 Mar 2021 00:15:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwo8OblryWYNsGyg8fTjDWcJBtpA2dtihs17f3vull7rKsMJG9d+uHRvI2GRDxEtAKTgYWW X-Received: by 2002:a17:906:5e50:: with SMTP id b16mr18186147eju.272.1616397312863; Mon, 22 Mar 2021 00:15:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616397312; cv=none; d=google.com; s=arc-20160816; b=1Aneldi3RkajOBNMydDpLmpodEiZMiyPBpfQuEXtLMOgQpcynBSoWwEn/DaK5qd514 OmccGlXFb5qa2FmuITB5Ec/uwVea3Fk9Ol3zl3Q6amNjDhEnRlN+hbPn1pdmNMUaYUlO QWoi8ZYLcaZ8FYgMFchZoBa0bN3YIXyZWNbWpaCmewCV61ppkjfkJBE6kGhg15k55PTa biqXR0CnRdRNzLGaiYuewYK4HXHxyMrM1YxNOOnriVDOvzTnQkSUfSWPfgqt/NnfGikj GuKhNuZU1dT+N61NKOh6F/fXJwUApj6OeQAn+3PfNoCBrS9Mqs9zcnmv/X1wyR48fpaa N5VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=RPiZxFB/Bn6CoDBl4WM1XY1lojNZ89JWQPcrmc8I24c=; b=TXRPhgz5zLr9a9iICJMeAuJQUV0rL6IMceWjyq7kljMdj3U5CD8cREjTcu0W5fJnrP R8bJngOwAQFu/gtwaQVvVBjhFQq7sKCRfPCi0sw5oOqduHc9XrALNbketzWo3GSj9Rrh dIaEjzww27SAydkbll/pCNHLTtUmps5+NPcWDbcOeaZOwCywUZ1RbhklyY3ztVh7AMgT 6SEz5UVFWh9LrhK/bcUmqO2I9cMiZs28WWuP0/7xpjH+M1PjIWc5D4Ji0Sv9AJlI4+v0 yRE8cJAZGKEGf6Dt+VI7zpM36yC503/Lx9T9n9R7POdk+rZwfzG1MXkAw4Fj2u4e0tNa vVGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi17si771830ejb.294.2021.03.22.00.14.49; Mon, 22 Mar 2021 00:15:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230041AbhCVHNa (ORCPT + 99 others); Mon, 22 Mar 2021 03:13:30 -0400 Received: from mail.loongson.cn ([114.242.206.163]:48516 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229574AbhCVHNJ (ORCPT ); Mon, 22 Mar 2021 03:13:09 -0400 Received: from [10.130.0.135] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9BxE+R7Q1hgu_IEAA--.12497S3; Mon, 22 Mar 2021 15:13:00 +0800 (CST) Subject: Re: [PATCH v2] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again To: "Maciej W. Rozycki" References: <1616034557-5844-1-git-send-email-yangtiezhu@loongson.cn> Cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Christoph Hellwig From: Tiezhu Yang Message-ID: Date: Mon, 22 Mar 2021 15:12:59 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9BxE+R7Q1hgu_IEAA--.12497S3 X-Coremail-Antispam: 1UD129KBjvdXoWrKF45uw47GF4ktFy7XFyrZwb_yoWDXrbEqw nrCa1DGFs5ZryrC3y2qF48Gr1UZw4xWrn5CF1UAr92ya4fX34fGrs5tF95Ar15Gwn0qFn3 ZFWS9rs5ZFZ2qjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbsAFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Xr0_Ar1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_ Gr1UM28EF7xvwVC2z280aVAFwI0_Cr1j6rxdM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUXVWUAwAv7VC2z280aVAFwI0_Gr0_Cr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCYjI0SjxkI62AI1cAE67vI Y487MxkIecxEwVAFwVW8CwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8Jw C20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAF wI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjx v20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2 z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnU UI43ZEXa7VUjE1v3UUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/22/2021 12:46 PM, Maciej W. Rozycki wrote: > On Thu, 18 Mar 2021, Tiezhu Yang wrote: > >> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig >> index 160b3a8..4b94ec7 100644 >> --- a/arch/mips/Kconfig >> +++ b/arch/mips/Kconfig >> @@ -6,6 +6,7 @@ config MIPS >> select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT >> select ARCH_HAS_FORTIFY_SOURCE >> select ARCH_HAS_KCOV >> + select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE > Hmm, documentation on ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE seems rather > scarce, but based on my guess shouldn't this be "if !EVA"? > > Maciej I do not quite know what the effect if MIPS EVA (Enhanced Virtual Addressing) is set, I saw that ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE should be restricted to archs with non-overlapping address ranges. I wonder whether MIPS EVA will generate overlapping address ranges? If yes, it is better to make ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE depend on !EVA on MIPS. Thanks, Tiezhu