Re: [Qemu-devel] [PATCH] Zero out the host's `msg_control` buffer

2018-07-11 Thread Philippe Mathieu-Daudé
Hi Jonas, You forgot to notify the maintainers, see https://wiki.qemu.org/Contribute/SubmitAPatch#CC_the_relevant_maintainer : ./scripts/get_maintainer.pl -f linux-user/syscall.c Riku Voipio (maintainer:Linux user) Laurent Vivier (reviewer:Linux user) qemu-devel@nongnu.org (open list:All

[Qemu-devel] [PATCH] Zero out the host's `msg_control` buffer

2018-07-10 Thread Jonas Schievink
(Apparently I messed up my git config for the last email so it didn't send the correct name - please bear with me, this is my first time submitting a patch to a mailing list. I've also added a link to the upstream bug in the commit description.) If this is not done, qemu would drop any control

[Qemu-devel] [PATCH] Zero out the host's `msg_control` buffer

2018-07-10 Thread jonasschievink
From: Jonas Schievink If this is not done, qemu would drop any control message after the first one. This is because glibc's `CMSG_NXTHDR` macro accesses the uninitialized cmsghdr's length field in order to find out if the message fits into the `msg_control` buffer. This is fine for completed