cannot access memory beyond end of bootstrap direct-map area
Hi,
Investigating the above message during xen 3.3 boot, found we left a wrong assumption [modules_length == (mod[n].end - mod[0].start)] in move_memory call, leading to an access above BOOTSTRAP_DIRECTMAP_END and this panic on x86_32.
In my understanding Keir's patch 18630 was fixing this kind of problem and I'm wondering why this move_memory call didn't go away with it ?
If this were ok, attached patch fixes the panic on my system.
Cheers,
Pascal
Signature · 2 lines
\o/ Pascal Bouchareine - Gandi g 0170393757 15, place de la Nation - 75011 Paris
xen/arch/x86/setup.c +1 -5
@@ -737,11 +737,6 @@ void __init __start_xen(unsigned long mbif ( !initial_images_start && (s < e) && ((e-s) >= modules_length) ) { initial_images_end = e; - e = (e - modules_length) &PAGE_MASK ; - initial_images_start = e; -move_memory (initial_images_start, - mod[0 ].mod_start, mod[mbi->mods_count-1 ].mod_end); - e += modules_length;for ( j = mbi->mods_count-1 ; j >=0 ; j-- ) { e -= mod[j].mod_end - mod[j].mod_start;
@@ -749,6 +744,7 @@ void __init __start_xen(unsigned long mb mod[j].mod_end += e - mod[j].mod_start; mod[j].mod_start = e; } + initial_images_start = e; } if ( !kexec_crash_area.start && (s < e) &&
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 7 lines · Pascal Bouchareine
Investigating the above message during xen 3.3 boot, found we left a wrong assumption [
modules_length== (mod[n].end - mod[0].start)] inmove_memorycall, leading to an access aboveBOOTSTRAP_DIRECTMAP_ENDand this panic onx86_32.In my understanding Keir's patch 18630 was fixing this kind of problem and I'm wondering why this
move_memorycall didn't go away with it ?
Looks like a backporting mistake. The original bug didn't happen on my system so the bad backport wasn't noticed.
Quoted 1 line
If this were ok, attached patch fixes the panic on my system.
You should be able to remove the bogus move_memory() call, and change absolutely nothing else. Does that also work for you? That's the change I would check in.
-- Keir
Quoted 5 lines · Keir Fraser
Quoted 1 line
If this were ok, attached patch fixes the panic on my system.
You should be able to remove the bogus
move_memory()call, and change absolutely nothing else. Does that also work for you? That's the change I would check in.
Yup, I thought that's what the patch did, modulo we need to keep track of initial_images_start and need "e" in place for the loop ? Or I need a look at the original fix.
Quoted 9 lines · Pascal Bouchareine
Quoted 4 lines
You should be able to remove the bogus
move_memory()call, and change absolutely nothing else. Does that also work for you? That's the change I
would check in.Yup, I thought that's what the patch did, modulo we need to keep track of
initial_images_start
and need "e" in place for the loop ? Or I need a look at the original fix.
Initial_images_start and e would already be correct for the loop. Just the move_memory() call outside the loop is completely unnecessary. Try removing just that call and see if that works.
-- Keir
Quoted 4 lines · Keir Fraser
Initial_images_startand e would already be correct for the loop. Just themove_memory()call outside the loop is completely unnecessary. Try removing just that call and see if that works.
Ho, I have been misreading it. Indeed, just removing the call works too.