Re: GIT head no longer boots on x86-64

From: Jiri Slaby
Date: Mon Oct 13 2008 - 06:58:18 EST


Could you try the debug patch below to see what address is text_poke trying
to translate?

---
mm/vmalloc.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index bba06c4..8b8d0a4 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -179,13 +179,17 @@ struct page *vmalloc_to_page(const void *vmalloc_addr)
pud_t *pud;
pmd_t *pmd;
pte_t *ptep, pte;
+ char buf[KSYM_NAME_LEN];

/*
* XXX we might need to change this if we add VIRTUAL_BUG_ON for
* architectures that do not vmalloc module space
*/
- VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) &&
- !is_module_address(addr));
+/* VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) &&
+ !is_module_address(addr));*/
+ sprint_symbol(buf, (unsigned long)__builtin_return_address(0));
+ if (!is_vmalloc_addr(vmalloc_addr) && !is_module_address(addr))
+ printk("BUG? %s (from %s): %p\n", __func__, buf, vmalloc_addr);

if (!pgd_none(*pgd)) {
pud = pud_offset(pgd, addr);
--
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/