From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF806C433E0 for ; Mon, 22 Mar 2021 07:13:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AAF3B6197A for ; Mon, 22 Mar 2021 07:13:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbhCVHM6 (ORCPT ); Mon, 22 Mar 2021 03:12:58 -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.