lkml.org 
[lkml]   [1998]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: copy_from_user() fixu
On Tue, Aug 25, 1998 at 01:23:53AM -0700, H. Peter Anvin wrote:

> > You haven't responded to this part. Wrapping *every* call to
> > read(2) with a signal/setjmp save/restore is a performance
> > killer. Can you actually be serious that an application/library
> > that tries to trap bad addresses has to put up with this?
>
> Since it's the only way to do it ANYWAY, yes.

Actually, we could be clever about this and use /proc/self/maps to
determine which pointers are likely to be bogus.

Rereading this ofcourse is necessary when we do certain syscalls, but
is would probably work OK.

Win32 has a API similar to this I think.....



-cw

-
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.100 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site