android_kernel_google_msm/arch/m68k
Andreas Schwab d311156acf m68k: Define asmlinkage_protect
commit 8474ba74193d302e8340dddd1e16c85cc4b98caf upstream.

Make sure the compiler does not modify arguments of syscall functions.
This can happen if the compiler generates a tailcall to another
function.  For example, without asmlinkage_protect sys_openat is compiled
into this function:

sys_openat:
	clr.l %d0
	move.w 18(%sp),%d0
	move.l %d0,16(%sp)
	jbra do_sys_open

Note how the fourth argument is modified in place, modifying the register
%d4 that gets restored from this stack slot when the function returns to
user-space.  The caller may expect the register to be unmodified across
system calls.

Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-04-27 18:55:24 +08:00
..
amiga
apollo
atari
bvme6000
configs
emu m68k/atari: ARAnyM - Fix NatFeat module support 2013-08-20 08:26:29 -07:00
fpsp040
hp300
ifpsp060
include/asm m68k: Define asmlinkage_protect 2016-04-27 18:55:24 +08:00
kernel m68k/mac: Fix unexpected interrupt with CONFIG_EARLY_PRINTK 2013-06-07 12:49:34 -07:00
lib
mac
math-emu
mm vm: add VM_FAULT_SIGSEGV handling support 2015-04-14 17:33:57 +08:00
mvme16x
mvme147
platform
q40
sun3
sun3x
tools/amiga
install.sh
Kconfig
Kconfig.bus
Kconfig.cpu
Kconfig.debug
Kconfig.devices
Kconfig.machine
Makefile