Oops in __free_pages_ok (pre7-1)

From: Juan J. Quintela (quintela@fi.udc.es)
Date: Mon May 01 2000 - 18:29:26 EST


Hi
        several people have reported Oops in __free_pages_ok, after a
        BUG() in page_alloc.h. This happens in 2.3.99-pre[67]

        I have found that this patch solves the Oops for me. (I know
        that this is not the proper solution, could people test this
        patch and mail me if the Oops disappear/or go worst? I am
        trying to isolate the problem. Now I get one kill of the
        process from the VM, I am interested to know if this is the
        case for the rest of the people with this problem.

        For more information about my findings see my post to
        linux-mm@kvack.org.

Thanks in advance, Juan.

diff -u -urN --exclude=CVS --exclude=*~ --exclude=.#* pre7-1plus/mm/memory.c lin
ux/mm/memory.c
--- pre7-1plus/mm/memory.c Tue Apr 25 00:46:18 2000
+++ linux/mm/memory.c Tue May 2 00:36:13 2000
@@ -1053,7 +1053,7 @@
 
        pte = mk_pte(page, vma->vm_page_prot);
 
- SetPageSwapEntry(page);
+ /* SetPageSwapEntry(page); */
 
        /*
         * Freeze the "shared"ness of the page, ie page_count + swap_count.

-- 
In theory, practice and theory are the same, but in practice they 
are different -- Larry McVoy

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



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:09 EST