Received: by 10.213.65.68 with SMTP id h4csp3202191imn; Mon, 9 Apr 2018 16:22:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/gEU0ffGm5oJjCrx9ebXcPdRLdeDS+wB3WyDwf8R/tBTYK0gKeR7t8ZEFuoiLJw/MV5mLO X-Received: by 2002:a17:902:207:: with SMTP id 7-v6mr41359773plc.261.1523316178926; Mon, 09 Apr 2018 16:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523316178; cv=none; d=google.com; s=arc-20160816; b=AWDFDI30xMRUgc3ZvikkmhhIDqyBDMETRK3iANliiTGJe2T1GPvHeuELl4hr+/40FN WGgBinmVW9/MSNqjk4K4blZNZ+Px8V1zcvvhSKKPROVNHqXH9fuwTl17IjMweKSgWTjj sYS/IsedAjUvLdd3DOs5I/pITRxHkLIBpPKa/z38m7lTIWgodfFrsj2O+ZoXs9SbsRVq 59bmtH4uPyIq3foAZFII1GqNTpxaF24eiRQiHF5Zd9JyS5pZgfnHhnQmrD9VxeYqghXB LEKCkEFGLnOtnQ7Gpq/aNkJsuNXMNv9Nc91Jd1ndDGrIdco9fbIUd5GIdbq/M3+7J8F7 loDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=GWjXUVa/UTqlPEZcyNvSPq3m8GDZj34+6nyxl73oja4=; b=Bo7rdYVMK3Srts7A8hKV3PHtcMWH0FfcIdtCCAuZ7E71rAa8ppTgOBkNCXXBoPljrM nmcV7MvTABNlvwmow46LVq6Mf13kZX3ifEQuT2PruYJsI63iD+gUjT9T/O2SFbNfJOYu g3fXY0h7pEuPsMMaVl6OBvqvrgWjpZn9ikTsnaQyxIKTSlS7mUeyzO7q+RIK6FaNHnBf itmbdHK6HuAk3D6ndtQ53Qb64EF3mRNhDYvEP9NaIw1+cCG7+DWE+xoLrpD1/xDggpnq 73/jNWPo+KyiTxDvzJwiAxfm0c/C5/n6/mPTd6mdhiJgHMQMBhLnZ9R3GyNSvZfDjbDf 1puA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=US9YgdmT; dkim=pass header.i=@codeaurora.org header.s=default header.b=MMObWEek; 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 g4si869191pgr.72.2018.04.09.16.22.21; Mon, 09 Apr 2018 16:22:58 -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=US9YgdmT; dkim=pass header.i=@codeaurora.org header.s=default header.b=MMObWEek; 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 S1751862AbeDIXTT (ORCPT + 99 others); Mon, 9 Apr 2018 19:19:19 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33172 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbeDIXTR (ORCPT ); Mon, 9 Apr 2018 19:19:17 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2F1D3602B6; Mon, 9 Apr 2018 23:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523315957; bh=8XXwxBgknuv/I2pdIg7qZH77qNs1xs80HgHdmLCtkXo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=US9YgdmT705o+YNfLVVBRbGLet8ahcLiyBHQxmO21Q5qRBtLTINQYfcqr5Vd0RiF/ Wej2N0IrxTgqAyy0RPyANTOeRehyLGE/y34Ufwp2NopWY4z4RSxthEgQIVaO23gSg8 cdk6P7fz3/qVPB4bO2eEoovuXcEQJ3M/fdZdHSWY= 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 mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 921B0602B6; Mon, 9 Apr 2018 23:19:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1523315956; bh=8XXwxBgknuv/I2pdIg7qZH77qNs1xs80HgHdmLCtkXo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MMObWEekFIM6vW1D7RDZqQlffxVUTFiFkWA7OYiUC2pSVK3DZAw7Ux4JECXB/6UIA 0kih6S9+mL6Oxo6Ni2rkEFuMv7BZO1J+gObR86lBocPEj1w5Y9UqbxigG1XqPB6VRG ZKEovibvJYLSrA7S1yMscQqcaVSfmuzsIjy/xLTc= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 09 Apr 2018 19:19:16 -0400 From: okaya@codeaurora.org To: Laura Abbott Cc: Vinod Koul , Dan Williams , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, Kees Cook , dmaengine-owner@vger.kernel.org Subject: Re: [PATCH] dmaengine: dmatest: Remove use of VLAs In-Reply-To: <9bdd8bb4-b6d9-e170-b585-b2dc3b8f0d67@redhat.com> References: <20180409210603.3575-1-labbott@redhat.com> <4491bde2-cf38-5103-0634-1986ecd32a7c@codeaurora.org> <9bdd8bb4-b6d9-e170-b585-b2dc3b8f0d67@redhat.com> Message-ID: X-Sender: okaya@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-09 19:14, Laura Abbott wrote: > On 04/09/2018 03:48 PM, Sinan Kaya wrote: >> On 4/9/2018 5:06 PM, Laura Abbott wrote: >>> + /* dst_cnt can't be more than u8 */ >>> + dma_addr_t dma_pq[255]; >> >> This is 2k stack space on 64 bit architectures. Isn't that a lot? >> > > Depends on your definition of 'a lot'. My assumption was that > since this was a test module there would be some willingness > to be a bit more generous. The problem is the array size is > based off of the parameters passed in, although oddly enough > it's based off of the minimum of two variables. If you have > a suggestion for a tighter bound we can use that. Another > option is to just switch to allocating the array with kmalloc. > That might be reasonable here since there's other setup > that happens before the test starts. I think allocation is a better choice. > > Thanks, > Laura > > -- > To unsubscribe from this list: send the line "unsubscribe dmaengine" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html