Messages in this thread | | | Date | Tue, 25 Aug 1998 20:30:14 +1200 | From | Chris Wedgwood <> | Subject | Re: 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
| |