Received: by 10.213.65.16 with SMTP id m16csp269100imf; Mon, 12 Mar 2018 03:14:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELuAQY5ffYV60j+9QhPXt4/GAEjM80lWl4rgZ1u2XrvhU3MwjvDeOaenggRjp6xGUTP3TcFo X-Received: by 2002:a17:902:69cd:: with SMTP id m13-v6mr1771745pln.60.1520849688135; Mon, 12 Mar 2018 03:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520849688; cv=none; d=google.com; s=arc-20160816; b=LhVK+zkk71xzyJRHqHA7Grfg2lt8q17Q7NlCiFHyXXYbRccZ2TWgb2yD4DXbOKKmj6 5WLzHTk1fgYaurQwjXhmuUACOg4BDA87MZrA+BADqZF+tD07DvMQ04UUfwojpasA6IKf xMuM587jRXQCk+PFUitBwujsqCc66vbgMso4k/lSRqQjM7oBiN8Ajk+y5pKFZoZzubhc zH5zHCmy7vJ2akZWWA8ceH/yaaJ5V2GoCNvSM0/70xbJZeAPob3JDx7pDB+e7KMcO8K6 OBhg5pzl8ML9F2esNWANfh+xf01Czb9Wshpkyvv2xCamJVGKqoEH3liEwOUVbvQE238w 8smA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=XXPveE62OKQLDLLQ3b2NDFb0MaVNKYb+uxCkrpyhE/c=; b=kkC+0b1CggH6ewZ7TAnKDVz5BA8o3qisFBmP8IEs3sLJTPvCka7kjV7CPPNZN6CUp7 kruNBV3FAs/z44iXf5ERhSySnTFTUeBTEFzRGiNmRlIjRZ8zM5vQEnNvVBgn6c9TBB2r lcQTVVMtjSNodz6fXMHiNmyDp8E8Q0SUoTVGIT7QOeyVfeS9glIjc6cQ4AzELpYi4ES+ pTTJlKZQXQ2PJRFFRtb95kErsMQ1d/+gyAn4h72kPAO5V0ul44qCQ0bFg90jngbdzj5e F5GFGANLpRhbnRkoJ+wMUzuiXf9z8WCCa3OlZ16DiNVQXODzjed328E39n8XGXgWp8Cl mgGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qTF+z52m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 98-v6si1378179pls.244.2018.03.12.03.14.33; Mon, 12 Mar 2018 03:14:48 -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=@gmail.com header.s=20161025 header.b=qTF+z52m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752422AbeCLKNV (ORCPT + 99 others); Mon, 12 Mar 2018 06:13:21 -0400 Received: from mail-ua0-f196.google.com ([209.85.217.196]:40286 "EHLO mail-ua0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751229AbeCLKNS (ORCPT ); Mon, 12 Mar 2018 06:13:18 -0400 Received: by mail-ua0-f196.google.com with SMTP id c14so6385356uak.7; Mon, 12 Mar 2018 03:13:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XXPveE62OKQLDLLQ3b2NDFb0MaVNKYb+uxCkrpyhE/c=; b=qTF+z52mefOvzzZ/02mrD1Wsu7kSLvPRQJAizST2ZL61VdPiIV8/3BllpLtI89rqOf U4Y5fZOv9hnlZ9jfDB7PlKUwVOQDYmGO7DhlCD0gwiIPrOBM2vq5AbDGMKvFIq1m1mCx au32/44v5gUAbq6fWR0kLrJOjZxQb1ILyFptQFJtZ6YgVVcQUmTkQZKWOay7JLdjOcWO iVli1oqc0IyUPU/ZfVGzoSa3MlnBZzVic8k4V6Ydt7n060KY8OAfFFlDDovZtNvP3JGb SOQt4CWicWgmYtgGcYpkhm/zyL10AkfgNuYOaPow0nuZsm2MI0Pj1oi9AuMu2+/aW5pY 5cHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=XXPveE62OKQLDLLQ3b2NDFb0MaVNKYb+uxCkrpyhE/c=; b=tShZsWdiz7l1gez0X4MUgppW9wPrw8VNHoMexwk57Bb4QV4Cfal1q9SNSuw2+EwMK3 xKxHLUC+OBrTr4isvrj/rUgfFf/PKyL7suAJYiXPYBUj3dwcPjezw7YBlMGd+Ywt2Fnn 6PhFbFLRmbyzRRGTYf9rwTDqkQiL+3ER1p4UWN8oBWICASet25+7S5MnBD+ORdLa/VJN lnpKUtTMsT5bP2pqghLCqwW9Oom+5EiQ0ixEoJGp1VhNcY4aFnogPSeXg7qfvUGsS2hE vvGjLcjP7tlVuyhECf+R4kmb0WAcwJjYOUeFJV1UUwE7hZsqboELXS4+w2ZmUGmFyEvj C6lQ== X-Gm-Message-State: AElRT7Fh9Z5WyrLOKyvA3a5ePnb9mbwn0hdXNcGAZH7q8a3N5cY/nBF0 SUSaideEIThBilChnMexY2vwAIg8dzNeCyxTbd9eFyYI X-Received: by 10.176.8.218 with SMTP id o26mr5027050uaf.77.1520849597951; Mon, 12 Mar 2018 03:13:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.170.7 with HTTP; Mon, 12 Mar 2018 03:12:57 -0700 (PDT) In-Reply-To: <9f197147-c050-dd70-23ea-ec880d205201@oracle.com> References: <1520802470-17374-1-git-send-email-s.mesoraca16@gmail.com> <9f197147-c050-dd70-23ea-ec880d205201@oracle.com> From: Salvatore Mesoraca Date: Mon, 12 Mar 2018 11:12:57 +0100 Message-ID: Subject: Re: [PATCH 1/2] net: rds: drop VLA in rds_for_each_conn_info() To: "santosh.shilimkar@oracle.com" Cc: linux-kernel@vger.kernel.org, Kernel Hardening , linux-rdma@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Kees Cook Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-12 8:06 GMT+01:00 santosh.shilimkar@oracle.com : > On 3/11/18 2:07 PM, Salvatore Mesoraca wrote: >> >> 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 >> --- > > Thanks for both VLA fixes Salvatore. > > FWIW, Acked-by: Santosh Shilimkar Thank you very much for your time, Salvatore