Re: Kernel BUG linux-2.5.67

dada1 (dada1@cosmosbay.com)
Wed, 9 Apr 2003 11:08:43 +0200


Hello Andrew

Sorry for the delay...

I confirm that your patch corrects the problem for me.

Thanks

Eric

From: "Andrew Morton" <akpm@digeo.com>
> > instant oops with a small multi-threaded program using futex() & hugetlb
>
> Was the futex placed inside a hugetlb page? Please say yes.
>
> There is a stunning bug.
>
> --- 25/include/linux/mm.h~a 2003-04-08 02:03:19.000000000 -0700
> +++ 25-akpm/include/linux/mm.h 2003-04-08 02:03:24.000000000 -0700
> @@ -231,8 +231,8 @@ static inline void get_page(struct page
> static inline void put_page(struct page *page)
> {
> if (PageCompound(page)) {
> + page = (struct page *)page->lru.next;
> if (put_page_testzero(page)) {
> - page = (struct page *)page->lru.next;
> if (page->lru.prev) { /* destructor? */
> (*(void (*)(struct page *))page->lru.prev)(page);
> } else {
>
> _
>

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