lkml.org 
[lkml]   [2009]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch] mmu_notifiers destroyed by __mmu_notifier_release() retain extra mm_count.
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.


\
 
 \ /
  Last update: 2009-02-05 22:23    [W:0.067 / U:0.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site