From: Roland McGrath Date: Thu, 10 Apr 2008 22:38:45 +0000 (-0700) Subject: asmlinkage_protect sys_io_getevents X-Git-Tag: v2.6.25-rc9~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=598af051a79d05b751fe793f1fe09fcf74763e02;p=pandora-kernel.git asmlinkage_protect sys_io_getevents Use asmlinkage_protect in sys_io_getevents, because GCC for i386 with CONFIG_FRAME_POINTER=n can decide to clobber an argument word on the stack, i.e. the user struct pt_regs. Here the problem is not a tail call, but just the compiler's use of the stack when it inlines and optimizes the body of the called function. This seems to avoid it. Signed-off-by: Roland McGrath Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed