lkml.org 
[lkml]   [1998]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: copy_from_user() fix
Date
> 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/ld.so.preload...

Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz
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 majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.846 / U:0.104 seconds]
©2003-2011 Jasper Spaans. Advertise on this site