Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1360433ybb; Sun, 29 Mar 2020 02:42:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vujW420ixZh38zdgEIuLkhxB8JBC+FWEr7BZ6yJqN4SJc6wMlFD7/Ff/oZUPF+5j0bN5CH1 X-Received: by 2002:a05:6830:2421:: with SMTP id k1mr5401839ots.192.1585474935232; Sun, 29 Mar 2020 02:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585474935; cv=none; d=google.com; s=arc-20160816; b=0lLKYB+X127OpSyzwwonoh4uVqHCt/p/71S/EG9GFp6Hdl6HtJsUM8v8ycRN8RnYcB RS6z9Fr1adyHgrVCkA//pOVdHHvhtW9dAVrb01WOGpli3bmL8tPUUWaVamwgkYO8KLNs gwVtN8tY7FsutYnBIEUh98NTsIi1pGwG9wDDcD45P7xsikF6WIiIdeau7wAwdVSDn7tZ p/vWJsKeibnYupbRdKeO8+FE2LoBdKDm3gC4gnUvJkoDRFXt8Lr5h7oHuA0DgxrPSLci IYsztbc+rPGfP3WjksT5/ImtQFCw3UaK6E6OPtnCUSvf+wwk8djcUCn+KoPz9KTlx58F QHYQ== 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=EAN9wu96hIOOs9Jxj5AMmN+BQRhi9IaXixrZRhz2y4s=; b=YMWShYLGzz+ve1Yme3Vez2K8PgGNa83rKLovCMxIr3sCMA47nqGAK/e4PZMhkhBdfi 7pwQnuO9MTufj64w48Zn2ugg5TXm+sGb0qcIUXY3+zz3IVQUwWVniD+dnvWfvG/qwAZ3 okpWNFT5EoaeCVZ5CKFXS7knxHQibBqLyuhtKM0bk4DRk1qgvHEXqZPAO3woQojoa9sP WX8kkxSU0yAJDFYjXPxD4oz4fDFvciujH1q2MkcaUUtzHAGoQd4sElJhTae7oheIRnGN FGYv6WZrhnkhn7v8qSfMTzFPLwq0Jsd/0/KL87CqiHgg2XQ7L9q0JCUK0XFxY5ajhT9J lWLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=Sf8zrvd4; 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 i187si4788316oif.89.2020.03.29.02.42.03; Sun, 29 Mar 2020 02:42:15 -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=Sf8zrvd4; 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 S1728057AbgC2JlR (ORCPT + 99 others); Sun, 29 Mar 2020 05:41:17 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:39885 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbgC2JlN (ORCPT ); Sun, 29 Mar 2020 05:41:13 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 48qrFJ1NPwz9v0Cf; Sun, 29 Mar 2020 11:41:08 +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=Sf8zrvd4; 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 bwRwM-iJzW9J; Sun, 29 Mar 2020 11:41:08 +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 48qrFJ0NT4z9v0Bs; Sun, 29 Mar 2020 11:41:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1585474868; bh=EAN9wu96hIOOs9Jxj5AMmN+BQRhi9IaXixrZRhz2y4s=; h=In-Reply-To:References:From:Subject:To:Cc:Date:From; b=Sf8zrvd4GZj8YvZu6ZqZIJU7UDFOSrHwkP5vxG+IMQoNlAFG1++PYHXlgndT5WFZw JVCfTtpNjEq1nPOz5DwEBALdwLo0U8MbQkDVqXGMAF+H+HPueE8TUIwB0f+vvx0ycQ nehAbJs5KPdN0qUO8YxtAXCNuoOSVAEvq0bPFM/w= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 05D818B770; Sun, 29 Mar 2020 11:41:11 +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 lqb_UcoigZK2; Sun, 29 Mar 2020 11:41:10 +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 C70828B752; Sun, 29 Mar 2020 11:41:10 +0200 (CEST) Received: by pc16570vm.idsi0.si.c-s.fr (Postfix, from userid 0) id 97ED565653; Sun, 29 Mar 2020 09:41:10 +0000 (UTC) Message-Id: In-Reply-To: References: From: Christophe Leroy Subject: [PATCH 10/12] powerpc/entry32: Blacklist exception entry points 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:10 +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. As exception entry points are running with MMU disabled, blacklist them. Signed-off-by: Christophe Leroy --- arch/powerpc/kernel/entry_32.S | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index 94f78c03cb79..9a1a45d6038a 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S @@ -51,6 +51,7 @@ mcheck_transfer_to_handler: mfspr r0,SPRN_DSRR1 stw r0,_DSRR1(r11) /* fall through */ +_ASM_NOKPROBE_SYMBOL(mcheck_transfer_to_handler) .globl debug_transfer_to_handler debug_transfer_to_handler: @@ -59,6 +60,7 @@ debug_transfer_to_handler: mfspr r0,SPRN_CSRR1 stw r0,_CSRR1(r11) /* fall through */ +_ASM_NOKPROBE_SYMBOL(debug_transfer_to_handler) .globl crit_transfer_to_handler crit_transfer_to_handler: @@ -94,6 +96,7 @@ crit_transfer_to_handler: rlwinm r0,r1,0,0,(31 - THREAD_SHIFT) stw r0,KSP_LIMIT(r8) /* fall through */ +_ASM_NOKPROBE_SYMBOL(crit_transfer_to_handler) #endif #ifdef CONFIG_40x @@ -115,6 +118,7 @@ crit_transfer_to_handler: rlwinm r0,r1,0,0,(31 - THREAD_SHIFT) stw r0,KSP_LIMIT(r8) /* fall through */ +_ASM_NOKPROBE_SYMBOL(crit_transfer_to_handler) #endif /* @@ -127,6 +131,7 @@ crit_transfer_to_handler: .globl transfer_to_handler_full transfer_to_handler_full: SAVE_NVGPRS(r11) +_ASM_NOKPROBE_SYMBOL(transfer_to_handler_full) /* fall through */ .globl transfer_to_handler @@ -286,6 +291,8 @@ reenable_mmu: lwz r2, GPR2(r11) b fast_exception_return #endif +_ASM_NOKPROBE_SYMBOL(transfer_to_handler) +_ASM_NOKPROBE_SYMBOL(transfer_to_handler_cont) #ifndef CONFIG_VMAP_STACK /* -- 2.25.0