linux-stable/arch
H. Peter Anvin fca460f95e x32: Handle the x32 system call flag
x32 shares most system calls with x86-64, but unfortunately some
subsystem (the input subsystem is the chief offender) which require
is_compat() when operating with a 32-bit userspace.  The input system
actually has text files in sysfs whose meaning is dependent on
sizeof(long) in userspace!

We could solve this by having two completely disjoint system call
tables; requiring that each system call be duplicated.  This patch
takes a different approach: we add a flag to the system call number;
this flag doesn't affect the system call dispatch but requests compat
treatment from affected subsystems for the duration of the system call.

The change of cmpq to cmpl is safe since it immediately follows the
and.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2012-02-20 12:52:05 -08:00
..
alpha alpha: Use generic posix_types.h 2012-02-14 12:01:27 -08:00
arm arm: Use generic posix_types.h 2012-02-14 12:01:28 -08:00
avr32 avr32: Use generic posix_types.h 2012-02-14 12:01:28 -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 cris: Use generic posix_types.h 2012-02-14 12:01:28 -08:00
frv frv: Use generic posix_types.h 2012-02-14 12:01:28 -08:00
h8300 h8300: Use generic posix_types.h 2012-02-14 12:01:28 -08:00
hexagon
ia64 ia64: Use generic posix_types.h 2012-02-14 12:01:28 -08:00
m32r m32r: Use generic posix_types.h 2012-02-14 12:01:28 -08:00
m68k m68k: Use generic posix_types.h 2012-02-14 12:01:29 -08:00
microblaze Revert "microblaze: Add topology init" 2012-01-31 09:06:52 +01:00
mips mips: Use generic posix_types.h 2012-02-14 12:01:29 -08:00
mn10300 mn10300: Use generic posix_types.h 2012-02-14 12:01:29 -08:00
openrisc Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2012-01-16 14:34:54 -08:00
parisc parisc: Use generic posix_types.h 2012-02-14 12:01:29 -08:00
powerpc Wrap accesses to the fd_sets in struct fdtable 2012-02-19 10:30:52 -08:00
s390 s390: Use generic posix_types.h 2012-02-14 12:01:29 -08:00
score score: fix off-by-one index into syscall table 2012-01-23 08:38:49 -08:00
sh sh: Remove unnecessary posix_types.h type overrides 2012-02-14 12:01:29 -08:00
sparc sparc: Use generic posix_types.h 2012-02-14 12:01:30 -08:00
tile Merge branch 'for-next' of git://git.infradead.org/users/dhowells/linux-headers 2012-01-14 18:03:30 -08:00
um Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/audit 2012-01-17 16:41:31 -08: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 x32: Handle the x32 system call flag 2012-02-20 12:52:05 -08:00
xtensa xtensa: Use generic posix_types.h 2012-02-14 12:01:30 -08:00
.gitignore
Kconfig mm,x86,um: move CMPXCHG_DOUBLE config option 2012-01-12 20:13:03 -08:00