--- x/fs/proc/proc_misc.c.~1~ 2003-05-27 04:36:32.000000000 +0200 +++ x/fs/proc/proc_misc.c 2003-05-27 04:38:41.000000000 +0200 @@ -598,7 +598,8 @@ static ssize_t read_profile(struct file buf++; p++; count--; read++; } pnt = (char *)prof_buffer + p - sizeof(unsigned int); - copy_to_user(buf,(void *)pnt,count); + if (copy_to_user(buf,(void *)pnt,count)) + return -EFAULT; read += count; *ppos += read; return read;