[lkml]   [1998]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: copy_from_user() fix
> It is not. But read again your solution (marked with smiley ;):
> You propose to slow down every syscall return by test
> if (retcode == -EFAULT) raise(SIGSEGV).
> My argument is that if you do it from within kernel there's no such
> slowdown.

A stupid implementation would do that. But if you look at syscall.S on most
platforms, you'll see the fast path is always when syscall does not return
error and when you enter the slow path for error handling, you have to call
errno_location, so one test would not hurt. You can write your own shared
library and put it into your /etc/

Jakub Jelinek | |
Administrator of SunSITE Czech Republic, MFF, Charles University
Ultralinux - first 64bit OS to take full power of the UltraSparc
Linux version 2.1.115 on a sparc64 machine (498.80 BogoMips).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:44    [W:0.045 / U:18.360 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site