From owner-svn-src-stable@FreeBSD.ORG Fri Oct 5 14:20:54 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 49353106566C; Fri, 5 Oct 2012 14:20:54 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 18A8A8FC1B; Fri, 5 Oct 2012 14:20:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q95EKr26084684; Fri, 5 Oct 2012 14:20:53 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q95EKrEl084680; Fri, 5 Oct 2012 14:20:53 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201210051420.q95EKrEl084680@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 5 Oct 2012 14:20:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r241224 - stable/9/lib/libc/sys X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 14:20:54 -0000 Author: jilles Date: Fri Oct 5 14:20:53 2012 New Revision: 241224 URL: http://svn.freebsd.org/changeset/base/241224 Log: 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). Modified: stable/9/lib/libc/sys/sigaction.2 stable/9/lib/libc/sys/sigwait.2 stable/9/lib/libc/sys/sigwaitinfo.2 Directory Properties: stable/9/lib/libc/ (props changed) stable/9/lib/libc/sys/ (props changed) Modified: stable/9/lib/libc/sys/sigaction.2 ============================================================================== --- stable/9/lib/libc/sys/sigaction.2 Fri Oct 5 10:44:50 2012 (r241223) +++ stable/9/lib/libc/sys/sigaction.2 Fri Oct 5 14:20:53 2012 (r241224) @@ -28,7 +28,7 @@ .\" From: @(#)sigaction.2 8.2 (Berkeley) 4/3/94 .\" $FreeBSD$ .\" -.Dd April 18, 2010 +.Dd September 27, 2012 .Dt SIGACTION 2 .Os .Sh NAME @@ -586,13 +586,6 @@ system call will fail and no new signal handler will be installed if one of the following occurs: .Bl -tag -width Er -.It Bq Er EFAULT -Either -.Fa act -or -.Fa oact -points to memory that is not a valid part of the process -address space. .It Bq Er EINVAL The .Fa sig Modified: stable/9/lib/libc/sys/sigwait.2 ============================================================================== --- stable/9/lib/libc/sys/sigwait.2 Fri Oct 5 10:44:50 2012 (r241223) +++ stable/9/lib/libc/sys/sigwait.2 Fri Oct 5 14:20:53 2012 (r241224) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 24, 2011 +.Dd September 27, 2012 .Dt SIGWAIT 2 .Os .Sh NAME @@ -107,9 +107,6 @@ The .Fa set argument specifies one or more invalid signal numbers. -.It Bq Er EFAULT -Any arguments point outside the allocated address space or there is a -memory protection fault. .El .Sh SEE ALSO .Xr sigaction 2 , Modified: stable/9/lib/libc/sys/sigwaitinfo.2 ============================================================================== --- stable/9/lib/libc/sys/sigwaitinfo.2 Fri Oct 5 10:44:50 2012 (r241223) +++ stable/9/lib/libc/sys/sigwaitinfo.2 Fri Oct 5 14:20:53 2012 (r241224) @@ -27,7 +27,7 @@ .\" .\" $FreeBSD$ .\" -.Dd August 24, 2011 +.Dd September 27, 2012 .Dt SIGTIMEDWAIT 2 .Os .Sh NAME @@ -172,9 +172,6 @@ system calls fail if: .Bl -tag -width Er .It Bq Er EINTR The wait was interrupted by an unblocked, caught signal. -.It Bq Er EFAULT -Any arguments point outside the allocated address space or there is a -memory protection fault. .Pp .El The