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: b...@freebsd.org
          Reporter: asom...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to