From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Stephen Kitt Cc: hare@suse.com, axboe@kernel.dk, jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH] device_handler: remove VLAs From: "Martin K. Petersen" References: <20180309232933.14e39858@heffalump.sk2.org> <20180309223211.20473-1-steve@sk2.org> Date: Mon, 12 Mar 2018 22:37:47 -0400 In-Reply-To: <20180309223211.20473-1-steve@sk2.org> (Stephen Kitt's message of "Fri, 9 Mar 2018 23:32:11 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain List-ID: Stephen, > 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. Applied to 4.17/scsi-queue. Thank you! -- Martin K. Petersen Oracle Linux Engineering