Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp259170imm; Thu, 6 Sep 2018 01:52:54 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbm0Gnsc8iybIqgDUerOou7uDwLxYn7bbvRTjTQorx8gApCni8+26fKjA8ss1iO1pkF6Akj X-Received: by 2002:a63:3f45:: with SMTP id m66-v6mr1693303pga.51.1536223974876; Thu, 06 Sep 2018 01:52:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536223974; cv=none; d=google.com; s=arc-20160816; b=xhQAxfFtMJRmfTTNP/sINCWnTl5j10YtApnshurDqKkJnr658RnRAMTNjToViCa3TW PjG2TuxY0GMtxy1GD0ZkgQDo/jPDLeqJH41ShdXf5AD3NG0cgLaXoK/zFI3ZNhjDF8l6 qIqviOvHHy7HJk5cbU+6mhXcRCOKvsetFmA67Dbwwhb5flRXXV/obOamFO3/2XffMQZT 1VoVFWpArzRSKzQn1f2lPliuu/lTN+CmsogDJ15g0Fl+pzNwJwj5Hz5j0xOjDNxvvGdJ OvBOYEzGIDPH2g4PmfcP4wZ/SVcIWNvuTGqwumfP010VbLIqyCSTqiXN5eu/UCo4dgtU 2e0w== 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; bh=YAnfIISyEgD2WxDTn3BdBXnIui71j+Ws7US0jnFwW9c=; b=h7YzRC00t3nfiElI3sBKoNJ/SHoXyxBkS12RLQ+5uAIPfLNad3Hk4g5BczfLS2Fv0x Vx0K0ZbOG1cbYEl5WCVYLkGGO4YwKDCU2cSCPotZBye3+ymijMyFmVvrb9+R313IMZ+J 6YgBAxG0zSi03Kx7cbPX9L6pGabJLQobZYSRgFLGQefvp8yU8mCqTtGYsQOi3SvPAC9Y GBiWWsHw+PYoSBb1jUOl8cJj/p9lsM5r/xBfc0FkX83dgsWEp6o7f3on0XAUimrNDJzW M5ZrlZddq0Gg9vGS0gmCk72v58xpNWllhoZx+dIkmy5qBS2+skcZwmqSies6pm8W5wnk gpRA== 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 31-v6si4737818pla.129.2018.09.06.01.52.39; Thu, 06 Sep 2018 01:52:54 -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 S1728102AbeIFNZs (ORCPT + 99 others); Thu, 6 Sep 2018 09:25:48 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:41672 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbeIFNZs (ORCPT ); Thu, 6 Sep 2018 09:25:48 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1fxq0J-0000e0-Ar; Thu, 06 Sep 2018 16:51:07 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1fxq0C-0007Ti-UV; Thu, 06 Sep 2018 16:51:00 +0800 Date: Thu, 6 Sep 2018 16:51:00 +0800 From: Herbert Xu To: Ard Biesheuvel Cc: Gilad Ben-Yossef , Kees Cook , Eric Biggers , Antoine Tenart , Boris Brezillon , Arnaud Ebalard , Corentin Labbe , Maxime Ripard , Chen-Yu Tsai , Christian Lamparter , Philippe Ombredanne , Jonathan Cameron , "open list:HARDWARE RANDOM NUMBER GENERATOR CORE" , Linux Kernel Mailing List , linux-arm-kernel Subject: Re: [PATCH 2/2] crypto: skcipher: Remove VLA usage for SKCIPHER_REQUEST_ON_STACK Message-ID: <20180906085100.xcqqftgqg4sizkec@gondor.apana.org.au> References: <20180904181629.20712-1-keescook@chromium.org> <20180904181629.20712-3-keescook@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 06, 2018 at 10:11:59AM +0200, Ard Biesheuvel wrote: > > That way, we will almost certainly oops on a NULL pointer dereference > right after, but we at least the stack corruption. A crash is just as bad as a BUG_ON. Is this even a real problem? Do we have any users of this construct that is using it on async algorithms? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt