linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
To: Michael Ellerman <mpe@ellerman.id.au>
Cc: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>,
	Masami Hiramatsu <mhiramat@kernel.org>,
	linuxppc-dev@lists.ozlabs.org
Subject: [PATCH 2/2] powerpc: kprobes: blacklist exception common handlers
Date: Wed, 19 Apr 2017 20:59:52 +0530	[thread overview]
Message-ID: <f71f8e55d7f5548103c5e0c29abb303db664a894.1492614257.git.naveen.n.rao@linux.vnet.ibm.com> (raw)
In-Reply-To: <cover.1492614257.git.naveen.n.rao@linux.vnet.ibm.com>
In-Reply-To: <cover.1492614257.git.naveen.n.rao@linux.vnet.ibm.com>

Blacklist all the exception common/OOL handlers as the kernel stack is
not yet setup, which means we can't take a trap at this point.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
---
 arch/powerpc/include/asm/head-64.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/powerpc/include/asm/head-64.h b/arch/powerpc/include/asm/head-64.h
index 5067048daad4..86eb87382031 100644
--- a/arch/powerpc/include/asm/head-64.h
+++ b/arch/powerpc/include/asm/head-64.h
@@ -213,6 +213,7 @@ end_##sname:
 	USE_TEXT_SECTION();					\
 	.balign IFETCH_ALIGN_BYTES;				\
 	.global name;						\
+	_ASM_NOKPROBE_SYMBOL(name);				\
 	DEFINE_FIXED_SYMBOL(name);				\
 name:
 
-- 
2.12.1

  parent reply	other threads:[~2017-04-19 15:31 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-19 15:29 [PATCH 0/2] powerpc: kprobes: blacklist exception vectors Naveen N. Rao
2017-04-19 15:29 ` [PATCH 1/2] powerpc: kprobes: blacklist exception handlers Naveen N. Rao
2017-04-20  6:33   ` Michael Ellerman
2017-04-20  7:04     ` Naveen N. Rao
2017-04-20 12:30       ` Michael Ellerman
2017-04-23 11:53   ` [1/2] " Michael Ellerman
2017-04-19 15:29 ` Naveen N. Rao [this message]
2017-04-23 11:53   ` [2/2] powerpc: kprobes: blacklist exception common handlers Michael Ellerman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f71f8e55d7f5548103c5e0c29abb303db664a894.1492614257.git.naveen.n.rao@linux.vnet.ibm.com \
    --to=naveen.n.rao@linux.vnet.ibm.com \
    --cc=ananth@linux.vnet.ibm.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mhiramat@kernel.org \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).