> > 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.
>
> But there is no normal demand for this fairly weird feature to justify
> bloating the generic kernel with that
I guess this would be because system calls are actually specified as
giving EFAULT if you pass a bad address. Seg faulting would perhaps
be useful *if* you didn't trust your code or expected it to become
spontaneously corrupt - but in that case you have far more serious
problems you should be worrying about :-).
Mike
-- .----------------------------------------------------------------------. | Mike Jagdis | Internet: mailto:mike@roan.co.uk | | Roan Technology Ltd. | | | 54A Peach Street, Wokingham | Telephone: +44 118 989 0403 | | RG40 1XG, ENGLAND | Fax: +44 118 989 1195 | `----------------------------------------------------------------------'
- 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