Received: by 10.213.65.68 with SMTP id h4csp710394imn; Fri, 23 Mar 2018 14:09:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELslPWkhEQcR7JJmRJlctXZWxxBeq8FPwgeNuYC1NawZzBfebSf5yGsVKoEuV6bpP4eMkwen X-Received: by 10.99.124.68 with SMTP id l4mr21987070pgn.225.1521839375126; Fri, 23 Mar 2018 14:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521839375; cv=none; d=google.com; s=arc-20160816; b=yEsDgEY0CTAY+FL9NKd7tV/RZ7HUA268MekmM6m2b+eh2cf7QSEa0Xa8GqycMQg0Tx 1BJ2qWCAy99W9J5QyVFOWfVNpTbKLtTFGUYqbSorld1ZjMT2ojeFV7xVDB3aEH0xHxOv r/3ZpuAmtfEau2xQHNMD+YDA0kuUE3aZCgZE8VrVkqhV9wwmwbRFeGpFnmQAfHnvuQ8p klvDRvw0U7724j50ZXcX5s4QUHVC5Jt75JD4FX2g6MmrLWARwCrdGbfCz15zW4Gxx5/5 D9kvM4CTU++hwU1oZeraPL3xHlPA9FG9ElRBKnDm5U8lGrcyacydxYqY7hC23dvqGzZa tWZQ== 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:dmarc-filter:arc-authentication-results; bh=zakOH7XSPPt8JHoR3otlvy3ZeWGIedqd/PPoH7aGOvg=; b=yP0K65GbqrK6NWDH6jGJEURslgq6NYwgsKV+uNpoOkFLLzKlW4541O/2zY4QCZndbN 2JIHRP41pUBUO8/gJEJ6JpNmFXPSA65M3GrJx6Zexc5xQU3S7EWehW9LC5tousB+HS0L 8OH62NERLn+3qOmNCggkkSqHb7zhfS1oscA5OWwKOOwNKoBtoHKXpn7lT2uPAKBV6LVe UNUG7ZjZ4McXapDEtGOCXaPC1RiR84GFdzVcOYbO4vfJeqXT3lj7BKA6CTUADavN4Mth lVlFEzrbXffJJQpi04EUPwQAwQuepUd3X3lVSMWajmGqGszcOYEgMOg72b2hXG9VvGfB kgOA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 184si5508114pfu.96.2018.03.23.14.09.19; Fri, 23 Mar 2018 14:09:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751827AbeCWVIU (ORCPT + 99 others); Fri, 23 Mar 2018 17:08:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:51030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbeCWVIS (ORCPT ); Fri, 23 Mar 2018 17:08:18 -0400 Received: from saruman (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 005312168D; Fri, 23 Mar 2018 21:08:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 005312168D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=jhogan@kernel.org Date: Fri, 23 Mar 2018 21:08:12 +0000 From: James Hogan To: Jiaxun Yang Cc: Huacai Chen , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Ralf Baechle , linux-mips@linux-mips.org, Russell King , linux-arm-kernel@lists.infradead.org, Yoshinori Sato , Rich Felker , linux-sh@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH V3] ZBOOT: fix stack protector in compressed boot phase Message-ID: <20180323210811.GD11796@saruman> References: <1521186916-13745-1-git-send-email-chenhc@lemote.com> <20180322222107.GJ13126@saruman> <1521777055.1510.9.camel@flygoat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="MAH+hnPXVZWQ5cD/" Content-Disposition: inline In-Reply-To: <1521777055.1510.9.camel@flygoat.com> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --MAH+hnPXVZWQ5cD/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 23, 2018 at 11:50:55AM +0800, Jiaxun Yang wrote: > =E5=9C=A8 2018-03-22=E5=9B=9B=E7=9A=84 22:21 +0000=EF=BC=8CJames Hogan=E5= =86=99=E9=81=93=EF=BC=9A > > Also I think it worth mentioning in the commit message the MIPS > > configuration you hit this with, presumably a Loongson one? For me > > decompress_kernel() gets a stack guard on loongson3_defconfig, but > > not > > malta_defconfig or malta_defconfig + 64-bit. I presume its sensitive > > to > > the compiler inlining stuff into decompress_kernel() or something > > such > > that it suddenly qualifies for a stack guard. >=20 > Have you tested with CONFIG_CC_STACKPROTECTOR_STRONG=3Dy ? Yes. for malta_defconfig I could only reproduce by adding an array to decompress_kernel() so that it would get the guard. Cheers James --MAH+hnPXVZWQ5cD/ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEd80NauSabkiESfLYbAtpk944dnoFAlq1bLsACgkQbAtpk944 dnqRoRAAgQ9jkBNRCrcD5HNMyD7XNnyB4QBm9KgvsYASAFF2b9bzC1qaFsv7ogMe +yUEgTbXYGvVyBKMRr/D0d0ndlTSPCwVJHwtwgBVp+PizfWmBTF6j1IvbQ1YnQfH vYfFm72xW0L0awtmXV2tbo/Y/AQopzAaWL09sFhrqSt9tWRmPDnlx0r+DfPp3wVP I5mA+BftMiVSjqOiwU5QAmj2JVFRpkfKCAftdjG6UFQE0l7aw+4EFHpYiI+8Ai6A XiFyf+GQu6Bh0GK+mdTSa0pb+UMEhf1Q4Y5BlJca6zThYTdlZKJoAwIPjHh+Pn4M hsKYqKczPJd0hlDSFG5/LC7tp5ySoRGTP/kFQoodjjOf774FkdTTY73/8JDcHc7n Jb8UMrMiwWLOPwyqjS9SD2sBcnHVAUZvGhIS5pJHzEiAIKNVVeXpjWYTTwQ2nKiN r240w2CjnH/l8C4iwUChu2xvoXV/3EYJLibTIaLbAyGu0TTeW8nGQR4m3wRIL3ig Dg9C3tgQY4NJMaTXWRyJGEf58cezFSkDvHRAmNqO6r4IkXjJ4VXlqCvUj0p+KThw 2oKS6aDj7ZU25DrTAPmb24SCUS9A61Ktwo463YznQdv2WUppc++dRUoBnJ5j89iP o4ngC6M2GKsRrL2SRphyLz4Pyi+alDWvXm+tQnKD7Uy940M8SF0= =0EHR -----END PGP SIGNATURE----- --MAH+hnPXVZWQ5cD/--