Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3696393pxf; Mon, 22 Mar 2021 12:40:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyO+G+f/tC/GnbZgKWzDWV6qysEoet7mYMkyoaYWPuMQeGMEQy5lOIPjKrs1nbpfPfQ6Dq X-Received: by 2002:a17:906:1956:: with SMTP id b22mr1471173eje.114.1616442038187; Mon, 22 Mar 2021 12:40:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616442038; cv=none; d=google.com; s=arc-20160816; b=J8mF6ll8N3pVNlsj71XKhFIJUUy54S4YAzu2n8x3f+2lN0VFt2nLFZI4cwX7BZpag7 Oc4leJcnQDFNhqzv+RqoHdGc4G7ipIPDbntNAFOwhka1VPlbFOMo45mkp0T8LlV68HgI ZePc10Vd6IEDs2PIS6tXvVyfYPb02+sR0nvzIFOAOAOAt7i9tvYoJdiYlGMWeeyuOp/k iFHjYQdPGNGMWJbtvd6WjZi13PUzCMAtmlpCWcnGuw2zALfqcu8et1euE2gGmKKSueNH MZ2kVTmYEcVBJS5wMdiOymvZlTkq9yq1SBBtmmk3BqE4BSm0bZL646l1FDLl9gcF7wBe L7bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date; bh=2qzbczFWNSbgVu8hyOPbYyxW457+DNsjDbv2SYOs4g8=; b=bo2UKTh0Yeo63+cMnT1feHFQxqVPvZgTPEb2oo6HcxQ9b/6mQqYb1uzQ3leR3FZ4J1 dXJ11WdzaSADAAD5hifEO5pXUjnArQ7ZsWdBVw73OcCeV043MarRwV+9YUVT3zYlnK6j vW/rdePLi55t7a+vTbZE438nK7jZ/ilj6jRKm9QSaMRtALPK+dJL0dfccAcnLLXF0726 cSKfHVliFmDuXk4h7nyv2Ra1MajDneOFEXDTY6bV8xN2xqW3aTcT8EVldU4813tBmWZB OjH0qZNzWYTYjKIEjTHnovCEw+TP1oBJQRbAsjf7wI6DDTptDUc1aSkkm07aQtYdk87y d7JA== 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 r24si12056839ejs.40.2021.03.22.12.40.14; Mon, 22 Mar 2021 12:40:38 -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 S231622AbhCVTjN (ORCPT + 99 others); Mon, 22 Mar 2021 15:39:13 -0400 Received: from angie.orcam.me.uk ([157.25.102.26]:38102 "EHLO angie.orcam.me.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232386AbhCVTjK (ORCPT ); Mon, 22 Mar 2021 15:39:10 -0400 Received: by angie.orcam.me.uk (Postfix, from userid 500) id A0DCF92009C; Mon, 22 Mar 2021 20:39:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 9C84A92009B; Mon, 22 Mar 2021 20:39:07 +0100 (CET) Date: Mon, 22 Mar 2021 20:39:07 +0100 (CET) From: "Maciej W. Rozycki" To: Tiezhu Yang cc: Thomas Bogendoerfer , linux-mips@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, Xuefeng Li , Christoph Hellwig Subject: Re: [PATCH v2] MIPS/bpf: Enable bpf_probe_read{, str}() on MIPS again In-Reply-To: Message-ID: References: <1616034557-5844-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 22 Mar 2021, Tiezhu Yang wrote: > > > --- 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"? > > 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? The architecture specification has it all. Maciej