Messages in this thread Patch in this message | | | Date | Tue, 4 Apr 2006 17:00:53 -0700 | From | gregkh@suse ... | Subject | [patch 17/26] Fix module refcount leak in __set_personality() |
| |
From: Sergey Vlasov <vsu@altlinux.ru>
If the change of personality does not lead to change of exec domain, __set_personality() returned without releasing the module reference acquired by lookup_exec_domain().
This patch was already included in Linus' tree.
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
--- kernel/exec_domain.c | 1 + 1 file changed, 1 insertion(+)
--- linux-2.6.16.1.orig/kernel/exec_domain.c +++ linux-2.6.16.1/kernel/exec_domain.c @@ -140,6 +140,7 @@ __set_personality(u_long personality) ep = lookup_exec_domain(personality); if (ep == current_thread_info()->exec_domain) { current->personality = personality; + module_put(ep->module); return 0; } -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |