[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 18:22:37 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230153

--- Comment #1 from commit-hook at 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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list