This patchset fixes this bug:
https://bugs.launchpad.net/qemu/+bug/1701808
where we were getting our message length calculations in
host_to_target_cmsg() wrong and could thus overwrite the end of the
guest buffer when we tried to fill it with the results of a
recvmsg().
Patch 1 is the bugfix; patch 2 is a minor cleanup which removes some
unnecessary and confusing alignment arithmetic and brings us into
alignment with what the kernel currently does.
thanks
-- PMM
Peter Maydell (2):
linux-user: Fix length calculations in host_to_target_cmsg()
linux-user: Don't use CMSG_ALIGN(sizeof struct cmsghdr)
linux-user/syscall_defs.h | 6 +++---
linux-user/syscall.c | 33 ++++++++++++++++++++++++---------
2 files changed, 27 insertions(+), 12 deletions(-)
--
2.7.4