Received: by 10.213.65.68 with SMTP id h4csp237241imn; Mon, 12 Mar 2018 12:09:57 -0700 (PDT) X-Google-Smtp-Source: AG47ELt5gJftTA9zqt2ZBn44bYIwIeX27MTHDnyiEhi2Lbna1/AptgK0nEo+9FiFGsTlEN38UpfS X-Received: by 10.101.98.137 with SMTP id f9mr7379011pgv.6.1520881797589; Mon, 12 Mar 2018 12:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520881797; cv=none; d=google.com; s=arc-20160816; b=dJPHJuGmhMcv0HElIb8BtsUFnv/Dn6Y8ek02AHMkzht1xA4V9ZWRte8T0Sf337peWa D1A5V/mGMn4lL7dm0DGHu4SZYXxpHQpSw8HBzBf8VCRVDbYdjbiRdXIUaf9+eKKTOTFC ApHdOSCQDI6cSUooVKQa3K+zcXetLx6Uu8DQhWn13lms65IlAHrA/hVmUg6Z02yQuBP6 ek4dom5EcA3cJOVNWo8Na/gsExNvmQnC0ZGl5vfuVoznag33GToPhSJE2f39RxTLU6YZ uBEuSGnCUafLtl0om6YcrJWMbgx3i9u+JJX8R8cl+UpMAovi1NVIgDJc3EvOuhSJzk/C r8ng== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :arc-authentication-results; bh=ydByLj9tVAXESVQ4HnhE0j6BLeCBpDb9dhX/bKsKzfE=; b=Zxv4n6BFclfVmWmvzPTvAykByJtwDX8xoJEkw6vJtxJj6BfLsQLqiAXv3+2p+uhk/g Cg5CA02lNOZY1o5wc0c5VZHQ9SdPcTz8IWuHIV/7Nat1bd0oo2UT1Jqs3FWK/GEBsMJk 9QSx5+VWbhJ3EBDuiqe9VVI6RrknrscRANXhOhX0JxlHMkSZWWeamY0Oqn4QnvJBAeX0 L0ElrgLSjL4kzR7vaNMGkI0v77QPRCyhBDgCsd31s5aYUBt3QC0idv7c+jqHNSkqfYna IriB94thChb30DttwgWiy1oXQIoKSrAgh97u1LhqkTyg3/43OxBkk2+h5btgx0jtXoi0 0Ydw== 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 r79si6204123pfb.126.2018.03.12.12.09.43; Mon, 12 Mar 2018 12:09:57 -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 S932409AbeCLTIT (ORCPT + 99 others); Mon, 12 Mar 2018 15:08:19 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:35392 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932176AbeCLTIR (ORCPT ); Mon, 12 Mar 2018 15:08:17 -0400 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 5F9381017E8CA; Mon, 12 Mar 2018 12:08:16 -0700 (PDT) Date: Mon, 12 Mar 2018 15:08:15 -0400 (EDT) Message-Id: <20180312.150815.1091524401090660262.davem@davemloft.net> To: s.mesoraca16@gmail.com Cc: linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, keescook@chromium.org, santosh.shilimkar@oracle.com Subject: Re: [PATCH 2/2] net: rds: drop VLA in rds_walk_conn_path_info() From: David Miller In-Reply-To: <1520802470-17374-2-git-send-email-s.mesoraca16@gmail.com> References: <1520802470-17374-1-git-send-email-s.mesoraca16@gmail.com> <1520802470-17374-2-git-send-email-s.mesoraca16@gmail.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 12 Mar 2018 12:08:16 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Salvatore Mesoraca Date: Sun, 11 Mar 2018 22:07:50 +0100 > Avoid VLA[1] by using an already allocated buffer passed > by the caller. > > [1] https://lkml.org/lkml/2018/3/7/621 > > Signed-off-by: Salvatore Mesoraca Also applied, thanks.