Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1835872imm; Thu, 24 May 2018 01:24:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZriqul+gcOt091sxQmBTt8QQPvZ7N0HcwoNIgRMMz2CsDNzB0GyVBJYB3gRltdXkmq5n19r X-Received: by 2002:a17:902:8486:: with SMTP id c6-v6mr6366099plo.23.1527150287888; Thu, 24 May 2018 01:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527150287; cv=none; d=google.com; s=arc-20160816; b=hSrhYu+LLb+/UiqqAcMbgQ8DSumyHTkzWsp8I47ytvfBbvz7bdIlOSNZFqcS/eZz5Q G663Rt+qt17Xt+W/gLowMRKJIxZ0NfsNUmUFwTgxpXMUtAoio1KwSfTKgqFSq+jjuYuG 9e94hsh/qRYsW710Kop+FL+XB7fNs6y6qf5S5RozPKPIkfcoXy+Wn9SIJl6lUnz0Nlqw OXCJS87oldo0Ofi2y2yJjGZ5XqrDUcwpy0PaEdyPZxSzu4+GXbjno+V9DxzYZzv4q89Y H1EpbqzejFBmt45tMi82OLsQf7SHNs1KmZwCyYfQDmlrcL9VJhXwz2gXSgC3S2wf07np OjPw== 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 :arc-authentication-results; bh=wjCtU204euW+2NtpG+SIagnSi1UPYc/fLkYoBOJDOr4=; b=nXc/zjtuyGMEgEj9IXFORY2nBa1jDpY7m8NQ8NCkHEGcB8kZUjQWe+JrPqYBHFAkD+ Ic1IMLLBE+Lq11In72TbkZbOEgXtBQ/ja1qySHxtGE4aSFLHHvMA0TEgDbJWn/F6uDSX O/BpRQu/Xw8o6K5C7W2Ree6ZOsmdwzRmMiPffgGI5q5LY/gTTuMsFzemjy40pxf861zR ghwKp5XuIIWlQWYaFyiifV1wlJuWPl8QhEzH8g9cu5z63mUWEOMDJBXZYL3KeQIr6YCq +xPsaqP5F3TffjBbV+qOI1xHMgwtapmqAq0owK3AJtkEGRfgxUFqas0sfqXS0VJzU7tU 8s1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MsT1vAcX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e63-v6si20596083pfd.261.2018.05.24.01.24.32; Thu, 24 May 2018 01:24:47 -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=pass header.i=@linaro.org header.s=google header.b=MsT1vAcX; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965055AbeEXIXU (ORCPT + 99 others); Thu, 24 May 2018 04:23:20 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:53257 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935691AbeEXIXQ (ORCPT ); Thu, 24 May 2018 04:23:16 -0400 Received: by mail-it0-f65.google.com with SMTP id n64-v6so1299901itb.3 for ; Thu, 24 May 2018 01:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wjCtU204euW+2NtpG+SIagnSi1UPYc/fLkYoBOJDOr4=; b=MsT1vAcXHUuYyfSbHQetmb7kSGhAxPGgV3SP4Zu+SbGB5hitiVO0tXEfFS4k0SBNTD 6IqsKWVIMTNeEwwhlyWQq5fMr+95KAWybVvlIeU8RBO2jZpNDlI30OmCSFvZV83tTi0i WF6Bby0/JiGn9jf5ZVAtQnrl7o6G6U5bE0CYw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wjCtU204euW+2NtpG+SIagnSi1UPYc/fLkYoBOJDOr4=; b=C78eICyLHYTY7NJcUlT7tYFxoUXNti6/8740iQZGCvyZzI0tLDYsaVAypJILoBlKzt Vg8fvNIfOHp6TPh8RrKpVDKdf2mjMZiwtNnciXk8o2NAe7i0TjrCXSyPAcajmnCjjOP9 ja9CYB0zbD4OHzdse26G8cYlcE0KvBu83daPTDAy0ecaRDwm7m4iFyykCScnPv4QV7va 0PZkxGTJAEJFPB3Gofnc49UNkIAx66bq/Je1Z0YztMtUqYEMu4sngiS74F9NEx7gUDch EGN7t5bDC3N4ZPkx6ZivK4oDcWmKniEmd4mOChEUM/NTXKDUzDUz19+p9lRJlxpSGJPW 9/1g== X-Gm-Message-State: ALKqPweQdSwXGE/kbbFNdeTbzj+8Yrqvg+R1zdEqZyZ9xrexglEZzc2T SnUqm+dbb9RUREAGGvpGL+z0qRoIvcT0+FXPfh/4Sw== X-Received: by 2002:a24:c146:: with SMTP id e67-v6mr8194697itg.70.1527150195532; Thu, 24 May 2018 01:23:15 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:78c9:0:0:0:0:0 with HTTP; Thu, 24 May 2018 01:23:14 -0700 (PDT) In-Reply-To: <20180328175957.23904-1-labbott@redhat.com> References: <20180328175957.23904-1-labbott@redhat.com> From: Linus Walleij Date: Thu, 24 May 2018 10:23:14 +0200 Message-ID: Subject: Re: [PATCH v3] gpio: Remove VLA from stmpe driver To: Laura Abbott Cc: Kees Cook , Patrice Chotard , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , kernel-hardening@lists.openwall.com 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, Mar 28, 2018 at 7:59 PM, Laura Abbott wrote: > The new challenge is to remove VLAs from the kernel > (see https://lkml.org/lkml/2018/3/7/621) > > The number of GPIOs on the supported chips is fairly small > so stack allocate to a known upper bound and spit out a warning > if any new chips have more gpios. > > Signed-off-by: Laura Abbott Patch applied with the review tags! Yours, Linus Walleij