Re: Memory leak in 2.4.27 kernel, using mmap raw packet sockets

From: Andrea Arcangeli
Date: Mon Nov 29 2004 - 23:18:44 EST


On Mon, Nov 29, 2004 at 08:03:31PM -0800, David S. Miller wrote:
>
> These changes have made 2.4.29-BK stop booting on sparc64.
> I'll get more information to find out exactly why.

hmm strange, I would suggest to put a dump_stack here to see where it
triggers:

if (!pages[i] || PageReserved(pages[i])) {
if (pages[i] != ZERO_PAGE(start)) {
+ dump_stack()
savevma = vma;
goto bad_page;
}

} else

The only thing I see that's probably missing for sparc is a
flush_dcache_page page_cache_get, but that wouldn't prevent booting,
it'd only corrupt userland as worse (and it was missing from the
previous code too ;).
-
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/