[IA64] make exception handler in copy_user more robust
commit295bd89279aad6959f0d363ee8e946d4766f9ad8
authorChen, Kenneth W <kenneth.w.chen@intel.com>
Tue, 6 Sep 2005 23:05:23 +0000 (6 16:05 -0700)
committerTony Luck <tony.luck@intel.com>
Wed, 7 Sep 2005 15:53:16 +0000 (7 08:53 -0700)
treee0bcc6080adc665a818585fbb0280a50c82a18c4
parent63028aa7f581d9d4e6889f9dc06ded2534250a76
[IA64] make exception handler in copy_user more robust

The exception handler in copy user always expects fault occurs only on
user space address and the fall back recovery code is written with that
very assumption in mind.  Recent source code inspection revealed that
while it worked splendid and to the expectation under normal circumstances,
It broke down under unexpected condition where some address calculation
might go outside the legal address range the original copy_user was
called for.  This patch is to make copy_user exception handler more robust
and to prevent potential memory corruption.

Signed-off-by: Ken Chen <kenneth.w.chen@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/lib/memcpy_mck.S