Received: by 10.213.65.16 with SMTP id m16csp203653imf; Mon, 12 Mar 2018 00:08:12 -0700 (PDT) X-Google-Smtp-Source: AG47ELsEDcmvu/RpinSGumzKE+k9kqd0ojf5o69s5xiRFyfJshCHsImQvrxF0gzuCYcLoj9cWJw1 X-Received: by 10.99.185.77 with SMTP id v13mr5892874pgo.112.1520838492240; Mon, 12 Mar 2018 00:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520838492; cv=none; d=google.com; s=arc-20160816; b=ZSN+RJr24wdgEhHWAdFc4hnccAl/L5uDmfnFQP9wEwozyIfabjvSxeyMY5Sr9G6gEu xJZBFWAQ6bFm7v7uZAw/6et5K0BpF3xfRhi3aKRylEuou7T8QFedWRy+AO7b50rOdS5N RkFTam26ZY9WnPffXT611/gxZ1lrh5sd84LOByT14oDMDR0/TNurawY4Fuq+XbplxOZ9 sfx/jtDKz/VWb2vUX5iahSxMOROjvQce9A9P/uRIFkrDHymtikud0V8+VJ99SYUZbXMf NwZm2jTtZJITRpEk/FUUPw+GFhc3QIQMYi1Ssd0T0VvjgSfUwxH/RWJxMyo5VFas0AQU rwzg== 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:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=8wlAk3YOvUbRhzm+hjNOKR9cn9kr/vFGCjAGsscwrgI=; b=ldDoOBRzRDu4OUpC/p6xmrxHOhBeDRGiusytRqYlKa1SjEltKJTWbJRhLJf1RXn261 y8zO8HZUJRcEOIjPmiQ2vigMpfS/EwU/jh6wOa5OTrGba4dfxqtYLb2ePWY/iG89Nn/n JNpGR73OEuvbs7zzVtaoy2fblps56LcmP5z/KlLFnRvUPHqJzo500Ws0fDSLrxGRbk5D kWV7ZvJL38WDTnjqrn+gc8fiVnit1Thzmxp9P643Ow+/koBMaFOXwYQAdnZhRT18qIgM Fn1Nf09SBfyQ7DXsSYZbgJ1sBtlqD3H6A6a4R93F7+/ucEgBsl56HVM8XyKnGeHUf9gf e19g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=FapQJmAs; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a17si1213409pgn.429.2018.03.12.00.07.58; Mon, 12 Mar 2018 00:08:12 -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=@oracle.com header.s=corp-2017-10-26 header.b=FapQJmAs; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932686AbeCLHGt (ORCPT + 99 others); Mon, 12 Mar 2018 03:06:49 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:58478 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932397AbeCLHGr (ORCPT ); Mon, 12 Mar 2018 03:06:47 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2C76Po9023988; Mon, 12 Mar 2018 07:06:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=8wlAk3YOvUbRhzm+hjNOKR9cn9kr/vFGCjAGsscwrgI=; b=FapQJmAsvnnO3K7VnW32Nl6n5BLv46VxU1JRJyxyb4lkqB551hHjgLOuO6Y1La1NcbnB iLKLgTxKxsuWktW9BFOQ+Aju+FCVjuLwG0ZZLAs9kno8UpjyIK4NDQhdIxJQBh89zqp7 qWvxxvuNm6aFisfi8hjJE0IwXuVCrUSyAyH+VA5u7ZMaYevqG73XNfoKFVgvPv4zdPcl vAMTfdPbeI+ndqQlnBe0RlXITSJh0m2d53qfGeFE9C7kOf0DVCUpGzrAKu0rhAFm7Csp ukRG9jo3EIVqDS5ZGOwehjkLA2nNGeKdoPj+RTu1KtBPc4Ho/IW7THC7KB8sSDp7F4wJ Xg== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2gnkad0a7r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Mar 2018 07:06:31 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2C76UT4024139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 12 Mar 2018 07:06:31 GMT Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2C76UKB019694; Mon, 12 Mar 2018 07:06:30 GMT Received: from santoshs-mbp.lan (/73.222.9.219) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 12 Mar 2018 00:06:30 -0700 Subject: Re: [PATCH 2/2] net: rds: drop VLA in rds_walk_conn_path_info() To: Salvatore Mesoraca , linux-kernel@vger.kernel.org Cc: kernel-hardening@lists.openwall.com, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Kees Cook References: <1520802470-17374-1-git-send-email-s.mesoraca16@gmail.com> <1520802470-17374-2-git-send-email-s.mesoraca16@gmail.com> From: "santosh.shilimkar@oracle.com" Organization: Oracle Corporation Message-ID: <07a52b72-5ecf-2027-0e87-e16dc0a70d09@oracle.com> Date: Mon, 12 Mar 2018 00:06:29 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520802470-17374-2-git-send-email-s.mesoraca16@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8829 signatures=668690 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=699 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803120085 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- Acked-by: Santosh Shilimkar