From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12416 invoked from network); 11 Feb 2023 19:27:58 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 11 Feb 2023 19:27:58 -0000 Received: (qmail 16376 invoked by uid 550); 11 Feb 2023 19:27:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 16338 invoked from network); 11 Feb 2023 19:27:55 -0000 Date: Sat, 11 Feb 2023 19:27:39 +0000 From: Bastian Bittorf To: Rich Felker Cc: musl@lists.openwall.com, mailinglist Message-ID: <20230211192739.zfizfkfe5xiwikjb@email> References: <20230211125147.7ud3rx2ozflm7zsb@email> <20230211140103.GE4163@brightrain.aerifal.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230211140103.GE4163@brightrain.aerifal.cx> User-Agent: NeoMutt/20210205 X-Provags-ID: V03:K1:aULMkTRBtM8Xpwq0wU4VhAAoAgQbXpWIVd+bvJCqQdkAosXdcBQ ljPLTDh/W2S+zHNv9yPDYfXbBRmZPB2bL6ow3kFds9cKYP79/PqjKDN7FDKzwH8GtqllPpW fbkVjvE3QnYuBZdHT3yWSEp+jZ6MLcR/qEWZfteNJdt6BWY2JB5uRoxiNcRUyS6YYYS0dVw JLz9LxhI6SBDAi4OT2hEg== UI-OutboundReport: notjunk:1;M01:P0:JMf/A+aoYEo=;Sq/8pqiQiTZS2LtO0pv6yQ3PrtR DXTTI/R+Tsvr+tA+C0plbPWzVlyP1hbOc8zV99GItA+P/644+ZTJTUbL5/GTtB2bIt6aomb5T tmgDW87DsOlAlCP1iiaLZgSGrRDU8MJdZrCoi5p8jBtrQFpqB4KISjuNd2SJfpmJCRRwn/Czp mqpY+SD5mThlKwb/+RZfy01G1wFVxee2qkdxYpCEn9BBZ0Z/Hag7VRgTT+wacYwDDk7mCLyhc dGO4Ci5fcH0u8G9NQosnQJ7VzVAM2x2RPFWIw6lUQIrPrnf6Ya9n2SOoU1japaP4elcJWKH4O ijrt7xECrb8bCMbF0g6RnZegTcAKwE7+nuei5vt8NULaBFo9qBSWBkiOyq4wpP6+QyEAArWAS OmzMaw5DFMFsVwdwP+gVzX8D5N1BHGadsSTRj7rxbcicJplGTSZqvW+UJA8A0RhUOBrqNn1zq ubOYYmKRcgyLaealqbt2MawsuykYkz5+G/PoCQJau6aY0Mn8ygthFFIxtU5kSZqUd801qL9og BUYcU+KxxwKUozzQg3GuMuN1R6LHo7FwgYnwAaKK7YJikUr8+2xTdsko3p0dgtzgaucOgVz61 9ZAx+zp8A46kq6E3Nx/W6BvT06g4upAyzaRjSCsRIGDz1BSoOIfbUt2rOfHU5DvBfKkZjQrZw hgs7YY+AyNgsxvilkE43REMgpG/pemiy5KBMvQ5TyA== Subject: Re: [musl] busybox problem on powerpc PPC/32bit (hardware TP-Link-WDR-4900-v1) On Sat, Feb 11, 2023 at 09:01:03AM -0500, Rich Felker wrote: > It looks like the powerpc spe longjmp code is clobbering the value > argument. Try the attached patch. > diff --git a/src/setjmp/powerpc/longjmp.S b/src/setjmp/powerpc/longjmp.S > index 611389fe..465e4cd7 100644 > --- a/src/setjmp/powerpc/longjmp.S > +++ b/src/setjmp/powerpc/longjmp.S > @@ -42,10 +42,10 @@ longjmp: > bl 1f > .hidden __hwcap > .long __hwcap-. > -1: mflr 4 > - lwz 5, 0(4) > - lwzx 4, 4, 5 > - andis. 4, 4, 0x80 > +1: mflr 6 > + lwz 5, 0(6) > + lwzx 6, 6, 5 > + andis. 6, 6, 0x80 > beq 1f > .long 0x11c35b01 /* evldd 14,88(3) */ > .long 0x11e36301 /* ... */ Thanks a lot, this looked promising!, but sorry, it does NOT solve the issue: Using musl-cross-make and this file in patches/musl-1.2.0/ppc-spe-longjmp-fix.diff i compiled an output/bin/powerpc-linux-muslsf* crosscompiler with: make TARGET=powerpc-linux-muslsf install and used it for further steps... maybe the patch did not applied? let me sleep about it... Thanks a lot, Bastian