]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r336871, r336874
authorasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Oct 2018 16:23:00 +0000 (16:23 +0000)
committerasomers <asomers@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 1 Oct 2018 16:23:00 +0000 (16:23 +0000)
commit08f82a9d8855f1dd8a9e676578057aebf9e8cddf
treef4d47d71bb5ac2a8245878b14ec794cf5b248abd
parent2ee430e57368a2f2e3998cfba8e7f8b61a83c445
MFC r336871, r336874

r336871:
getrusage(2): fix return value under 32-bit emulation

According to the man page, getrusage(2) should return EFAULT if the rusage
argument lies outside of the process's address space. But due to an
oversight in r100384, that's never been the case during 32-bit emulation.
Fix it.

PR: 230153
Reported by: tests(7)
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D16500

r336874:
freebsd32_getrusage(2): skip freebsd32_rusage_out on error

PR: 230153
Reported by: kib
X-MFC-With: 336871
Differential Revision: https://reviews.freebsd.org/D16500

git-svn-id: svn://svn.freebsd.org/base/stable/10@339065 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/compat/freebsd32/freebsd32_misc.c