Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1360662ybb; Sun, 29 Mar 2020 02:42:38 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtu6pjWp7jHO7e0mnaB6P6BY6yF1aB3jiwCxapQhreLqd8A0d6nUz03720JqgZ0EWn8K+50 X-Received: by 2002:a05:6830:1f54:: with SMTP id u20mr5445803oth.322.1585474958028; Sun, 29 Mar 2020 02:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585474958; cv=none; d=google.com; s=arc-20160816; b=GWuzCrEnnoIPCjy2HJJ4IMefbA/W/K3IfsrLhXRnFpSwHWgop/WKosb0SqIF4Cglr5 EsgMo4NyqD9KNfC9kRd32Uplzbiv7ie7+z86rUEOlIcUzda+/NghgduqNKc4AhdJjbv1 SobU1eRQOneU175Fp14+fQzbOos4TnZOy3DmTWMXdPhlG5t99D1Hkr9vS48n9Uhtmn75 292xI7yNHQ9tYQ57dMAVilLX/BDChHRLFkfLUQdcHa5fREWrP8Ya0d90DeSfIWxY9BtU lURybJ8qQaDWC9BIoDp1mH+jEQ7x2wwmyYtVPLFS9MgWC8iXYgYURAF0IunWTaf4XGGU 4hMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:cc:to:subject:from:references :in-reply-to:message-id:dkim-signature; bh=JungB4serAEioDrEQ2W47YjKE+qd5j8Iq5EoS3Vfg1I=; b=eHqmzXW6QKfSJNfP4j1rMcnLiGiRERZWCQD7B2+yrsCuQ/l/O3pnPfZpdmImFwMhBF aUrV+2JZgyPtWhLNZt02WF39xfMMVixhbGa5wLJg8fpmYss9OpUAa1h4tAD71Xph918b njLaxOlLMjtgzEUgZARwGUX5fvkaBUZDmVO7P808P/2HtHV5V4+XKZZMfl0/vUYnYZYL 8bPgPVShA2Dz9VI0+6BoLOXV0g+AEu405mdS6sCz77zqdb/il36aQ5QrhFfqEKc533r9 wDHDZ3WliKHxCo0ROWsuCiSjMpXaMI9LKRBkUAopJ0z71CiwgteCrzdkpN1CPdxI0mjc vnOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=bXMX1Hmi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 53si4769588otd.15.2020.03.29.02.42.25; Sun, 29 Mar 2020 02:42:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=bXMX1Hmi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727983AbgC2JlH (ORCPT + 99 others); Sun, 29 Mar 2020 05:41:07 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:16391 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727975AbgC2JlG (ORCPT ); Sun, 29 Mar 2020 05:41:06 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48qrFC0XT6z9tyhR; Sun, 29 Mar 2020 11:41:03 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=bXMX1Hmi; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id XsfIWBa2dWSt; Sun, 29 Mar 2020 11:41:03 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 48qrFB6WFRz9tyXy; Sun, 29 Mar 2020 11:41:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585474862; bh=JungB4serAEioDrEQ2W47YjKE+qd5j8Iq5EoS3Vfg1I=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=bXMX1HmiXoYm2DiotDJNKcdn0ftnKFJX4bhe1oT9aNob+yZeOr28wi75cTXbG8FOS o3GRjMt3G+VQNOyV60CIAtK7O9mISZ0vgXll2TEVOfi9NrkaZHESkHOTPHF7pAxFh/ /R9BbFHfz3MvCf+Ko2A9SFmHopuUTu7qAjHFj56I= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D4B058B770; Sun, 29 Mar 2020 11:41:05 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 8gLQ9jD531AP; Sun, 29 Mar 2020 11:41:05 +0200 (CEST) Received: from pc16570vm.idsi0.si.c-s.fr (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 9B4198B752; Sun, 29 Mar 2020 11:41:05 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 6E57D65653; Sun, 29 Mar 2020 09:41:05 +0000 (UTC) Message-Id: <1418e94e9b380c78be7487c5a15adc055e349fda.1585474724.git.christophe.leroy@c-s.fr> In-Reply-To: References: From: Christophe Leroy Subject: [PATCH 05/12] powerpc/mem: Blacklist flush_dcache_icache_phys() for kprobe To: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , naveen.n.rao@linux.vnet.ibm.com Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Date: Sun, 29 Mar 2020 09:41:05 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kprobe does not handle events happening in real mode, all functions running with MMU disabled have to be blacklisted. Signed-off-by: Christophe Leroy --- arch/powerpc/mm/mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 9b4f5fb719e0..bcb6af6ba29a 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -466,6 +467,7 @@ static void flush_dcache_icache_phys(unsigned long physaddr) : "r" (nb), "r" (msr), "i" (bytes), "r" (msr0) : "ctr", "memory"); } +NOKPROBE_SYMBOL(flush_dcache_icache_phys) #endif // !defined(CONFIG_PPC_8xx) && !defined(CONFIG_PPC64) /* -- 2.25.0