linux/arch/x86
Roland McGrath 0327559151 x86: auditsyscall: fix fastpath return value after reschedule
In the CONFIG_AUDITSYSCALL fast-path for x86 64-bit system calls,
we can pass a bad return value and/or error indication for the
system call to audit_syscall_exit().  This happens when
TIF_NEED_RESCHED was set as the system call returned, so we went
out to schedule() and came back to the exit-audit fast-path.  The
fix is to reload the user return value register from the pt_regs
before using it for audit_syscall_exit().

Both the 32-bit kernel's fast path and the 64-bit kernel's 32-bit
system call fast paths work slightly differently, so that they
always leave the fast path entirely to reschedule and don't return
there, so they don't have the analogous bugs.

Reported-by: Alexander Viro <aviro@redhat.com>
Signed-off-by: Roland McGrath <roland@redhat.com>
2010-07-21 17:44:12 -07:00
..
boot
configs
crypto
ia32
include/asm x86: Add i8042 pre-detection hook to x86_platform_ops 2010-07-07 17:05:06 -07:00
kernel x86: auditsyscall: fix fastpath return value after reschedule 2010-07-21 17:44:12 -07:00
kvm mm: add context argument to shrinker callback 2010-07-19 14:56:17 +10:00
lguest
lib
math-emu
mm rbtree: Undo augmented trees performance damage and regression 2010-07-05 14:43:50 +02:00
oprofile
pci Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2010-07-19 13:19:32 -07:00
power
tools
vdso
video
xen
.gitignore
Kbuild
Kconfig
Kconfig.cpu
Kconfig.debug
Makefile
Makefile_32.cpu