Received: by 10.223.185.111 with SMTP id b44csp894079wrg; Fri, 9 Mar 2018 16:13:37 -0800 (PST) X-Google-Smtp-Source: AG47ELt0oPS77smlg/E/sTMrdq1ggdulO6w08IBl+b4Id96ou4+dL720o7ABwq+WgSdOKnA/cgzC X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr289368plb.77.1520640817714; Fri, 09 Mar 2018 16:13:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520640817; cv=none; d=google.com; s=arc-20160816; b=lTQLVAwJjF4aMduMVjFyjtll6GUIzROWjkGkpH+gG83V/jKvgymUw0r3U89Y15qxdQ dUJoObSvjKr0RcY6j9nY0m0X6/B7OyEA+PdLH77gnWxK+D0PaIFW5s7ZCDCpSpUzocMn F+uLBFYWYGqzv9zEba52faw0s01PBoUdTCzaGt//LCz/z4MK4iOSDsJeoJOcmKPH4Yyh sLnkoOiJfmIt3xaoX0imH9BlL2xU+tWS4zSMhSHbAvGOUHOhPvsgSqh54skuGu0yHlCN aicujF6BZ8Da+A6gBSCZsItvZv5KijgBh6VQF2hESrLYMTZ1cj71dauZOeyEEMgjgO3a mYWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=IBd9OZLge3AY6G9096e8hor2bDOooalwwRNfV7wVINs=; b=nSqziMnPmxX9rtG0ds4vDkfZc3OchdoFKI/2YSv6UON3YCkhOOuuMDFkOEs/nASdW8 FcXeOATEmZ2G2DP068AvJnIGVWvmO2JWScm/4xkbQNhzHWw/3/YN6mAzV7pFwV8LtGFG Js7CKvvl7Kj9LU16o6Ntu3M6msNwaKdHxo154l9isktBgqFrEmwmPUzhWs5ntpPrfDkr /wHzJPrC+zXHi/BtUw6On8u+FQ620GD1HvM7/CnX0q5tRigWIzNNTkBTzh0L2yLCY1Bk Fv68MJOTKJr9cO31j8kZhx/QzZspRhiV8U9hrpRq55Mv0r9JwRipP91fxyj3QbSthb2B iuFw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b7si1453342pgv.634.2018.03.09.16.13.23; Fri, 09 Mar 2018 16:13:37 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932508AbeCJAKd (ORCPT + 99 others); Fri, 9 Mar 2018 19:10:33 -0500 Received: from mail-ot0-f193.google.com ([74.125.82.193]:39759 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbeCJAKc (ORCPT ); Fri, 9 Mar 2018 19:10:32 -0500 Received: by mail-ot0-f193.google.com with SMTP id h8so10272579oti.6 for ; Fri, 09 Mar 2018 16:10:31 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IBd9OZLge3AY6G9096e8hor2bDOooalwwRNfV7wVINs=; b=YC3v8CW5vcDCaZvGQeF/QZS1+LgcdrUKPcMmKR0TMjLP5SLX06/5oZqBPKu/UO6sde 2uCUIx0ZYbzIcVknvA9hCepvWjrUo+WJ82HHRArSOuMiYTdw3HAzdDOovpMJJP019W/j AJDNIqBJsRID0Chc2sH1/a4i6rQjVuP/iJ0YJlCpKrsae3RAyBqt+V5u5qF0fMr1p1t5 6pVK5fkmMVAKuxPFLq+BuzQUbJlTvYBS4tqaHdPWAht1aRJhYpD93i1Cf6CAp47ur2kp Bj6nzHGrXA56HJN/9E+4cZ2llSaYdFl6GXpnmWw3++kXERARm74DjB2XjWpNZP0rtsRq 66Hw== X-Gm-Message-State: AElRT7Hucc3F9jJwsV3AyeqtihBrD5FWcluww1/XMeRwqtO/DbW5WyuM d8qM/qjmOucJ8ZoM3k0hGnEVrA== X-Received: by 10.157.17.138 with SMTP id v10mr185132otf.135.1520640631545; Fri, 09 Mar 2018 16:10:31 -0800 (PST) Received: from labbott-redhat.redhat.com ([2601:602:9802:a8dc:4eb2:6dae:ab32:e5b0]) by smtp.gmail.com with ESMTPSA id s12sm1007076oie.9.2018.03.09.16.10.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 16:10:29 -0800 (PST) From: Laura Abbott To: Linus Walleij , Kees Cook , Lukas Wunner , Nandor Han , Semi Malinen , Patrice Chotard Cc: Laura Abbott , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Mathias Duckeck Subject: [PATCH 0/4] VLA removal from the GPIO subsystem Date: Fri, 9 Mar 2018 16:10:17 -0800 Message-Id: <20180310001021.6437-1-labbott@redhat.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, For those who haven't seen it, there's an effort to remove VLAs from the kernel so we can turn on -Wvla in the name of security. See https://lkml.org/lkml/2018/3/7/621 for more details and discussion. This is a series to remove a few VLAs from the gpio subsystem. These are compile tested only so I'd appreciate reviews and tests from maintainers. When these get Acked, I expect these to just go through the GPIO tree like usual. Thanks, Laura Laura Abbott (4): gpio: Remove VLA from gpiolib gpio: Remove VLA from MAX3191X driver gpio: Remove VLA from xra1403 driver gpio: Remove VLA from stmpe driver drivers/gpio/gpio-max3191x.c | 7 +++++- drivers/gpio/gpio-stmpe.c | 7 +++++- drivers/gpio/gpio-xra1403.c | 8 ++++++- drivers/gpio/gpiolib.c | 55 ++++++++++++++++++++++++++++++++++++++------ 4 files changed, 67 insertions(+), 10 deletions(-) -- 2.14.3