From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 08EF9ECDFB3 for ; Mon, 16 Jul 2018 08:52:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B5040208FC for ; Mon, 16 Jul 2018 08:52:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B5040208FC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730571AbeGPJS7 (ORCPT ); Mon, 16 Jul 2018 05:18:59 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34538 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728061AbeGPJS7 (ORCPT ); Mon, 16 Jul 2018 05:18:59 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id C6E9E804EB; Mon, 16 Jul 2018 10:52:35 +0200 (CEST) Date: Mon, 16 Jul 2018 10:52:35 +0200 From: Pavel Machek To: Kees Cook Cc: "Rafael J. Wysocki" , Herbert Xu , Arnd Bergmann , Eric Biggers , "Gustavo A. R. Silva" , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/power/64: Remove VLA usage Message-ID: <20180716085235.GB3047@amd> References: <20180716035657.GA32180@beast> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eAbsdosE1cNLO4uF" Content-Disposition: inline In-Reply-To: <20180716035657.GA32180@beast> 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 --eAbsdosE1cNLO4uF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun 2018-07-15 20:56:57, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > removes the discouraged use of AHASH_REQUEST_ON_STACK by switching to > shash directly and allocating the descriptor in heap memory (which should > be fine: the tfm has already been allocated there too). >=20 > [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=3DqPXyd= AacU1RqZWA@mail.gmail.com >=20 > Signed-off-by: Kees Cook Acked-by: Pavel Machek , provided it was tested. Pavel =09 --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --eAbsdosE1cNLO4uF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltMXNMACgkQMOfwapXb+vI+9wCfenj1oi0uIYHPJ4LnF7dw928B 9cwAnRgi+dMbNELIRRvVjqYJsnopTfR0 =D9UN -----END PGP SIGNATURE----- --eAbsdosE1cNLO4uF--