> > 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