ioctl_userfaultfd.2: Document replacement of ENOSPC with ESRCH

Since Linux 4.13 we return ESRCH instead of ENOSPC when the
faulting process exits during UFFDIO_{COPY/ZEROPAGE} operation.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Mike Rapoport 2017-08-14 17:51:19 +03:00 committed by Michael Kerrisk
parent fa744079f6
commit e3ec129351
1 changed files with 11 additions and 1 deletions

View File

@ -492,7 +492,12 @@ its virtual memory layout simultaneously with an outstanding
.I UFFDIO_COPY
operation.
.TP
.BR ENOSPC " (since Linux 4.11)"
.BR ENOSPC " (since Linux 4.11 till Linux 4.13)"
The faulting process has exited at the time of a
.I UFFDIO_COPY
operation.
.TP
.BR ESRCH " (since Linux 4.13)"
The faulting process has exited at the time of a
.I UFFDIO_COPY
operation.
@ -578,6 +583,11 @@ was zero; or the range specified was invalid.
An invalid bit was specified in the
.IR mode
field.
.TP
.BR ESRCH " (since Linux 4.13)"
The faulting process has exited at the time of a
.I UFFDIO_ZEROPAGE
operation.
.\"
.SS UFFDIO_WAKE
(Since Linux 4.3.)