[parisc-linux-cvs] linux-2.6 jejb
James Bottomley
jejb at parisc-linux.org
Sat Feb 7 11:32:50 MST 2004
CVSROOT: /var/cvs
Module name: linux-2.6
Changes by: jejb 04/02/07 11:32:50
Modified files:
. : Makefile
arch/parisc/kernel: entry.S process.c
Log message:
Fix DOS hole in sys_clone.
We use usp == 0 as the signal that the task being started is a kernel
thread. However, it is legal to pass a zero usp to sys_clone (it
means use the current stack).
The fix is twofold:
1. Use the value 1 as the kernel thread indicator (and make sure this
can never be passed into sys_clone)
2. Check for usp == 0 and set usp to the current stack (gr30).
This also fixes the strace -f problem hanging on fork.
More information about the parisc-linux-cvs
mailing list