Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1644593pxa; Sun, 2 Aug 2020 15:31:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHFi2Vekl/wZ3OoVbeOhhYiF8HrgFU85K8sgsowEc4W16m7nocMxVj/BmTFmwkHrmMefC0 X-Received: by 2002:a05:6402:30a5:: with SMTP id df5mr2163251edb.18.1596407475047; Sun, 02 Aug 2020 15:31:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596407475; cv=none; d=google.com; s=arc-20160816; b=FIQNiqYVA91iAkUJEsG53hq3614dmydSGI2yPCyITv7ohSDSXE06Qq4v9zyqI6T71P fBhxh0IGqCw/Aece3Re1sGm/3YkPe945kbchWIU17PCzNKrxNMbiJecawqq6gCPOmeNd WJkBXmbZ0Otz8VflcQGA4xxO5D6EOq1dEFsKey4UZ00gwxGauc7hKNeIR0wCcKI/Xgg5 l1q+Yg1/rdJ9bu4gYULPoZPrC60uA2IqCLtwkIjSxgMovXZckmGnhfhqCM31Y08bQasH v4OHMqKQWGN1fzVofJvstCOI+Yg0n3aYjB7XOySVVXWcHMqvhUUsx2xSux50NdufCAhE lbJg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=T+0uLy6iikOZfE/U9wnzIQeu2xWBMM8ZQDyYfXLGhy0=; b=RvbpZvy5Q5ruuD5BPIydd+r7dEb7TarY4XI0Qxt5tH0uwEsPAd93KXGjytAdIP4Xhb N6YMPjVfRGDf3Luf4gFoWe83ILMYw05dtkOM1txfvev0GBJyHA/XV1s1Em3sBd7jAD+e PMX2AyX1ZLhzQlMylIinIBRkUXuQasUCzZlOKNHQLtMOq+N6CP3RtnlW/Hi+zH4xWDiw rqiVArchjz5AjwPTInKcqGCNlUMfgoJfzIdng/ybl0kEn9qd3KNlYGYIu/qlV2wbkr7c tpVenZrYyD7M3J8ZYrbvivofgbUugrOaV0+OvoD5B23kBEI/u847QhTaVqJ2AEZpeKzE /d3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dj25si3750674edb.175.2020.08.02.15.30.53; Sun, 02 Aug 2020 15:31:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727091AbgHBWYC (ORCPT + 99 others); Sun, 2 Aug 2020 18:24:02 -0400 Received: from smtprelay0164.hostedemail.com ([216.40.44.164]:39722 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726536AbgHBWYC (ORCPT ); Sun, 2 Aug 2020 18:24:02 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 6B8211730850; Sun, 2 Aug 2020 22:24:01 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:967:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1537:1567:1593:1594:1711:1714:1730:1747:1777:1792:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3622:3865:3866:3871:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:5007:6119:6742:7903:9025:10004:10400:10848:11232:11658:11914:12043:12114:12297:12555:12663:12698:12737:12740:12760:12895:13069:13161:13229:13255:13311:13357:13439:14181:14659:14721:21080:21611:21627:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: taste53_3b1265f26f98 X-Filterd-Recvd-Size: 1940 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Sun, 2 Aug 2020 22:23:59 +0000 (UTC) Message-ID: Subject: Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get() From: Joe Perches To: Jason Gunthorpe , Leon Romanovsky Cc: Greg Kroah-Hartman , Peilin Ye , Santosh Shilimkar , "David S. Miller" , Jakub Kicinski , Dan Carpenter , Arnd Bergmann , linux-kernel-mentees@lists.linuxfoundation.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, rds-devel@oss.oracle.com, linux-kernel@vger.kernel.org Date: Sun, 02 Aug 2020 15:23:58 -0700 In-Reply-To: <20200802221020.GN24045@ziepe.ca> References: <20200730192026.110246-1-yepeilin.cs@gmail.com> <20200731045301.GI75549@unreal> <20200731053306.GA466103@kroah.com> <20200731053333.GB466103@kroah.com> <20200731140452.GE24045@ziepe.ca> <20200731142148.GA1718799@kroah.com> <20200731143604.GF24045@ziepe.ca> <20200731171924.GA2014207@kroah.com> <20200801053833.GK75549@unreal> <20200802221020.GN24045@ziepe.ca> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.3-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2020-08-02 at 19:10 -0300, Jason Gunthorpe wrote: > On Sat, Aug 01, 2020 at 08:38:33AM +0300, Leon Romanovsky wrote: > > > I'm using {} instead of {0} because of this GCC bug. > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119 > > This is why the {} extension exists.. There is no guarantee that the gcc struct initialization {} extension also zeros padding.