Return-Path: Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:59121 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965459AbdDSP5l (ORCPT ); Wed, 19 Apr 2017 11:57:41 -0400 Message-ID: <1492617454.31767.6.camel@decadent.org.uk> Subject: Re: [stable] DMA-on-stack fixes From: Ben Hutchings To: Greg Kroah-Hartman Cc: stable Date: Wed, 19 Apr 2017 16:57:34 +0100 In-Reply-To: <20170419144206.GA2793@kroah.com> References: <1492476581.2409.119.camel@decadent.org.uk> <20170419121627.GA7380@kroah.com> <1492611302.31767.1.camel@decadent.org.uk> <20170419144206.GA2793@kroah.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-wZ5VtUnslfsDBN2LinnH" Mime-Version: 1.0 Sender: stable-owner@vger.kernel.org List-ID: --=-wZ5VtUnslfsDBN2LinnH Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2017-04-19 at 16:42 +0200, Greg Kroah-Hartman wrote: > On Wed, Apr 19, 2017 at 03:15:02PM +0100, Ben Hutchings wrote: > > On Wed, 2017-04-19 at 14:16 +0200, Greg Kroah-Hartman wrote: > > > On Tue, Apr 18, 2017 at 01:49:41AM +0100, Ben Hutchings wrote: > > > > Brad Spengler pointed out these fixes elsewhere: > > > >=20 > > > > 43fab9793c1f [media] dvb-usb: don't use stack for firmware load > > > > 67b0503db9c2 [media] dvb-usb-firmware: don't do DMA on stack > > > > 3f190e3aec21 [media] cxusb: Use a dma capable buffer also for readi= ng > > > > c4baad50297d virtio-console: avoid DMA from stack > > > >=20 > > > > For 4.9, the first one needs some adjustment - use the attached pat= ch. > > > > The rest apply cleanly. > > > >=20 > > > > For 4.10, you can skip the first two as they've already been applie= d. > > >=20 > > > Thanks for this shorter list.=C2=A0=C2=A0I'll go through the rest of = the list of > > > patches that Brad pointed out on oss-security. > > >=20 > > > Oh, and you did notice he said that > > > a4866aa81251 ("mm: Tighten x86 /dev/mem with zeroing reads") > > > should be applied to stable kernels, right?=C2=A0=C2=A0I've queued it= up for the > > > ones I manage. > >=20 > > Yes, though it's not a meaningful security fix by itself. >=20 > What do you mean "by itself"?=C2=A0=C2=A0Is there something else that nee= ds to be > added here, or just that the patch doesn't really change all that much? - It doesn't prevent access to low RAM through mmap() of /dev/mem, only read() and write() - There are many other ways for privileged users to write to RAM unless the lockdown patch set is applied Ben. --=20 Ben Hutchings Man invented language to satisfy his deep need to complain. - Lily Tomlin --=-wZ5VtUnslfsDBN2LinnH Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAlj3iO4ACgkQ57/I7JWG EQmD6xAAtIRuGDPtRixng3lwl3vL0Wz1dJtbPTztwm08tU8y6k+Kg1u5Pkp0Jlfb mnLSuK5Cg0KsIRZgPCjEaLf2G4GpG8YOVb+H4OvLn/Q3MEOYmHZOkZzrZxhVEti/ ZvtFJsSTDDcAkxHBakrEi+jon/Jzs9W3ohun0EPJRWPwlPljjh8ByUBak+8kaEQz j1jhHTjp7MLfglr/XUf8UllKDa2HAo/x/P3Lcb95th13TzkMz7kzP/6zYf42oSqo 9JMNdvJoqnIEdWw4j+Cw1T7U0nDZLe49x3fku8p/1OBA1ieEwDFjJH26F8bzb78h jRDaxaiNch0fXSv9nC5U/Zd5DBauolKZGmjohrfJ5FEajATZklRi7GlBdEozTT3q B9xSVT1owKsvtX7sZB0Zx7f2WTaU62TGEfWtbOhylXK/GLs8QVuACCkMpYaR8t6j k2ZJehbUIujzVA2By2Bedsqw48Dm+U2emBf6iLGnqRrjDHQ2gWwOAio9G/zaorWX XpS/k7bONO5IeKnnlceGjDRulnnY2yH6Aq0n73+pCL7mAJAeZ/RbNlVFLWZFTRrC P3TuHA6OS1CS9Quej9X4uHUVmXHnpNGckxN0TURqhElAwlsbydXW9MhdQbYUSqt9 h8YoxUuwA9GZzPO4MIx5O5XNEO1TxzbLe0aHDRIim5blztsXw50= =wSSt -----END PGP SIGNATURE----- --=-wZ5VtUnslfsDBN2LinnH--