Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1360714ybb; Sun, 29 Mar 2020 02:42:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuGGES7B0MZnAXkSu5FAJguPaAfNYIQRFqxEc3uTyOHq0YJPsxe60I1cOaWZSbeBX3uHH1C X-Received: by 2002:a4a:e217:: with SMTP id b23mr5949677oot.91.1585474962835; Sun, 29 Mar 2020 02:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585474962; cv=none; d=google.com; s=arc-20160816; b=CXLeQLC3uQGYXegVdizTLe0V+ezL8fVDmzZSIbvD7HsAEldAeLbxWppp7ljzdEwsi1 1HSeTRfKZo6kpZn/QpYKAyfxyPwibfWlzcyZELkv2VHwZXpm68lfmLgz+2VQkAt7UVHE Q8leAII4c2iDubgM9vNQhnk8UmrmzlwtU+kKUFNl89p1/D1XIuQLjG6fY4o48CbWp5YS E49MH241QolAZVgRN4AoYCTxisOax6/7uy4JxqsI3Er2kzUXFBFRC/m60rj1EqPP9UK4 NEAI/kkUtOKlVfCw9QGjjNtTNf5ngUorxGmyCBYgJ+X3TnTzueyZ+FriYb1H9CNxd9Jk hjng== 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=W+exIu2nrW5h+fvxXBzSczFg6UNdEpgTjuvWpuQyc8Y=; b=QuLPydLDBMVqg0AdfLIM3kO27CoX2ssY7cBnMFU621cQLlY7C75kiKm4qJBBUqdNqB FlZJgXRQIRcczaMMNXSHNF3Nx3LpCIZgtKcu6N8fiJV2wDV5lj96a8tThAyV0tDIA/6K H1BX+LE/FFVoI2MZxAJdpWaZzcIJk4vCkd3HpyYA5kutdo9PsX+5J0W0ngGthTgsxtgq M41iIIO1QMTD12LbuMXUNpVgfue/7y0QbpSLBKiket2BXwLlzce61TPgGg6n0/XwGZnS J67wFvkJqhmMIqPyOA+aPmaUniz2MdBEqTOAFCoC5Y1NNhQWvwKhqXsVx30ylAM4d+vY tV6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=JnDdYOfj; 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 79si4940261oty.232.2020.03.29.02.42.30; Sun, 29 Mar 2020 02:42:42 -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=JnDdYOfj; 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 S1727956AbgC2JlF (ORCPT + 99 others); Sun, 29 Mar 2020 05:41:05 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:39246 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727503AbgC2JlE (ORCPT ); Sun, 29 Mar 2020 05:41:04 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48qrF8086Sz9tyY1; Sun, 29 Mar 2020 11:41:00 +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=JnDdYOfj; 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 Nk15TEoLAvxt; Sun, 29 Mar 2020 11:40:59 +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 48qrF75sJ9z9tyXy; Sun, 29 Mar 2020 11:40:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585474859; bh=W+exIu2nrW5h+fvxXBzSczFg6UNdEpgTjuvWpuQyc8Y=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=JnDdYOfjd5pPGyyfLA/+bEiKC7b5vbeiHB25f97WLzdheBp3RVLdCFEcGnosyMleW VnS3zK0GnHaDKDlvrNlf8WoP5TFHsQfBB3wwKxHwPTAfifuPhAgoUiys5BmhPZvSQr WZqQ5H8sce/M8z5Jfqc7MCO0zh2bg0ABSxH4tY3M= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id BFEC68B770; Sun, 29 Mar 2020 11:41:02 +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 qnBZbROU2wwQ; Sun, 29 Mar 2020 11:41:02 +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 867998B752; Sun, 29 Mar 2020 11:41:02 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 5A7D165653; Sun, 29 Mar 2020 09:41:02 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH 02/12] powerpc/82xx: Blacklist pq2_restart() 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:02 +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/platforms/82xx/pq2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/platforms/82xx/pq2.c b/arch/powerpc/platforms/82xx/pq2.c index 1cdd5ed9d896..3b5cb39a564c 100644 --- a/arch/powerpc/platforms/82xx/pq2.c +++ b/arch/powerpc/platforms/82xx/pq2.c @@ -10,6 +10,8 @@ * Copyright (c) 2006 MontaVista Software, Inc. */ +#include + #include #include #include @@ -29,6 +31,7 @@ void __noreturn pq2_restart(char *cmd) panic("Restart failed\n"); } +NOKPROBE_SYMBOL(pq2_restart) #ifdef CONFIG_PCI static int pq2_pci_exclude_device(struct pci_controller *hose, -- 2.25.0