Return-Path: Received: from heliosphere.sirena.org.uk ([172.104.155.198]:42494 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387685AbeKGBpr (ORCPT ); Tue, 6 Nov 2018 20:45:47 -0500 Date: Tue, 6 Nov 2018 16:19:32 +0000 From: Mark Brown To: Russell King - ARM Linux Cc: Marc Zyngier , David Long , stable@vger.kernel.org, Florian Fainelli , Tony Lindgren , Mark Rutland , Greg KH Subject: Re: [PATCH 4.9 09/24] ARM: spectre-v2: add firmware based hardening Message-ID: <20181106161932.GB31950@sirena.org.uk> References: <20181031135713.2873-1-dave.long@linaro.org> <20181031135713.2873-10-dave.long@linaro.org> <86y3a6ebfi.wl-marc.zyngier@arm.com> <20181106105500.GZ30658@n2100.armlinux.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <20181106105500.GZ30658@n2100.armlinux.org.uk> Sender: stable-owner@vger.kernel.org List-ID: --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 06, 2018 at 10:55:00AM +0000, Russell King - ARM Linux wrote: > On Tue, Nov 06, 2018 at 10:40:33AM +0000, Marc Zyngier wrote: > > As pointed out by Ard a while ago [1], this breaks Thumb-2 kernels. > > Please keep this series on hold until this is fixed in mainline and > > you can cherry-pick the corresponding patch. > You have to wonder at the effectiveness of the autobooters if stuff > like this is not caught. There's way too many configuration > combinations and firmwares for individuals to be able to test every > code path, we need autobooters to have sufficient diversity (and to > pick up on failures better) to be able to exercise these in an > automated fashion and report decent, reliable results. Right, and it depends on what people are willing to contribute hardware wise. However in the case of Thumb it's just a config option so we should probably ensure that there's at least one config that's at least getting booted, we could put something in the kernel source but I'm thinking that the easiest thing would be to teach at least KernelCI to just add a multi_v7+THUMB2 build (and then there's userspace too!). I'll try look into that after Plumbers, I've got some other stuff queued up there anyway. > It's taken from May to November to find this, which is _way_ too long > a timeframe. > The Thumb annotations for functions are always going to be very > troublesome as there's no automated way to validate them except by > actually exercising the code. There's some work going on on adding runtime testing which will help a bit there as it'll improve coverage but it's never going to exercise everything. --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlvhvxMACgkQJNaLcl1U h9AU5Af9E3rRqN6RGAEa8gd1uAONaA9fQIdDnSX3iV/iO9j0tH0IO/pqO2HNpdJI A065/yn+avCuxQoQLi/hyyS78V7BauQvaNFp13F0CupKlipK6O0K9iK5PxCAWGPx fQGEJ6377YSVdb9qdbgoHeKN334YbaG5/TWLBgrpBjUbu+Mt87aqo0qYJmolEDSG 2wYADcAO56y0zUEEzHHai3Nmu30PsT8mvvCYVn5vH96ii6a2DrJWAf7J6SDsYuj3 rGto51+MebvGUsnf6/lPiaVjyvGsOOrwvzCAJGOVzoCZeOVdjM3GHU9QrmN9ZGHg bupuA57B6fJ4xOgApVbUSZLnK++u+Q== =HeCe -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--