The patch titled proc: proc_get_inode() should get module only once has been removed from the -mm tree. Its filename was proc-proc_get_inode-should-get-module-only-once.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: proc: proc_get_inode() should get module only once From: "Denis V. Lunev" <den@xxxxxxxxxx> Any file under /proc/net opened more than once leaked the refcounter on the module it belongs to. The problem is that module_get is called for each file opening while module_put is called only when /proc inode is destroyed. So, lets put module counter if we are dealing with already initialised inode. Addresses http://bugzilla.kernel.org/show_bug.cgi?id=10737 Signed-off-by: Denis V. Lunev <den@xxxxxxxxxx> Cc: David Miller <davem@xxxxxxxxxxxxx> Cc: Patrick McHardy <kaber@xxxxxxxxx> Acked-by: Pavel Emelyanov <xemul@xxxxxxxxxx> Acked-by: Robert Olsson <robert.olsson@xxxxxxxxx> Acked-by: Eric W. Biederman <ebiederm@xxxxxxxxxxxx> Reported-by: Roland Kletzing <devzero@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN fs/proc/inode.c~proc-proc_get_inode-should-get-module-only-once fs/proc/inode.c --- a/fs/proc/inode.c~proc-proc_get_inode-should-get-module-only-once +++ a/fs/proc/inode.c @@ -425,7 +425,8 @@ struct inode *proc_get_inode(struct supe } } unlock_new_inode(inode); - } + } else + module_put(de->owner); return inode; out_ino: _ Patches currently in -mm which might be from den@xxxxxxxxxx are flock-remove-unused-fields-from-file_lock_operations.patch proc-use-non-racy-method-for-proc-page_owner-creation-page_owner.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html