]> git.baikalelectronics.ru Git - kernel.git/commit
asmlinkage_protect sys_io_getevents
authorRoland McGrath <roland@redhat.com>
Thu, 10 Apr 2008 22:38:45 +0000 (15:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Apr 2008 00:28:26 +0000 (17:28 -0700)
commit04369d35797c6c6c8df9d4903d0815af52b024c6
treec9adafd96ee316c3d05f2978697d3624547f9e84
parent14cf20230819554f988b1d19e448dcf41ee3eb21
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 <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/aio.c