kernel-ark/arch
David Mosberger-Tang a37d98f6a9 [IA64] fix syscall-optimization goof
Sadly, I goofed in this syscall-tuning patch:

ChangeSet 1.1966.1.40 2005/01/22 13:31:05 davidm@hpl.hp.com
  [IA64] Improve ia64_leave_syscall() for McKinley-type cores.

  Optimize ia64_leave_syscall() a bit better for McKinley-type cores.
  The patch looks big, but that's mostly due to renaming r16/r17 to r2/r3.
  Good for a 13 cycle improvement.

The problem is that the size of the physical stacked registers was
loaded into the wrong register (r3 instead of r17).  Since r17 by
coincidence always had the value 1, this had the effect of turning
rse_clear_invalid into a no-op.  That poses the risk of leaking kernel
state back to user-land and is hence not acceptable.

The fix below is simple, but unfortunately it costs us about 28 cycles
in syscall overhead. ;-(

Unfortunately, there isn't much we can do about that since those
registers have to be cleared one way or another.

	--david

Signed-off-by: Tony Luck <tony.luck@intel.com>
2005-04-25 13:20:38 -07:00
..
alpha [PATCH] alpha: key management syscalls 2005-04-21 11:28:26 -07:00
arm [PATCH] freepgt: arm FIRST_USER_ADDRESS PAGE_SIZE 2005-04-19 13:29:21 -07:00
arm26 [PATCH] freepgt: arm26 FIRST_USER_ADDRESS PAGE_SIZE 2005-04-19 13:29:22 -07:00
cris
frv
h8300
i386 [PATCH] fix subarch breakage in amd dual core updates 2005-04-21 16:20:35 -07:00
ia64 [IA64] fix syscall-optimization goof 2005-04-25 13:20:38 -07:00
m32r
m68k
m68knommu
mips
parisc
ppc [PATCH] ppc user annotations: debug_setconetext(2) 2005-04-25 07:55:59 -07:00
ppc64 [PATCH] freepgt: hugetlb area is clean 2005-04-19 13:29:18 -07:00
s390
sh
sh64
sparc [SPARC]: dump_stack for sparc 2005-04-24 20:46:49 -07:00
sparc64 [PATCH] mostek bogus sparse annotations fixed 2005-04-24 12:28:36 -07:00
um
v850
x86_64 [PATCH] x86_64: fix new out of line put_user() 2005-04-22 10:22:07 -07:00