]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86_64: TASK_SIZE fixes for compatibility mode processes
authorSiddha, Suresh B <suresh.b.siddha@intel.com>
Sat, 16 Jul 2005 02:17:44 +0000 (19:17 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 16 Jul 2005 05:56:11 +0000 (22:56 -0700)
commit9fb1759a3102c26cd8f64254a7c3e532782c2bb8
treeb14426c49283b114594454c19168b84fd6cee4d8
parentd6e1860312cd8c33ad1f17d1af22fb6aa1f2cf83
[PATCH] x86_64: TASK_SIZE fixes for compatibility mode processes

A 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: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/ia32/syscall32.c