[lkml]   [2011]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[57/70] powerpc: Fix oops if scan_dispatch_log is called too early
2.6.38-stable review patch.  If anyone has any objections, please let us know.


From: Anton Blanchard <>

commit 84ffae55af79d7b8834fd0c08d0d1ebf2c77f91e upstream.

We currently enable interrupts before the dispatch log for the boot
cpu is setup. If a timer interrupt comes in early enough we oops in

Unable to handle kernel paging request for data at address 0x00000010



The patch below adds a check to scan_dispatch_log to ensure the
dispatch log has been allocated.

Signed-off-by: Anton Blanchard <>
Signed-off-by: Benjamin Herrenschmidt <>
Signed-off-by: Greg Kroah-Hartman <>

arch/powerpc/kernel/time.c | 3 +++
1 file changed, 3 insertions(+)

--- a/arch/powerpc/kernel/time.c
+++ b/arch/powerpc/kernel/time.c
@@ -229,6 +229,9 @@ static u64 scan_dispatch_log(u64 stop_tb
u64 stolen = 0;
u64 dtb;

+ if (!dtl)
+ return 0;
if (i == vpa->dtl_idx)
return 0;
while (i < vpa->dtl_idx) {

 \ /
  Last update: 2011-04-19 22:23    [W:0.175 / U:3.644 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site