Messages in this thread Patch in this message | | | Date | Wed, 15 Feb 2006 21:58:55 +0300 | From | Sergey Vlasov <> | Subject | [PATCH] Fix module refcount leak in __set_personality() |
| |
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().
Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
---
diff --git a/kernel/exec_domain.c b/kernel/exec_domain.c index 867d6db..c01cead 100644 --- a/kernel/exec_domain.c +++ b/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/
| |