Re: 2.1.105 MASSIVE memory leak (mmap_104-patch)

Bill Hawes (whawes@transmeta.com)
Tue, 09 Jun 1998 07:47:37 -0700


Michael L. Galbraith wrote:

> The leaked memory seems to be 'extra' from the mmap_104-patch. Reversing
> the patch cleared the leak.
>
> + /*
> + * We need at least one vma, and may need an extra one if we
> + * unmap a hole. Get them now before acquiring the semaphore.
> + */
> + error = -ENOMEM;
> + vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
> + if (!vma)
> + goto out;
> + extra = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL);
> + /* (allocation will be checked later) */
> +

Hi Mike,

Ahh, good work in tracking that down. I must have left an exit case unchecked -- will fix it right away.

Regards,
Bill

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu