OpenCloudOS-Kernel/arch
Eric Paris f031cd2556 audit: ia32entry.S sign extend error codes when calling 64 bit code
In the ia32entry syscall exit audit fastpath we have assembly code which calls
__audit_syscall_exit directly.  This code was, however, zeroes the upper 32
bits of the return code.  It then proceeded to call code which expects longs
to be 64bits long.  In order to handle code which expects longs to be 64bit we
sign extend the return code if that code is an error.  Thus the
__audit_syscall_exit function can correctly handle using the values in
snprintf("%ld").  This fixes the regression introduced in 5cbf1565f2.

Old record:
type=SYSCALL msg=audit(1306197182.256:281): arch=40000003 syscall=192 success=no exit=4294967283
New record:
type=SYSCALL msg=audit(1306197182.256:281): arch=40000003 syscall=192 success=no exit=-13

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
2012-01-17 16:16:56 -05:00
..
alpha Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
arm Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq 2012-01-11 18:53:33 -08:00
avr32 Cleanups on various subarchitectures 2012-01-09 14:21:03 -08:00
blackfin Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
c6x C6X: replace tick_nohz_stop/restart_sched_tick calls 2012-01-08 15:13:16 -05:00
cris lib: use generic pci_iomap on all architectures 2012-01-10 18:04:27 -08:00
frv Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
h8300 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
hexagon lib: move GENERIC_IOMAP to lib/Kconfig 2011-11-24 22:21:19 +02:00
ia64 Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
m32r Merge branch 'pm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm 2012-01-08 13:10:57 -08:00
m68k cpu: Register a generic CPU device on architectures that currently do not 2012-01-11 15:50:11 -08:00
microblaze Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
mips Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
mn10300 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
openrisc cpu: Register a generic CPU device on architectures that currently do not 2012-01-11 15:50:11 -08:00
parisc lib: use generic pci_iomap on all architectures 2012-01-10 18:04:27 -08:00
powerpc Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
s390 Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
score cpu: Register a generic CPU device on architectures that currently do not 2012-01-11 15:50:11 -08:00
sh Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
sparc Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
tile Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
um Audit: push audit success and retcode into arch ptrace.h 2012-01-17 16:16:56 -05:00
unicore32 Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
x86 audit: ia32entry.S sign extend error codes when calling 64 bit code 2012-01-17 16:16:56 -05:00
xtensa Merge branch 'linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jbarnes/pci 2012-01-11 18:50:26 -08:00
.gitignore
Kconfig oprofile, x86: Reimplement nmi timer mode using perf event 2011-11-04 16:27:18 +01:00