Received: by 10.192.165.156 with SMTP id m28csp1421720imm; Wed, 11 Apr 2018 19:30:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+uYTOhf7A2qxgCmPmuM6xsjJAzLVCZfeypG0klkZTa0FFmE/syApTtnUlPbi3/Gs543aWe X-Received: by 10.101.102.5 with SMTP id w5mr5192580pgv.151.1523500214218; Wed, 11 Apr 2018 19:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523500214; cv=none; d=google.com; s=arc-20160816; b=zpXwjEUiqC/mbPhrSehbom+blGSIfSaFBm82EUFM9n78ap9l758SoM41Sezxw8BuRq 7ZxcWFgkqOvSEft+RQ22vyrabetLf+El/QgdN2+liuf4g6aFGTC1RLAFD9nw0q04DNW9 OnzObvYIy0V+0QuTFfcWN4d/1KeRePPKcMLoy9lhAPrVzRZq9yX2WS+BqUPBYBtKDVlY GGkcbN5XnC9L3M0RUtetX6BbsTqsLbMbe35UeV2SGGtRkTg680hEmWBdRxVHStcOyaSC 1vt4IMgibPsnmxpARjiwR8iFUikfeg33oaQcjrEaCMMW+V3+XRm64EtJ3NFLQRplw1MR z2Wg== 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:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=7HS/b2AuMk/Ghh5gPoPBWgVs16UxmWBdOYEzCnLSxIw=; b=jHTvUX2Wi2+DXTfQujd9Ryne47r5ZOjO1s1uN8OFWQW6lfLmGkrXEjs2wW2PV3Fnrv 6x447Vykzz+QrvMUjDV6STGqQm3bZlEXtxE95ePYlXaM89vBIOVHJIj4ZMJE3A0tTNPD 9TyxCG+xJGgW7n9rTHJsgOiUEJ5WgQBjNxnGPe0Ag842zzV5AozqesRklkfhpWsSjnTY BVBIFtwjNLwewsNx3L/coZHbmDGq/dErcb1LrcjpPlEJzDX0/k6zFXTvU83jLhIaMmTb OF6jYwJCh11ohhUCYR9vL2H+hcKXMNHkyuTDZAWRZ8UP+jytxb8vS1Ei6rhurosakiTf CU1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=YLpCQ3Lz; dkim=pass header.i=@codeaurora.org header.s=default header.b=cbn655Dh; 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 k3si1552271pgc.441.2018.04.11.19.29.37; Wed, 11 Apr 2018 19:30:14 -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=@codeaurora.org header.s=default header.b=YLpCQ3Lz; dkim=pass header.i=@codeaurora.org header.s=default header.b=cbn655Dh; 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 S1752411AbeDLC0u (ORCPT + 99 others); Wed, 11 Apr 2018 22:26:50 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34706 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751777AbeDLC0t (ORCPT ); Wed, 11 Apr 2018 22:26:49 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id A1CF260274; Thu, 12 Apr 2018 02:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523500008; bh=Gkkd9aVmju19D7TpDbq+dbkZvLZbPJHPMrnXgzFWZto=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=YLpCQ3Lzff2EQZCVWT4nqok5zNCJUZqXPV5lhZZYXGqcMjB4qs8PUn76LPNMe8jos G6CcYLz4/ftbY2nl4CImNj9qoH9IWmQvb4whOKUQHC3gVOVaQ3nfXYaZrEh7Uz8qSJ Zow0RtVLap4HFECAZRMHWaZjDsucO74EN7GLCbIE= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.0.105] (cpe-174-109-247-98.nc.res.rr.com [174.109.247.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id F275F60274; Thu, 12 Apr 2018 02:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523500007; bh=Gkkd9aVmju19D7TpDbq+dbkZvLZbPJHPMrnXgzFWZto=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=cbn655DhhZJuC5ecJewGWczYrIldwVWG9PJp1035RIJp14O9OBdVhTkvyHAuDnwyF HRFmzY6uhTx5H5g5kiNTN5AtXbzBewJ58rM9ioDsgKcLbtr/T+PZ/eW77ocRrtBf9Z yXXG8vl+IJLTU2k5XlNMGbygo16KIr6ninyqVrgw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F275F60274 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org Subject: Re: [PATCHv2] dmaengine: dmatest: Remove use of VLAs To: Laura Abbott , Vinod Koul , Dan Williams Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Kees Cook References: <20180411010216.17702-1-labbott@redhat.com> From: Sinan Kaya Message-ID: <70092ca4-1b42-d438-83d5-068a22618baf@codeaurora.org> Date: Wed, 11 Apr 2018 22:26:45 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180411010216.17702-1-labbott@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/10/2018 9:02 PM, Laura Abbott wrote: > There's an ongoing effort to remove VLAs from the kernel > (https://lkml.org/lkml/2018/3/7/621) to eventually turn on -Wvla. > The test already pre-allocates some buffers with kmalloc so turn > the two VLAs in to pre-allocated kmalloc buffers. > > Signed-off-by: Laura Abbott > --- > v2: Switch to using kmalloc buffers instead of putting a large array on > the stack. > --- > drivers/dma/dmatest.c | 16 +++++++++++++--- > 1 file changed, 13 insertions(+), 3 deletions(-) > Reviewed-by: Sinan Kaya -- Sinan Kaya Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.