tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Where is that trap coming from?
martin%duskware.de@localhost (Martin Husemann) writes:
>You need to check the details of the system call, e.g. if I do a write(2),
>and pass a buffer of, say, 16k, but use nbytes = 64k it will most likely
>cause a SIGSEGV when the kernel tries to access a page beyound the 16k
>allocated userland buffer.
The kernel would just fail the system call with an errno of EFAULT.
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
Home |
Main Index |
Thread Index |
Old Index