]> git.hungrycats.org Git - linux/commit
[PATCH] tailcall prevention in sys_wait4() and sys_waitid()
authorIngo Molnar <mingo@elte.hu>
Sun, 17 Oct 2004 02:20:30 +0000 (19:20 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 17 Oct 2004 02:20:30 +0000 (19:20 -0700)
commitc5cada670bf08d89870dd43ea25419f6ffb27c33
tree18fafc925781ad275ca6b161e4615df2e0b2ff70
parent74a82aa978123ad278514ee5553343ff7008b5f7
[PATCH] tailcall prevention in sys_wait4() and sys_waitid()

A hack to prevent the compiler from generatin tailcalls in these two
functions.

With CONFIG_REGPARM=y, the tailcalled code ends up stomping on the
syscall's argument frame which corrupts userspace's registers.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/linkage.h
include/linux/linkage.h
kernel/exit.c