diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-06 14:09:43 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-01-07 14:01:35 +0100 |
commit | ea52b58ccbda49aeb23eb424ce05bba3cb0bc976 (patch) | |
tree | 82455ff39095652a80a09457428cf1ed937b71c9 /.mailmap | |
parent | 90731d7537317ad5d9672187f7a1dff90b29bb12 (diff) | |
download | linux-3.10-ea52b58ccbda49aeb23eb424ce05bba3cb0bc976.tar.gz linux-3.10-ea52b58ccbda49aeb23eb424ce05bba3cb0bc976.tar.bz2 linux-3.10-ea52b58ccbda49aeb23eb424ce05bba3cb0bc976.zip |
m68k: Fix stack mangling logics in sigreturn
a) we should hold modifying regs->format until we know we *will* be
doing stack expansion; otherwise attacker can modify sigframe to
have wrong ->sc_formatvec and install SIGSEGV handler.
b) we should *not* mix copying saved extra stuff from userland with
expanding the stack; once we'd done that manual memmove, we'd better
not return to C, so cleanup is very hard to do. The easiest way
is to copy it on stack first, making sure we won't overwrite on stack
expansion. Fortunately that's easy to do...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions