From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/tls: Remove VLA usage Date: Thu, 12 Apr 2018 21:47:30 -0400 (EDT) Message-ID: <20180412.214730.1475763618210761319.davem@davemloft.net> References: <20180411005234.GA39848@beast> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: davejwatson@fb.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, ilyal@mellanox.com, aviadye@mellanox.com To: keescook@chromium.org Return-path: In-Reply-To: <20180411005234.GA39848@beast> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Kees Cook Date: Tue, 10 Apr 2018 17:52:34 -0700 > In the quest to remove VLAs from the kernel[1], this replaces the VLA > size with the only possible size used in the code, and adds a mechanism > to double-check future IV sizes. > > [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com > > Signed-off-by: Kees Cook Applied.