From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH v2] netfilter: nfnetlink: Remove VLA usage Date: Fri, 1 Jun 2018 09:48:04 +0200 Message-ID: <20180601074804.44l66hj7lcwhpdmv@salvia> References: <20180530191756.GA39504@beast> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Kees Cook Return-path: Received: from mail.us.es ([193.147.175.20]:54930 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751053AbeFAHsI (ORCPT ); Fri, 1 Jun 2018 03:48:08 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 2DBAA7B561 for ; Fri, 1 Jun 2018 09:46:57 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 1BA33DA4D1 for ; Fri, 1 Jun 2018 09:46:57 +0200 (CEST) Content-Disposition: inline In-Reply-To: <20180530191756.GA39504@beast> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, May 30, 2018 at 12:17:56PM -0700, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > allocates the maximum size expected for all possible attrs and adds > sanity-checks at both registration and usage to make sure nothing > gets out of sync. > > [1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com Applied, thanks Kees.