diff options
author | Roland McGrath <roland@redhat.com> | 2008-04-10 15:38:45 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-10 17:28:26 -0700 |
commit | 598af051a79d05b751fe793f1fe09fcf74763e02 (patch) | |
tree | c9adafd96ee316c3d05f2978697d3624547f9e84 /fs/aio.c | |
parent | 54a015104136974262afa4b8ddd943ea70dec8a2 (diff) | |
download | op-kernel-dev-598af051a79d05b751fe793f1fe09fcf74763e02.zip op-kernel-dev-598af051a79d05b751fe793f1fe09fcf74763e02.tar.gz |
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>
Diffstat (limited to 'fs/aio.c')
-rw-r--r-- | fs/aio.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1790,6 +1790,7 @@ asmlinkage long sys_io_getevents(aio_context_t ctx_id, put_ioctx(ioctx); } + asmlinkage_protect(5, ret, ctx_id, min_nr, nr, events, timeout); return ret; } |