Re: [PATCH] reject taskset for kernel threads

2007-03-22 Thread Olaf Hering
On Wed, Mar 21, Andrew Morton wrote: > Why does the kernel oops? Attached is a .config and helper scripts for a minimal pseries netboot zImage. Crashes in the second iteration. Does it work on other archs? init.sh referenced in initramfs.txt below #!/bin/bash mount -nv -t proc proc /

Re: [PATCH] reject taskset for kernel threads

2007-03-22 Thread Olaf Hering
On Wed, Mar 21, Andrew Morton wrote: > On Wed, 21 Mar 2007 21:53:53 +0100 > Olaf Hering <[EMAIL PROTECTED]> wrote: > > > > > Do not allow taskset for kernel threads. > > These commands will cause oopses due to stack corruption: > > > > ls /proc/*/task | grep -v ^/ | xargs echo | xargs -n1 tasks

Re: [PATCH] reject taskset for kernel threads

2007-03-21 Thread Andrew Morton
On Wed, 21 Mar 2007 21:53:53 +0100 Olaf Hering <[EMAIL PROTECTED]> wrote: > > Do not allow taskset for kernel threads. > These commands will cause oopses due to stack corruption: > > ls /proc/*/task | grep -v ^/ | xargs echo | xargs -n1 taskset -pc 2-9 > taskset -pc 1 $$ > taskset -pc 0 $((pidof

[PATCH] reject taskset for kernel threads

2007-03-21 Thread Olaf Hering
Do not allow taskset for kernel threads. These commands will cause oopses due to stack corruption: ls /proc/*/task | grep -v ^/ | xargs echo | xargs -n1 taskset -pc 2-9 taskset -pc 1 $$ taskset -pc 0 $((pidof john)) Possible fix in userland: for i in ` ls /proc/*/task | grep -v ^/ ` do