]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IA64] permon use-after-free fix
authorNick Piggin <npiggin@suse.de>
Tue, 6 Mar 2007 10:34:25 +0000 (02:34 -0800)
committerTony Luck <tony.luck@intel.com>
Tue, 6 Mar 2007 22:49:52 +0000 (14:49 -0800)
commit41d5e5d73ecef4ef56b7b4cde962929a712689b4
tree51cb9289609c639d86a768ff92340291a4d1b452
parent50157b09b33c2ec3637d3b317b06a7235c57c7f2
[IA64] permon use-after-free fix

Perfmon associates vmalloc()ed memory with a file descriptor, and installs
a vma mapping that memory.  Unfortunately, the vm_file field is not filled
in, so processes with mappings to that memory do not prevent the file from
being closed and the memory freed.  This results in use-after-free bugs and
multiple freeing of pages, etc.

I saw this bug on an Altix on SLES9.  Haven't reproduced upstream but it
looks like the same issue is there.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Stephane Eranian <eranian@hpl.hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/kernel/perfmon.c