Received: by 10.213.65.68 with SMTP id h4csp237178imn; Mon, 12 Mar 2018 12:09:52 -0700 (PDT) X-Google-Smtp-Source: AG47ELt6IH2bMTcRLrvth+BvvjwWioAD8gWvE/L5HTTXpCu3YTDU4flInREr6lraFBEo1g35MMMr X-Received: by 10.98.55.7 with SMTP id e7mr9109089pfa.112.1520881792931; Mon, 12 Mar 2018 12:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520881792; cv=none; d=google.com; s=arc-20160816; b=SI7v/m+d5aTtT7sIgO+yk7zFNmC0uNvb1sxS4ELnLL6hHNN0cgto1yQTTEuiVa/ibp PP49BNs6Bs0rB76lJDb+ANZuZfGRyNYbp6jcDW3N5FnPfBinFQnj0n1Y32lvy/g08ub4 uXBH4HjptdmhlovZ/mGeWIlDQTdWXNQJ+Afd89e7FDH4gzaLF7wlcEAehTY2LwNobJud wxSZlZTYv1ALKnCkDto0yCsseXGojER9FgnvYAq5YPm50QlaByKaGdKz2w07hYcBe5hv bmO0UGJKlW6kAMAoy6OKC5fKql924lr0Pva/pn0IPSeuedJ299hAzf3gOXOnOHfAZPnp Xwog== 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=814xLhRUpRuwt+v0hqw35QM87k8COH0Yt9BtHUPjeCE=; b=T3WLcTuwvh26+NxZJlmY5Omm2x359wKhnLAN10nRjmkrkgs58WDEJ0ARc4wuPiHhUY QmokeZXTm6Kdlrsc4fJ54WlrCnwfKXwfU9P7P/9lHf6kXBvsL0WHEbuVcdMKZGMMp4hD YiBvPZJbMNYamfxZXvFqHY0zuyz4wXDYAgiF84qQ3McO6YsMyYjYlTgr9wEFEiuk6+AV WT1Vbj6Reup4W7iZ/fDoB/lRLCoB1ifo7+37SQfH3+QOzCrWloqNgAGlqvAlFHku1u0/ q8c9pcxemvbJYYyYEr7QoTsZchDfzVb/EAlUozxL8bZtzWTWDZEuoZHK+bl/vpFyi6Uv H3Fg== 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 j2si4074789pgn.589.2018.03.12.12.09.38; Mon, 12 Mar 2018 12:09:52 -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 S932343AbeCLTIH (ORCPT + 99 others); Mon, 12 Mar 2018 15:08:07 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:35378 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279AbeCLTIG (ORCPT ); Mon, 12 Mar 2018 15:08:06 -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 9E8171017E8C8; Mon, 12 Mar 2018 12:07:59 -0700 (PDT) Date: Mon, 12 Mar 2018 15:07:57 -0400 (EDT) Message-Id: <20180312.150757.1880237990834088910.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 1/2] net: rds: drop VLA in rds_for_each_conn_info() From: David Miller In-Reply-To: <1520802470-17374-1-git-send-email-s.mesoraca16@gmail.com> References: <1520802470-17374-1-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:06 -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:49 +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 Applied.