Received: by 10.213.65.68 with SMTP id h4csp442358imn; Tue, 27 Mar 2018 02:12:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELv7cb2ilU2Vjs+bXvZoQJoAign1Pned7rk4gcPG4CoocxgzLBKfOKbd9/NzZrqfU35XazS1 X-Received: by 10.101.65.10 with SMTP id w10mr13192739pgp.39.1522141975046; Tue, 27 Mar 2018 02:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522141974; cv=none; d=google.com; s=arc-20160816; b=WUNlV4lSRJuAK/Ph+c9a8kilLsQSCRS/X6kRIsMfFAGaq4GSfPONZqB8JLtWH80bmt py/F+TtYjOGLFalAAo+Uf+tKzZqAS/WEfAer2zOeXoXxuLOLdp40IeDp6LQ7D4Krdxrg PBkPazC3LOUX3x4wUWGWbs3QSTQPki7gtmL7ZRHpgtbZ1yFPUDD45ds4uHcb5dggJzTa O+GD3YnNXl61Zq6ZK8k824d1N/pCGwgc+at3XAc2Ry4fdp+UIoD0K6bhP/cmfTYE0IGG zeU2QZsrNtM2nhFFMGwS1H+49nfNz410jBA2vAknSKSj1G9LuCGE3dfV4t+CN8RA79fB NbDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nwfJmf7ruK4o96VS+5N2YoCjsv9kAhB58xEjW3feCVw=; b=UGkkzUpXUI7WlgYB6NkZ0EDdZrpQG+ItPPpe3XoGUQgtocA/b2mykhLMXfoe0LROUq LrFgH9VTPLjtBCszsriywm5X75iPB+KhHDa142r7P4o22sQ8x/ri6//mTcDVx6vMLiLk 6GABcI6SJGLTsEvkfqRnsmadfuyj9zaSPD/dPJWOSyntBPxFfvJLyiv7kqlUbG4gAdfP k8UJspfr6QOLnCZevwHcSgjYqL8wj48TzPzJawYm8Qq58qfOy878zwIrPybtPkwldbNO kZDKJzIBqbUeGr4b2D5n4jKcnZIdJ3ZcVijBfrfy2MT8u2QDmWmDG5Wb+zdvyN/EOJI+ mqTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=WNsH9XW/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m18si655246pfi.296.2018.03.27.02.12.40; Tue, 27 Mar 2018 02:12:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=WNsH9XW/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752257AbeC0JLZ (ORCPT + 99 others); Tue, 27 Mar 2018 05:11:25 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:55596 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751398AbeC0JLX (ORCPT ); Tue, 27 Mar 2018 05:11:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=nwfJmf7ruK4o96VS+5N2YoCjsv9kAhB58xEjW3feCVw=; b=WNsH9XW/CMx670yGus0+WfPn/LQrizyEgdlHUQ5q/V+DjQU7iHEbjSccIe0TKFa/UX2VN0X3mUnFXGzU3nB9GjtIUqOQ+Vh3ym+mwpiK8oOYiowxa36xlQfVE5RBOJAPLr5AsPr7AqN+iq40lLBxj/gHLSVCDY+FMY2RvHwmJ1k=; Received: from n2100.armlinux.org.uk ([2002:4e20:1eda:1:214:fdff:fe10:4f86]:49556) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1f0kdN-000358-Ea; Tue, 27 Mar 2018 10:11:13 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1f0kdJ-0006AA-CD; Tue, 27 Mar 2018 10:11:09 +0100 Date: Tue, 27 Mar 2018 10:11:08 +0100 From: Russell King - ARM Linux To: Tony Lindgren Cc: Stephen Rothwell , Rich Felker , Yoshinori Sato , linux-kernel@vger.kernel.org, Ralf Baechle , linux-omap@vger.kernel.org, Huacai Chen , Andrew Morton , James Hogan , linux-arm-kernel@lists.infradead.org Subject: Re: Regression with arm in next with stack protector Message-ID: <20180327091107.GB10990@n2100.armlinux.org.uk> References: <20180323181452.GJ5799@atomide.com> <20180327090409.GA10990@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180327090409.GA10990@n2100.armlinux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 10:04:10AM +0100, Russell King - ARM Linux wrote: > On Fri, Mar 23, 2018 at 11:14:53AM -0700, Tony Lindgren wrote: > > Hi, > > > > Looks like commit 5638790dadae ("zboot: fix stack protector in > > compressed boot phase") breaks booting on arm. > > > > This is all I get from the bootloader on omap3: > > > > Starting kernel ... > > > > data abort > > pc : [<810002d0>] lr : [<100110a8>] > > reloc pc : [<9d6002d0>] lr : [<2c6110a8>] > > sp : 81467c18 ip : 81466bf0 fp : 81466bf0 > > r10: 80fc2c40 r9 : 81000258 r8 : 86fec000 > > r7 : ffffffff r6 : 81466bf8 r5 : 00000000 r4 : 80008000 > > r3 : 81466c14 r2 : 81466c18 r1 : 000a0dff r0 : 00466bf8 > > Flags: nZCv IRQs off FIQs off Mode SVC_32 > > Resetting CPU ... > > > > resetting ... > > The reason for this is the following code that was introduced by the > referenced patch: > > + ldr r0, =__stack_chk_guard > + ldr r1, =0x000a0dff > + str r1, [r0] > > This uses the absolute address of __stack_chk_guard in the decompressor, > which is a self-relocatable image. As with all constructs like the > above, this absolute address doesn't get fixed up, and so it ends up > pointing at invalid memory (in this case 0x466bf8) vs RAM at 0x80000000, > and the decompressor looks to be around 0x81000000. > > Such constructs can not be used in the decompressor for exactly this > reason - they need to use PC-relative addressing instead just like > everything else does in head.S. I guess someone's not going to see my message to correct their patch: chenhc@lemote.com SMTP error from remote mail server after end of data: host mxbiz1.qq.com [184.105.206.88]: 550 Mail content denied. http://service.exmail.qq.com/cgi-bin/help?subtype=1&&id=20022&&no=1000726 -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up