Skip to contentSkip to conversation

ultra5/10 bootup hang bug

PATCH David Miller 2 participants 2 messages Aug 14, 2008

lore
Share & tools
lore
#0 lore raw

Hey guys, while snooping around some more trying to figure out what might be causing the MIGRATE_* value corruption and thus the crash, I found the following bug.

In nid_range(), we can overshoot "end" if "start" begins on a non-page boundary.

It may or may not fix the bug we're tracking down, I don't know, but it's worth testing :-) Anyways, the patch is below.

I also look forward to the tracing results from that debugging patch I gave you guys earlier.

Thanks.

arch/sparc64/mm/init.c +3 -0
index 217de3e..6172951 100644
@@ -796,6 +796,9 @@ static unsigned long nid_range(unsigned long start, unsigned long end,
 		start += PAGE_SIZE;
 	}
 
+	if (start > end)
+		start = end;
+
 	return start;
 }
 #else
#1 lore raw

2008/8/14 David Miller <[email protected]>:

Quoted 5 lines

Hey guys, while snooping around some more trying to figure out what might be causing the MIGRATE_* value corruption and thus the crash, I found the following bug.

Quoted 8 lines

In nid_range(), we can overshoot "end" if "start" begins on a non-page boundary.

It may or may not fix the bug we're tracking down, I don't know, but it's worth testing :-) Anyways, the patch is below.

I also look forward to the tracing results from that debugging patch I gave you guys earlier.

I tried it with both your patches with the same result - it hangs with the same BUG message.