All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] linux-user: Fix length calculations in host_to_target_cmsg()
@ 2017-12-15 13:52 Peter Maydell
  2017-12-15 13:52 ` [Qemu-devel] [PATCH 1/2] " Peter Maydell
  2017-12-15 13:52 ` [Qemu-devel] [PATCH 2/2] linux-user: Don't use CMSG_ALIGN(sizeof struct cmsghdr) Peter Maydell
  0 siblings, 2 replies; 6+ messages in thread
From: Peter Maydell @ 2017-12-15 13:52 UTC (permalink / raw)
  To: qemu-devel; +Cc: patches, Riku Voipio, Laurent Vivier, Bruno Haible

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-19 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15 13:52 [Qemu-devel] [PATCH 0/2] linux-user: Fix length calculations in host_to_target_cmsg() Peter Maydell
2017-12-15 13:52 ` [Qemu-devel] [PATCH 1/2] " Peter Maydell
2018-01-19 16:32   ` Laurent Vivier
2017-12-15 13:52 ` [Qemu-devel] [PATCH 2/2] linux-user: Don't use CMSG_ALIGN(sizeof struct cmsghdr) Peter Maydell
2017-12-15 14:29   ` Laurent Vivier
2018-01-19 16:33   ` Laurent Vivier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.