Date: Sun, 29 Jul 2018 17:01:05 +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@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org Reporter: asomers@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-230153-227>
