lkml.org 
[lkml]   [2006]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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/

    \
     
     \ /
      Last update: 2006-04-05 02:08    [W:0.020 / U:30.964 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site