From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qt0-f193.google.com ([209.85.216.193]:42933 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932680AbeCNBjG (ORCPT ); Tue, 13 Mar 2018 21:39:06 -0400 MIME-Version: 1.0 In-Reply-To: References: <1520598613-3641-1-git-send-email-andreaschristofo@gmail.com> <5AA464DE.90100@broadcom.com> From: Miguel Ojeda Date: Wed, 14 Mar 2018 02:38:45 +0100 Message-ID: (sfid-20180314_023914_314560_7136D8E7) Subject: Re: [PATCH] drivers: net: wireless: ath: ath9: dfs: remove VLA usage To: Kees Cook Cc: Arend van Spriel , Andreas Christoforou , Kernel Hardening , QCA ath9k Development , Kalle Valo , linux-wireless , Network Development , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sun, Mar 11, 2018 at 12:12 AM, Kees Cook wrote: > > The problem is that it's not a "constant expression", so the compiler > frontend still yells about it under -Wvla. I would characterize this > mainly as a fix for "accidental VLA" or "misdetected VLA" or something > like that. AIUI, there really isn't a functional change here. C++11's constexpr variables would be nice to have. Cheers, Miguel From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ojeda Subject: Re: [PATCH] drivers: net: wireless: ath: ath9: dfs: remove VLA usage Date: Wed, 14 Mar 2018 02:38:45 +0100 Message-ID: References: <1520598613-3641-1-git-send-email-andreaschristofo@gmail.com> <5AA464DE.90100@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: Arend van Spriel , Andreas Christoforou , Kernel Hardening , QCA ath9k Development , Kalle Valo , linux-wireless , Network Development , LKML To: Kees Cook Return-path: In-Reply-To: Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On Sun, Mar 11, 2018 at 12:12 AM, Kees Cook wrote: > > The problem is that it's not a "constant expression", so the compiler > frontend still yells about it under -Wvla. I would characterize this > mainly as a fix for "accidental VLA" or "misdetected VLA" or something > like that. AIUI, there really isn't a functional change here. C++11's constexpr variables would be nice to have. Cheers, Miguel