From 89fd5072dcabed0298042c362eeb315ee437a19b Mon Sep 17 00:00:00 2001
From: Anton Blanchard <anton@samba.org>
Date: Fri, 14 Feb 2003 17:48:31 +1100
Subject: [PATCH] ppc64: dont attempt a traceback table lookup for userspace
 addresses

---
 arch/ppc64/xmon/xmon.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/ppc64/xmon/xmon.c b/arch/ppc64/xmon/xmon.c
index d324bb0297bb..4318a6c7318d 100644
--- a/arch/ppc64/xmon/xmon.c
+++ b/arch/ppc64/xmon/xmon.c
@@ -2072,6 +2072,10 @@ find_tb_table(unsigned long codeaddr, struct tbtable *tab)
 	int instr;
 	int num_parms;
 
+	/* dont look for traceback table in userspace */
+	if (codeaddr < PAGE_OFFSET)
+		return 0;
+
 	if (tab == NULL)
 		return 0;
 	memset(tab, 0, sizeof(tab));
-- 
2.30.9