kernel-ark/arch/m68k/kernel
Al Viro ea52b58ccb 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>
2011-01-07 14:01:35 +01:00
..
.gitignore m68k: Add vmlinux.lds to .gitignore 2009-01-12 20:56:32 +01:00
asm-offsets.c m68k{nommu}: Remove unused DEFINE's from asm-offsets.c 2010-10-21 10:17:30 +10:00
dma.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
entry.S m68k: Simplify the singlestepping handling in signals 2011-01-07 14:01:34 +01:00
head.S kbuild: move autoconf.h to include/generated 2009-12-12 13:08:15 +01:00
ints.c m68k: Fix off-by-one in m68k_setup_user_interrupt() 2008-11-15 11:36:06 -08:00
m68k_ksyms.c
Makefile
module.c module: cleanup FIXME comments about trimming exception table entries. 2009-06-12 21:47:05 +09:30
module.lds
process.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
ptrace.c ptrace: cleanup arch_ptrace() on m68k 2010-10-27 18:03:11 -07:00
setup.c m68k: Remove dead GG2 config option 2010-10-22 09:43:22 +02:00
signal.c m68k: Fix stack mangling logics in sigreturn 2011-01-07 14:01:35 +01:00
sun3-head.S m68k: arch/m68k/kernel/sun3-head.S needs <linux/init.h> 2009-04-28 16:07:18 -07:00
sys_m68k.c m68k: Remove big kernel lock in cache flush code 2010-10-22 09:43:25 +02:00
time.c m68k/m68knommu: Remove dead SMP config option 2010-10-22 09:43:23 +02:00
traps.c m68k: Remove trailing spaces in messages 2010-05-17 21:15:40 +02:00
vmlinux-std.lds m68k: Cleanup linker scripts using new linker script macros. 2009-12-06 11:18:25 +01:00
vmlinux-sun3.lds m68k: Cleanup linker scripts using new linker script macros. 2009-12-06 11:18:25 +01:00
vmlinux.lds.S