[Bug 230153] getrusage(2): getrusage fails to return EFAULT in 32-bit emulation
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 29 17:01:08 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230153
Bug ID: 230153
Summary: getrusage(2): getrusage fails to return EFAULT in
32-bit emulation
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: asomers at FreeBSD.org
The getrusage man page says that it should return EFAULT if the rusage argument
is not in the process's address space. This is indeed what happens on amd64
with 64-bit binaries. However, in 32-bit emulation, getrusage returns 0
instead. The bug appears to have been introduced in r100384, which first added
32-bit emulation.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list