DragonFly kernel List (threaded) for 2007-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: link(2) and EFAULT
>Simon Schubert <Simon> writes:
>> Like any other error: abort or do something else sensible.
>
>I was wondering what, if anything, would be sensible when
>receiving this error message. This seems like something a
>userland application should rarely get.
On the contrary, if you make a system call and pass a null pointer in
you are *very likely* to get exactly this errno value.
>Michael Galassi <nerd@xyz.com> writes:
>> copyin() is called by the system call code and returns
>> efault after validating the address, before actually
>> touching it.
>
>Ah ha. So there's something getting corrupted somewhere.
>Useful to know. Thanks.
I've most often seen this with applications making system calls and
passing uninitialized pointers. ymmv
-michael
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]