Re: [Patch] mmu_notifiers destroyed by __mmu_notifier_release()retain extra mm_count.
From: Andrea Arcangeli
Date: Thu Feb 05 2009 - 16:21:50 EST
On Thu, Feb 05, 2009 at 11:23:03AM -0600, Robin Holt wrote:
>
> An application relying upon mmu_notifier_release for teardown of the
> mmu_notifiers will leak mm_structs. At the do_mmu_notifier_register
> increments mm_count, but __mmu_notifier_release() does not decrement it.
Sure agreed, thanks! This got unnoticed this long because KVM uses the
unregister method instead of the self-disarming ->release and I guess
your systems have quite some ram so it'd take a while for the memleak
to trigger.
--
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/