From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9816 Path: news.gmane.org!not-for-mail From: Sebastian Gottschall Newsgroups: gmane.linux.lib.musl.general Subject: Re: recvmsg/sendmsg broken on mips64 Date: Fri, 1 Apr 2016 14:42:36 +0200 Message-ID: <91bfe81c-73c4-9b25-6d9b-a97d4ee54e89@dd-wrt.com> References: <20160331192518.GW21636@brightrain.aerifal.cx> <20160331201012.GR9862@port70.net> <20160331203004.GX21636@brightrain.aerifal.cx> <76c20e67-4d62-a929-9f1d-a3fc63758426@dd-wrt.com> <20160401094919.GT9862@port70.net> <02844173-9671-d0e9-a291-764b27899f44@dd-wrt.com> <20160401113146.GU9862@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1459515828 31574 80.91.229.3 (1 Apr 2016 13:03:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 13:03:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9829-gllmg-musl=m.gmane.org@lists.openwall.com Fri Apr 01 15:03:48 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1alyjp-0006p1-JW for gllmg-musl@m.gmane.org; Fri, 01 Apr 2016 15:03:45 +0200 Original-Received: (qmail 1628 invoked by uid 550); 1 Apr 2016 13:03:36 -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 1603 invoked from network); 1 Apr 2016 13:03:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dd-wrt.com; s=mikd; h=Subject:Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To; bh=FSMm74zqRiCq01lGJgOnq8mOWzKaW+cgU6QZvxOGviI=; b=XV4CBbCphYEDhmtgeyfT4nm6vrM082wrko2wta9CBrOmDqMXvEpQywO9DOYtBKCs8VGv1BZ6FmjPW1PnbB4IoVfy9ytVKq/VPPaP/ejufauJrmUB1PDac/psD8IF6ccqdXkwnEmxLRfIPw8DwjV4W9vShSnOhMd1TxrurDSzUg0=; User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 In-Reply-To: X-SA-Exim-Connect-IP: 93.195.6.161 X-SA-Exim-Mail-From: s.gottschall@dd-wrt.com X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on webmail.newmedia-net.de X-Spam-Level: X-Spam-Status: No, score=-2.5 required=4.0 tests=ALL_TRUSTED,BAYES_00, DNS_FROM_AHBL_RHSBL,RATWARE_GECKO_BUILD autolearn=no version=3.1.9, No X-SA-Exim-Version: 4.2.1 (built Thu, 26 May 2011 15:22:33 +0200) X-SA-Exim-Scanned: Yes (on webmail.newmedia-net.de) X-NMN-MailScanner-Information: Please contact the ISP for more information X-NMN-MailScanner-ID: 1alyOV-00029m-Bw X-NMN-MailScanner: Found to be clean X-NMN-MailScanner-From: s.gottschall@dd-wrt.com X-Received: from [93.195.6.161] (helo=[172.29.0.169]) by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1alyOV-00029m-Bw for musl@lists.openwall.com; Fri, 01 Apr 2016 14:41:43 +0200 Xref: news.gmane.org gmane.linux.lib.musl.general:9816 Archived-At: Am 01.04.2016 um 14:21 schrieb Masanori Ogino: > Hello, > > 2016-04-01 20:37 GMT+09:00 Sebastian Gottschall : >> okay. but musl is a library used with linux only. so if linux uses size_t, >> then musl must use the same abi. >> otherwise musl wont work with unimportant programs like "ip" for 64 bit >> targets (havent checked x64 yet) > I have a x86_64 box with musl and iproute2 seems to work with current > (padded) definition. yes it does. i checked it 30 minutes ago > > You said the code is broken. How/when is it broken? > Could you give me a test code for the problem? Then, I can test that > on my x86_64 box. it only affects mips64 so far. not x64. i checked both using dd-wrt > (well, of course it may fail if the test code declares the structs > independently, but then the test *is* broken whether the definition is > standard-conformant or not.) with mips64 (octeon) the whole netlink code in iproute2 doesnt work. it simly fails since recvmsg returns no data. sendmsg is likelly broken in the same way since it uses the same struct my dirty musl hack again fixed it by using the same datatypes used in the kernel. so this might be mips specific. currently musl does convert the non conform kernel structures to posix specified structures, but this doesnt seem to work for mips64 >