From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127525 invoked by alias); 23 Sep 2018 18:36:06 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 127509 invoked by uid 89); 23 Sep 2018 18:36:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*att.net, H*r:Unknown, reordering, linker X-HELO: m69-169.mailgun.net Received: from m69-169.mailgun.net (HELO m69-169.mailgun.net) (166.78.69.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 23 Sep 2018 18:36:03 +0000 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=github.com; q=dns/txt; s=mailo; t=1537727762; h=Content-Transfer-Encoding: Content-Type: Mime-Version: Subject: Message-ID: To: Reply-To: From: Date: Sender; bh=5JZw9fozoZ9RKYmByNp/bqEAevzNw2tMtGJ/crOkBVI=; b=SIvKMmQA0DbK4342lbPlTbNsa8taTpcDxbSDy+3Byi+bpJ1EYrcKPWuA4sUl8/Bjcp5E9zDo B9MtB8Ov0JlyhVz+1m4UhzqmAbHSVZ1DvG3+HuG3a0bOwZGX2KRRBk8FSH5NIbS+piA6spEj H0amOUez+R3DHpYN7cfqUl3Kdxc= X-Mailgun-Sending-Ip: 166.78.69.169 X-Mailgun-Sid: WyIwZTgzNyIsICJjcm9zc2djY0Bzb3VyY2V3YXJlLm9yZyIsICI0MGYiXQ== Sender: stilor=att.net@github.com Received: from github.com (Unknown [192.30.252.34]) by mxa.mailgun.org with ESMTP id 5ba7dd11.7f705c156630-smtp-out-n01; Sun, 23 Sep 2018 18:36:01 -0000 (UTC) Date: Sun, 23 Sep 2018 18:36:00 -0000 From: Alexey Neyman Reply-To: Alexey Neyman To: crossgcc@sourceware.org Message-ID: <5ba7dd1162519_56652af2809dcec87891@hookshot-fe-7191cb1.cp1-iad.github.net.mail> Subject: [crosstool-ng/crosstool-ng] c41b96: package/gcc: fix xtensa PR target/65416 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="--==_mimepart_5ba7dd1161ef7_56652af2809dcec877f1"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00008.txt.bz2 ----==_mimepart_5ba7dd1161ef7_56652af2809dcec877f1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2609 Branch: refs/heads/master Home: https://github.com/crosstool-ng/crosstool-ng Commit: c41b9641b1eed68819cc6f174eb7319a6fca5ffc https://github.com/crosstool-ng/crosstool-ng/commit/c41b9641b1eed68819cc6f174eb7319a6fca5ffc Author: Max Filippov Date: 2018-06-24 (Sun, 24 Jun 2018) Changed paths: A packages/gcc/5.5.0/0034-xtensa-fix-PR-target-65416.patch A packages/gcc/6.4.0/0034-xtensa-fix-PR-target-65416.patch A packages/gcc/7.3.0/0022-xtensa-fix-PR-target-65416.patch A packages/gcc/8.1.0/0021-xtensa-fix-PR-target-65416.patch Log Message: ----------- package/gcc: fix xtensa PR target/65416 gcc-8.1 for xtensa miscompiles uClibc dynamic linker due to gcc PR target/65416. The build completes successfully, but the binary is non-functional because the following fragment in the _dl_get_ready_to_run in ld-uClibc.so overwrites register spill area on stack causing register corruption in the previous call frame and a subsequent crash: 419f: f0c1b2 addi a11, a1, -16 41a2: 1ba9 s32i.n a10, a11, 4 41a4: 0bc9 s32i.n a12, a11, 0 41a6: 5127f2 l32i a15, a7, 0x144 41a9: 1765b2 s32i a11, a5, 92 41ac: 4e2782 l32i a8, a7, 0x138 41af: 146af2 s32i a15, a10, 80 41b2: 001b10 movsp a1, a11 The crash terminates the init process and causes kernel panic. The fix prevents reordering of movsp opcode and any access to the stack frame memory and is applicable to all existing gcc versions. Signed-off-by: Max Filippov Commit: 8026e6a0139b3f3a4c416c131885d18b8908bf2c https://github.com/crosstool-ng/crosstool-ng/commit/8026e6a0139b3f3a4c416c131885d18b8908bf2c Author: Alexey Neyman Date: 2018-09-23 (Sun, 23 Sep 2018) Changed paths: A packages/gcc/5.5.0/0034-xtensa-fix-PR-target-65416.patch A packages/gcc/6.4.0/0034-xtensa-fix-PR-target-65416.patch A packages/gcc/7.3.0/0022-xtensa-fix-PR-target-65416.patch A packages/gcc/8.1.0/0021-xtensa-fix-PR-target-65416.patch Log Message: ----------- Merge pull request #994 from jcmvbkbc/xtensa-fix-pr65416 package/gcc: fix xtensa PR target/65416 Compare: https://github.com/crosstool-ng/crosstool-ng/compare/af079341393f...8026e6a0139b **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019. ----==_mimepart_5ba7dd1161ef7_56652af2809dcec877f1--