Received: by 10.213.65.16 with SMTP id m16csp190759imf; Sun, 11 Mar 2018 23:27:02 -0700 (PDT) X-Google-Smtp-Source: AG47ELs9uCOLq93Mq5+soxEqzBLIMEkjLiBcC/j5h0HH8WTRdLb5e5gY30AkbdSPfHDSXhCrbO5S X-Received: by 10.101.64.197 with SMTP id u5mr5797024pgp.23.1520836022082; Sun, 11 Mar 2018 23:27:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520836022; cv=none; d=google.com; s=arc-20160816; b=gjfnPyixYmHq1dR97XAJKEZlHDpB+684hNDnDmqIuYd6vVgY8ocbbzoHDKsIhA0i+t 2iSCLOjtQfa0OiSThqtVsuckPSQdBF5an/pqkE/ECl0LwqPof22gufNipG0wFbrkUXdx EHKx/B5HH3dk2LrECQcxKzWJ/XlCXC8dFS7avFV8D+dk11fn5cZTDK0J8XMX/FakaoD/ lvlfesU+fmrrE3YQoFZf75Od1jFdBfyS5/uJziQVAhHkhgid/v68EHI6CQrGP3/oVws5 JkXS8NcNSa4RCzOWtRxfXE7xBe7XxqAXBcHeaAzElAslDWboPpmNQQz2VSvmInIe+Uvk kL0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=CpLMvDc5s2ouWilfsDaggpHc2ro88oMJta0e4CjnnAI=; b=hweGls+0cej3wpEV0JD65sbLWk73td2qXauRIAtY9+4SCePeXWECTV9phutTNZgqRe i2hBpRFOLMgn2ayyei7FC3+vWimco6J22lqrOTb6z137Rf6Mo2NEeMwrR+7JEx1qGUC9 GpTok67gEm3jT89KPNfJmbf+6We6yUPBygNewiimpE6JXEjzMGX4L58ta9bILbMx3uUc 5ebQay4F2qFlG30EsMvN+fhBFTghbo1bhTcAJDTqHwkxGvSDVtFPEyKwTPCmqC3LXjsL oNmXHTUYt5iHKQVRq6D7U6tu4HGaDTYAm/elH4IT65T5MY/kw1REhv00JdsvlBWoBb3A KUKA== 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 m3-v6si5473415plb.480.2018.03.11.23.26.37; Sun, 11 Mar 2018 23:27:02 -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 S1751754AbeCLGZN (ORCPT + 99 others); Mon, 12 Mar 2018 02:25:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:60103 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbeCLGZM (ORCPT ); Mon, 12 Mar 2018 02:25:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6D954AE21; Mon, 12 Mar 2018 06:25:10 +0000 (UTC) Subject: Re: [PATCH] device_handler: remove VLAs To: Stephen Kitt , hare@suse.com, axboe@kernel.dk, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org References: <20180309232933.14e39858@heffalump.sk2.org> <20180309223211.20473-1-steve@sk2.org> From: Hannes Reinecke Organization: SUSE Linux GmbH Message-ID: <7cd80595-ca17-0474-5870-6d7c0429db7a@suse.de> Date: Mon, 12 Mar 2018 07:25:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309223211.20473-1-steve@sk2.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/09/2018 11:32 PM, Stephen Kitt wrote: > In preparation to enabling -Wvla, remove VLAs and replace them with > fixed-length arrays instead. > > scsi_dh_{alua,emc,rdac} use variable-length array declarations to > store command blocks, with the appropriate size as determined by > COMMAND_SIZE. This patch replaces these with fixed-sized arrays using > MAX_COMMAND_SIZE, so that the array size can be determined at compile > time. > > This was prompted by https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Stephen Kitt > --- > drivers/scsi/device_handler/scsi_dh_alua.c | 8 ++++---- > drivers/scsi/device_handler/scsi_dh_emc.c | 2 +- > drivers/scsi/device_handler/scsi_dh_rdac.c | 2 +- > 3 files changed, 6 insertions(+), 6 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)