From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1250 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: Re: openssh and sendmsg() problem Date: Sun, 1 Jul 2012 18:23:56 +0800 Message-ID: <20120701182356.03cbeffe@sibserver.ru> References: <20120626190146.1c086ed2@sibserver.ru> <20120626120017.GZ17860@port70.net> <20120626160106.GJ544@brightrain.aerifal.cx> <20120627012441.2af9b154@sibserver.ru> <20120626173205.GK544@brightrain.aerifal.cx> <20120627021640.42af7e4f@sibserver.ru> <20120626190823.GL544@brightrain.aerifal.cx> <20120627033934.0a201cfb@sibserver.ru> <20120626204016.GA17860@port70.net> <20120626211319.GM544@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341138349 1125 80.91.229.3 (1 Jul 2012 10:25:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2012 10:25:49 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1251-gllmg-musl=m.gmane.org@lists.openwall.com Sun Jul 01 12:25:49 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1SlHLg-000243-QM for gllmg-musl@plane.gmane.org; Sun, 01 Jul 2012 12:25:48 +0200 Original-Received: (qmail 11398 invoked by uid 550); 1 Jul 2012 10:25:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11371 invoked from network); 1 Jul 2012 10:25:43 -0000 In-Reply-To: <20120626211319.GM544@brightrain.aerifal.cx> X-Mailer: claws-mail Xref: news.gmane.org gmane.linux.lib.musl.general:1250 Archived-At: On Tue, 26 Jun 2012 17:13:19 -0400 Rich Felker wrote: > On Tue, Jun 26, 2012 at 10:40:16PM +0200, Szabolcs Nagy wrote: > > > And kernel too. > > > > > > Both they define incompatible msghdr and cmsghdr structs. > > > The problem sits in cmsghdr struct, changing it's first member > > > type to 'size_t' solves openssh issue. > > > > so the issue is that the kernel and glibc uses size_t for socklen_t > > in struct msghdr and struct cmsghdr as well > > > > musl fixes msghdr but not cmsghdr > > (by using int + padding) > > > > where is it specified in posix that socklen_t should be unsigned > > int? it seems using size_t would make things easier.. > > Yes it would be easier, but unfortunately it's part of the LSB types > ABI and presumably the Linux kernel ABI... > > Rich As a temporary workaround, can I safely change the type until final fix?