Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Sep 2017 04:31:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222039] Incorrect 32-bit emulation of SCM_BINTIME and SCM_TIMESTAMP
Message-ID:  <bug-222039-8-xLdFaEdpaT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-222039-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-222039-8@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=3D222039

--- Comment #1 from commit-hook@freebsd.org ---
A commit references this bug:

Author: sobomax
Date: Thu Sep  7 04:29:57 UTC 2017
New revision: 323254
URL: https://svnweb.freebsd.org/changeset/base/323254

Log:
  In the recvmsg32() system call iterate over returned structure(s)
  and convert any messages of types SCM_BINTIME, SCM_TIMESTAMP,
  SCM_REALTIME and SCM_MONOTONIC from 64-bit to its 32-bit
  representation. Otherwise we either run out of user-supplied
  buffer to copy those out resulting in the MSG_CTRUNC or simply
  return values that the userland 32-bit code is not going
  to parse correctly. This fixes at least two regression tests
  failing to function properly in 32-bit compat mode:

      tools/regression/sockets/udp_pingpong
      tools/regression/sockets/unix_cmsg

  PR:             kern/222039
  MFC after:    30 days

Changes:
  head/sys/compat/freebsd32/freebsd32.h
  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-222039-8-xLdFaEdpaT>