[PATCH] x86_64 memleak from malicious 32bit elf program
authorSiddha, Suresh B <suresh.b.siddha@intel.com>
Sat, 16 Jul 2005 02:17:44 +0000 (19:17 -0700)
committerChris Wright <chrisw@osdl.org>
Fri, 5 Aug 2005 07:04:16 +0000 (00:04 -0700)
commit691162d638928856e23f21d122aa39de47a494e4
treed32da152756953775b3465574b659999d8431b8d
parente0b02eec6f8371d993c4aca134d728d3510f7c8a
[PATCH] x86_64 memleak from malicious 32bit elf program

malicious 32bit app can have an elf section at 0xffffe000.  During
exec of this app, we will have a memory leak as insert_vm_struct() is
not checking for return value in syscall32_setup_pages() and thus not
freeing the vma allocated for the vsyscall page.

Check the return value and free the vma incase of failure.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/ia32/syscall32.c