android_kernel_xiaomi_sm8350/arch/ia64/ia32
Robin Holt bd1d6e2451 [IA64] Change SET_PERSONALITY to comply with comment in binfmt_elf.c.
We have a customer application which trips a bug.  The problem arises
when a driver attempts to call do_munmap on an area which is mapped, but
because current->thread.task_size has been set to 0xC0000000, the call
to do_munmap fails thinking it is an unmap beyond the user's address
space.

The comment in fs/binfmt_elf.c in load_elf_library() before the call
to SET_PERSONALITY() indicates that task_size must not be changed for
the running application until flush_thread, but is for ia64 executing
ia32 binaries.

This patch moves the setting of task_size from SET_PERSONALITY() to
flush_thread() as indicated.  The customer application no longer is able
to trip the bug.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2005-12-06 09:12:34 -08:00
..
binfmt_elf32.c [IA64] Change SET_PERSONALITY to comply with comment in binfmt_elf.c. 2005-12-06 09:12:34 -08:00
elfcore32.h
ia32_entry.S kbuild: ia64 use generic asm-offsets.h support 2005-09-09 22:03:13 +02:00
ia32_ioctl.c [PATCH] remove ioctl32_handler_t 2005-11-09 07:56:00 -08:00
ia32_ldt.c
ia32_signal.c [IA64] remove use of asm/segment.h 2005-08-24 13:23:30 -07:00
ia32_support.c
ia32_traps.c
ia32priv.h [IA64] Change SET_PERSONALITY to comply with comment in binfmt_elf.c. 2005-12-06 09:12:34 -08:00
Makefile
sys_ia32.c [PATCH] unify sys_ptrace prototype 2005-10-30 17:37:20 -08:00