Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1361032ybb; Sun, 29 Mar 2020 02:43:20 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt0hFTFXA7LxAbWYmHJuvFBJtaEkJL+BaoiHJUffQJR1M0hU8dmLGrAn/jpHSayjBVBY/vj X-Received: by 2002:aca:4082:: with SMTP id n124mr4202374oia.112.1585474999901; Sun, 29 Mar 2020 02:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585474999; cv=none; d=google.com; s=arc-20160816; b=YJu+nN8RKWoh+v4FtoEGVQ5fpKTvHjc2zgunF3nmgXyfbmR49pNHrVNFSO7QQi094B V90W3TVxNHg9lAXKM3lutT0w86ZLJdiJlUmBpSW4PojrtMsZVwOfDnFMZY8IpJ8URa1W jIPBJwWrKGt+pbWpXZ/EFX0cjxQZ+0mTRRfQ0cZBDXnrIxW1dGtSAldesKMMUvBImJKp UovdmM2PprFN0TwxygaQs6NHWi5aANEpSFUCxOMkeeG+KgwUssRXb3Jc2CVQWllsesKj DaNkgGmDxGR/Of9H2BKgGIA6Z+06YRFuB+6BUIrW7WN/OsIdfu9fPVdLUI2l9p/JX2wp 1ZtQ== 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:message-id :dkim-signature; bh=9Ex3O+iluoexmpGb+PEB5x2/IMSdkbD5UGZNuiYc8UI=; b=SRWQ3bIi8FakJIKrDIE7w28u4Wf4BKRxL1hRLsNwO2RzdaB8NDW0lc+x4X6/ywSDzs MCgv/2mgZD3dfqlN7vhfeEBhu8jdj/z9YF6/2FHgiRkxh7odrM03vrG0V/eRCKjbk/B0 TUCFRv7qt8JMF7F4JkcGoPFZLLoyXNg675Rfoz0jlgeRTUn+OcSs4R1+GXYnCTLBCT2o HLeJoX8BlQFEUm9Q4XKHuqjeeRCT6GTZSg0K2C7Xh0M3hBjWyT70YCOffgG+I3XudyMW KuPhN/Wh7eIFVhpkBd7/J0+t2kD9oU3P1AbpXas3wr09uEn/QrbXvAuyH757pSNXV01U d29A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=JD9x2z+x; 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 u67si4721812oie.259.2020.03.29.02.43.07; Sun, 29 Mar 2020 02:43:19 -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=JD9x2z+x; 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 S1727931AbgC2JlE (ORCPT + 99 others); Sun, 29 Mar 2020 05:41:04 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:6110 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727397AbgC2JlD (ORCPT ); Sun, 29 Mar 2020 05:41:03 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48qrF70qgKz9tyY0; Sun, 29 Mar 2020 11:40:59 +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=JD9x2z+x; 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 W2DKOqpYvs0k; 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 48qrF66qzKz9tyXy; Sun, 29 Mar 2020 11:40:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585474859; bh=9Ex3O+iluoexmpGb+PEB5x2/IMSdkbD5UGZNuiYc8UI=; h=From:Subject:To:Cc:Date:From; b=JD9x2z+x1Fdqj6pXC/MT1KrW50s81K/1H4B1yO35cf1HCqE/W8y37LwrmymhK/FBj d6fIe0YvTLR9yqVq6YzTVbhqrF64ud8ChFXgtcezg/iNRAucb5lnhZH72cCdFmedYj 1iO0c+HhCMYbjNBMFkbrhbbFciPfgQZ8Be2iXr4k= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id DC5188B770; Sun, 29 Mar 2020 11:41:01 +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 STH3M_JcQ2vg; Sun, 29 Mar 2020 11:41:01 +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 954998B752; Sun, 29 Mar 2020 11:41:01 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 4CDA965653; Sun, 29 Mar 2020 09:41:01 +0000 (UTC) Message-Id: From: Christophe Leroy Subject: [PATCH 01/12] powerpc/52xx: Blacklist functions running with MMU disabled 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:01 +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/52xx/lite5200_sleep.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/powerpc/platforms/52xx/lite5200_sleep.S b/arch/powerpc/platforms/52xx/lite5200_sleep.S index 3a9969c429b3..70083649c9ea 100644 --- a/arch/powerpc/platforms/52xx/lite5200_sleep.S +++ b/arch/powerpc/platforms/52xx/lite5200_sleep.S @@ -248,6 +248,7 @@ mmu_on: blr +_ASM_NOKPROBE_SYMBOL(lite5200_wakeup) /* ---------------------------------------------------------------------- */ @@ -391,6 +392,7 @@ restore_regs: LOAD_SPRN(TBWU, 0x5b); blr +_ASM_NOKPROBE_SYMBOL(restore_regs) -- 2.25.0