Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1076080imm; Wed, 25 Jul 2018 11:03:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcmClHwGCTv+d5pAwFyEnbZR52+6Vb7xPwIfYL3N/nx2y0EySIY4ArAuSaxutQMBWQR5s6f X-Received: by 2002:a62:8389:: with SMTP id h131-v6mr23084024pfe.105.1532541819122; Wed, 25 Jul 2018 11:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532541819; cv=none; d=google.com; s=arc-20160816; b=vLZKl4Nu6SI74uwhc1p2BKEAUiepR+suhzZENraOhiSJlwVZXdtAdwqxnLUezgfEFn GZ2eIRk2ohDmhoGZ1FZ+UR5Awp9PdUB9T7QABAvz5Ls714L25TaY1jLnjWKgc4eXm8/2 NDvi9scDMs2vOWFDIgx/DV28XrVLYqFcmZdhCOhUo/E+odIomSrfc74yHtSgIQz0+dww BAGOBrsLZ/705mTB0ofMiKhYE/w3cVXqtew5AZvz4REor+Wthlxh/sM5arWTqziKOStn zYn16XfqL+mVg1HJ8IAgNA1gDsuZwpdvX3oIAXDsnBRtKyZxHxw8yI/QxAtt3Jh5LRiy xtsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=fwR1XnrNrE05jj+kaIvmoHGONzrLMLUSe2XCu49/tSU=; b=g4Q3T2Bs+QEw7mWEKyZXJL8ZwBdhKcAmw7ib42XaxoXb9kxACBnRkoGldrbTOxS29A HriLAZETxNRecgmBUwaNuXp5YU7RmatGLq3x81WZBc6VKhw5I6F3KsGIaSxZZFTRngz5 dw08iDlBfp9z85wWewErBHFfI8droarVM3vOTJN3cLn+MgxtR+6eSOpNc4u+1G9NrxO7 mXqpwUFsoK9RXXd1jB5o2bnjSJ1e5DOGrfMS4yGzNn8Sk0SQ1+LbnGyytDCiQjRzg2Hg HkErfoRZSpQ/Ag1SLxkYXuTqVUY/YIBCv/udfKymNKJQBoHhblni6OauvdDnF+f5jwfA cXeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@google.com header.s=20161025 header.b="XoE/qzaf"; dkim=fail header.i=@chromium.org header.s=google header.b=bJCCKZV7; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15-v6si13996299pgf.293.2018.07.25.11.03.23; Wed, 25 Jul 2018 11:03:39 -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=@google.com header.s=20161025 header.b="XoE/qzaf"; dkim=fail header.i=@chromium.org header.s=google header.b=bJCCKZV7; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731441AbeGYTOf (ORCPT + 99 others); Wed, 25 Jul 2018 15:14:35 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:38112 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731423AbeGYTOe (ORCPT ); Wed, 25 Jul 2018 15:14:34 -0400 Received: by mail-yb0-f194.google.com with SMTP id i9-v6so3330382ybo.5 for ; Wed, 25 Jul 2018 11:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fwR1XnrNrE05jj+kaIvmoHGONzrLMLUSe2XCu49/tSU=; b=XoE/qzafc9enyyuoE9/oDxiSAHmn0IfTU4sYveYkZpXEy77WIwM+dTVULfI5DCdkui 3eeZmOovw/qYQot1xQurFAKyd6lfrBiY5B6ySS9Sd3nXrBiS4JOeEx5wTRBWNWy3mBjE nH3zcn23b5xK/yGFk0HJXRQpeaVle9XhkkYH3xs/GmFurs21TgDMPLcqnWZYbhI8ONEs 08CZIwQ/USOFGlc2UJ/lV7HQ3FxRzwFLtj7eBlzLnYTvAlb5fWxaRHy+Uerr3IxJdsyn lctsnq0ihhK+oOIUBz6X84v3OdYmxGcyLJRXtQlcZSPmrOXihqnaSGgemv0PjNbyUWVL RBIQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=fwR1XnrNrE05jj+kaIvmoHGONzrLMLUSe2XCu49/tSU=; b=bJCCKZV7doU6vrsXi/q7oCCK4xX2oIJxv+ozw0KprS/l2hz5usWrx/gYBcd1cpd2Zw KBN+LlDaFDLHU0ZPNPJz1tBFa+JrQKxV9EQzg54gpYDalkVexuGu+yAOROy08fLL8XdB 5tHaQWbeTmk7hEUjB6WsVq8fQ86bnhNLhLHjQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=fwR1XnrNrE05jj+kaIvmoHGONzrLMLUSe2XCu49/tSU=; b=q0QL7xM/yVhvm3+//6D7kScd+AL3hG5FyTfaoPq3jIwzVTwmjegBigZcf4yaoPrjDV QWcr+gDnVMbWg6Mk/VdGEeBSbqLgqUlb+CGIrUdq/MNKcQPfO7FcJLgh/UyvQ8UCIqKv eptVtuwM5W5I92wVD1ArjEogGsISkcQTIAU/orNsKlSbMN5y991bnVOzeQ9OjLFXKE6W MAG2PmQuiNh1CRQBfwOIpgY4aEXTpy/2NghoLOlFpqsbRTGi5Wu23x1wGrvK/Dt/roMP HysJebeWqeLkx2UUFOord5XTGosKo3/nHqhENM2AS5vpwHfBuNBm2OqrRvxew9XjQFZc 9TBQ== X-Gm-Message-State: AOUpUlFtbzFVwOSRn4iyHDODR0AdkPADVDnD9+m0vcaRBk7DqeQuzNRh rS5qMiu0CbkPvAjZ2hLnaWG4wx2K1RkfJdRWoU3b5A== X-Received: by 2002:a25:ce8e:: with SMTP id x136-v6mr11877726ybe.118.1532541707948; Wed, 25 Jul 2018 11:01:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:6602:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 11:01:47 -0700 (PDT) In-Reply-To: References: <20180724164936.37477-1-keescook@chromium.org> <20180724164936.37477-11-keescook@chromium.org> From: Kees Cook Date: Wed, 25 Jul 2018 11:01:47 -0700 X-Google-Sender-Auth: 3JWb0S7OUNBTdxQSmmr9a9nCs_0 Message-ID: Subject: Re: [PATCH v6 10/18] x86/power/64: Remove VLA usage To: "Rafael J. Wysocki" Cc: Herbert Xu , Arnd Bergmann , Eric Biggers , "Gustavo A. R. Silva" , Alasdair Kergon , Rabin Vincent , Tim Chen , "Rafael J. Wysocki" , Pavel Machek , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "the arch/x86 maintainers" , Philipp Reisner , Lars Ellenberg , Jens Axboe , Giovanni Cabiddu , Mike Snitzer , Paul Mackerras , Greg Kroah-Hartman , David Howells , Johannes Berg , Tudor-Dan Ambarus , Jia-Ju Bai , Andrew Morton , Geert Uytterhoeven , Josh Poimboeuf , David Woodhouse , Will Deacon , device-mapper development , Linux PM , linux-crypto , drbd-dev@lists.linbit.com, linux-block , qat-linux@intel.com, linux-ppp@vger.kernel.org, netdev , "open list:ANDROID DRIVERS" , linux-afs@lists.infradead.org, "open list:NETWORKING DRIVERS (WIRELESS)" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 25, 2018 at 4:32 AM, Rafael J. Wysocki wrote: > On Tue, Jul 24, 2018 at 6:49 PM, 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). >> >> [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com >> >> Signed-off-by: Kees Cook >> Acked-by: Pavel Machek > > I think I can queue this up if there are no objections from others. > > Do you want me to do that? Sure thing. It looks like the other stand-alone patches like this one are getting taken into the non-crypto trees, so that's fine. Thanks! -Kees -- Kees Cook Pixel Security