[2.5] memleak in load_elf_binary?

From: Oleg Drokin (green@namesys.com)
Date: Fri Mar 07 2003 - 06:12:47 EST


Hello!

   I am still playing with improving memleak detector thing from smatch project.

   Seems there is a memleak in fs/binfmt_elf.c::load_elf_binary() in current 2.5
   If setup_arg_pages() fails (line 638 in my sources) we do return but
   not freeing possibly allocated elf_interpreter (line 520) and
   allocated elf_phdata (line 500) areas.

   Is this looking real? At least it looks real for me (I am trying to get
   number of false positives way down).

Bye,
    Oleg
-
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/



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:36 EST