Date: Sun, 29 Jul 2018 18:22:35 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 230153] getrusage(2): getrusage fails to return EFAULT in 32-bit emulation Message-ID: <bug-230153-227-fhluki0iO7@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-230153-227@https.bugs.freebsd.org/bugzilla/> References: <bug-230153-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D230153 --- Comment #1 from commit-hook@freebsd.org --- A commit references this bug: Author: asomers Date: Sun Jul 29 18:22:26 UTC 2018 New revision: 336871 URL: https://svnweb.freebsd.org/changeset/base/336871 Log: 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 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16500 Changes: head/sys/compat/freebsd32/freebsd32_misc.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230153-227-fhluki0iO7>