]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
authorjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Oct 2012 14:20:53 +0000 (14:20 +0000)
committerjilles <jilles@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 5 Oct 2012 14:20:53 +0000 (14:20 +0000)
commit93c64239a4f29fcff2fe2d3b6c8a988c7dee92c8
tree3f808f9438f4cb3a2a3124ffb603670313e6f03a
parenta1da0a0913c1812e6825757692cd3b26f5c3834b
MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error
condition.

Passing an invalid pointer results in undefined behaviour.

The wrappers in libthr access some of the data pointed to by the arguments
in userland, so that an invalid pointer will cause a signal and not an
[EFAULT] error return.

Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is
not a proper error in the sense that the call still commits (changing the
signal disposition or accepting the signal).

git-svn-id: svn://svn.freebsd.org/base/stable/9@241224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libc/sys/sigaction.2
lib/libc/sys/sigwait.2
lib/libc/sys/sigwaitinfo.2