Received: by 10.192.165.156 with SMTP id m28csp844142imm; Wed, 11 Apr 2018 08:07:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49VvQ23Z9PNU4UTc8jaV2vIG/yFKjY9ZI+fFkgtfKWTn8k8RfQhsd9+3Zrt2LzzipO3v5Cm X-Received: by 10.99.56.8 with SMTP id f8mr3774041pga.374.1523459226093; Wed, 11 Apr 2018 08:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523459226; cv=none; d=google.com; s=arc-20160816; b=Pa3/fT4epCDfYFVnmHm53+DsuDURt8NZAdpZ7lq9MdlkcfS3eGi3rGt+d6aiwkBfUi nPMYWltJRPAsJr5vMkbfuP/9CxHdwHlR1pJEyXmhW/NE+tjRouX3j+XbCiK3cil+MyZe ZUx8omFlyqkE6ZrM9eTh4eYxczYiaQkIz7oCZRCZqWfCfbnGdybkf+u5hFjModDnSN1u qUv4B8WR81nAFtVRSKKrxt1v1DGUeFK3tQ8BEzlIslcqQMp4jklqle3HKTg//w9SaQ2M Kpk5kJJhXeXIliiJuSRZIvotgf/vhdK1kHldpDaeu6wMZKekYE2MfotaPSKNWObvMXEG h+qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=pc67JXIvAEWJq3n2JPyRUQUUh8vX6S3sDYTYXL6cyYk=; b=KGp9MUqcJ5PhgGPxI49pV05zKJFuaiRRqflgaT/MEVGOjIDOeQGNFcG1v09yB+J1IL vezXDarKMasTgBgpXU6ElKL/Bj2klUzBuGQx4WuLJp5ZEk6ddnD5ydIzEaUaNJrF4X91 0Og9SSgHYSXQlKvXJIk06v2D2OPUvkQEQ4i9yTLGy1koSI73l/CJo+VHY/vy35GcWRIL zNkUovUEBXYQxpPQWPIhkcNYyIfiP08k/cp3o8f5Bgt/bXV1NhrGMGZDLhtCdGPf9GyC GZd2FKsK/2jo3PLjU8o3pt//QeEaPMso2yJNnhqn7lbqNRpWxwEzkkuG9jWmctsPWKzE p3lw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k191si843987pgd.449.2018.04.11.08.06.29; Wed, 11 Apr 2018 08:07:06 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753819AbeDKPDD (ORCPT + 99 others); Wed, 11 Apr 2018 11:03:03 -0400 Received: from bmailout3.hostsharing.net ([176.9.242.62]:44443 "EHLO bmailout3.hostsharing.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753040AbeDKPDC (ORCPT ); Wed, 11 Apr 2018 11:03:02 -0400 Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.hostsharing.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (not verified)) by bmailout3.hostsharing.net (Postfix) with ESMTPS id 85FCD100D941B; Wed, 11 Apr 2018 17:03:00 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 23338168D4; Wed, 11 Apr 2018 17:03:00 +0200 (CEST) Date: Wed, 11 Apr 2018 17:03:00 +0200 From: Lukas Wunner To: Laura Abbott Cc: Linus Walleij , Kees Cook , Rasmus Villemoes , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCHv4] gpio: Remove VLA from gpiolib Message-ID: <20180411150300.GA32719@wunner.de> References: <20180411010352.17929-1-labbott@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411010352.17929-1-labbott@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 10, 2018 at 06:03:52PM -0700, Laura Abbott wrote: > --- a/drivers/gpio/gpiolib.c > +++ b/drivers/gpio/gpiolib.c > @@ -61,6 +61,11 @@ static struct bus_type gpio_bus_type = { > .name = "gpio", > }; > > +/* > + * Number of GPIOs to use for the fast path in set array > + */ > +#define FASTPATH_NGPIO 256 Hm, this has regressed from 384 back to 256 since v3. > @@ -2653,6 +2661,7 @@ static int gpio_chip_get_multiple(struct gpio_chip *chip, > return -EIO; > } > > + > int gpiod_get_array_value_complex(bool raw, bool can_sleep, Spurious newline. (In v3 this was the place where FASTPATH_NGPIO was defined, this is a leftover from when you moved it further up.) I've given this another quick test with gpio-hammer and it worked fine, so this is still Reviewed-and-tested-by: Lukas Wunner Thanks a lot! Lukas