From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10961 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Need to zero pads in msghdr Date: Wed, 25 Jan 2017 12:00:48 -0500 Message-ID: <20170125170048.GA17620@brightrain.aerifal.cx> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1485363673 29814 195.159.176.226 (25 Jan 2017 17:01:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jan 2017 17:01:13 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10976-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jan 25 18:01:09 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1cWQwM-0006kL-5T for gllmg-musl@m.gmane.org; Wed, 25 Jan 2017 18:00:58 +0100 Original-Received: (qmail 23673 invoked by uid 550); 25 Jan 2017 17:01:01 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 23642 invoked from network); 25 Jan 2017 17:01:01 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10961 Archived-At: On Wed, Jan 25, 2017 at 08:42:52AM -0800, Andrei Vagin wrote: > Hi, > > In this patch > http://git.musl-libc.org/cgit/musl/commit/arch/x86_64/bits/socket.h?id=7168790763cdeb794df52be6e3b39fbb021c5a64 > you suppose that the kernel ignores the upper 32 bits of msg_iovlen, > but it doesn't, so pads in msghdr structures have to be zeroed before > calling sendmsg and recvmsg syscalls. > > https://github.com/xemul/criu/issues/276 sendmsg and recvmsg perform this zeroing. If it's not working there must be some more subtle cause. Rich