Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3214878pxf; Mon, 22 Mar 2021 00:16:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfbFQlag53D4ebxoJOCudGj+L9hIn/Bsd2r5D+Jetm1O5/QY+eLDaVNJBihvo3roaFB5aw X-Received: by 2002:a05:6402:170f:: with SMTP id y15mr24014740edu.127.1616397386932; Mon, 22 Mar 2021 00:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616397386; cv=none; d=google.com; s=arc-20160816; b=yoTNpZGED25+Z2xIhKZzD32iv5yZK6V5romS9KKLpC69KRV1mitGsyKgbD173cykrC wt3HgPQu46c6sOQxH2WWe+isJwuF2j2oH3taJPXzCUrLHJI0dRHR6Xhuymx3o0xWQ+ol M4kNC8DbDYTCce34+4jeWxNBCXFpWmMOysZ0Y7fjzfHWeeb3luutsqoyikEJO5dlp+1Q QkW3LpxJsQJjuGNCLMfwc81PDHso3ix4VZnZfNunoFNPqqqXA/agYvgLE4O+daIA16KQ HtTqC+y6uzOtF8h3mwbfBLzwBrnkfhvAwIMtLNpcbf6aeh/vO2db3X2xo8tidWCspJ+q HJXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=iv+sZnwpyADkLeQI8xoosD7mCZAFkszU6Qv59d3cw6c=; b=nUgQmBrvgWWlxRAbANZajwn4aEmXt3g81wooXjl5++/RqqwEKmWAiI+wV/MzHqrQfq w7ywn8h7RHu6NP1dcGcbSq7pwpm4QXo4yGmi6DOD2wUTir988sv3OX8bhpStc/gPcdq4 tR7kYy1txt0sMJhZL+0hggGIZrTrRyPLzxxmC+8rm9dy0xDVdozuUoYTT7j3G040TwLS lUc8n1kfPownKeXgn5NB8eot7XenGfF4uzCVWp9K8dSMERvCPxBPthm+t+Jt1Z6jOooU hHWOX0OouEa8yYkZfj8GlLYso9ExFOa3SlXiykNyhqdn5WG/OFjkBoKUeq3G9WLsaI8J GstQ== 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 e7si10630889edk.222.2021.03.22.00.16.01; Mon, 22 Mar 2021 00:16:26 -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 S229614AbhCVHM5 (ORCPT + 99 others); Mon, 22 Mar 2021 03:12:57 -0400 Received: from verein.lst.de ([213.95.11.211]:53802 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhCVHMn (ORCPT ); Mon, 22 Mar 2021 03:12:43 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9A19467373; Mon, 22 Mar 2021 08:12:40 +0100 (CET) Date: Mon, 22 Mar 2021 08:12:40 +0100 From: Christoph Hellwig To: "Maciej W. Rozycki" Cc: Tiezhu Yang , 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 Message-ID: <20210322071240.GD3440@lst.de> References: <1616034557-5844-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 22, 2021 at 05:46:56AM +0100, 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"? ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE means the any given virtual address in a task context can either be a valid kernel or user address space, but not both. Note that the bpf probe really is a legacy use case and should not be used in new code independent of that.