Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1652474pxa; Sun, 2 Aug 2020 15:55:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbnZOHrdOFgJByQ/909rUnNKdjCx+ipRAs50zwBw//SdH43I7VvPWVXLcxRhqIagA3Tbvt X-Received: by 2002:a17:907:444c:: with SMTP id on20mr14736314ejb.77.1596408904329; Sun, 02 Aug 2020 15:55:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596408904; cv=none; d=google.com; s=arc-20160816; b=ToBHRSRSDuXQAR67dwllps5LZhoyw0n+52HylwfRTL/3aclHFlvQoJm0htD5hwGMUb Cx743VAvWwnMk10sScFE5/0uqtjPqiSwkVIBZekukKBRYUamZjV9x0Yes9KyknfjcT2M Fru27rb7OWxCr437Wy9GNXL+hOQs0G0z5DmVD8+5Gm2JhURHT7HabMx3FxC42ekoJzfr F3FlYKt5U4/p9WukeZxWRrcSmJxaD1OBcoAP5Ks/Mb/YV/doJ+PptD50Z0xmWxZYbkAh aDy7lI5nd4m0uV7zA4dnxVP26eIZ17x1yBn5fQvninCq33Upu2Slgv8xasqPJWBfx2OM Jp8w== 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=qCJfMTjuET2Db/u850M3YBqxcwFwJkS0QiWdyXCpOjs=; b=n8P1j+Ijuy3P/qmDppziU5Ya+Eq2UgU0VLA/uaPOJfJ6DGLAQMr/vYgSaSEBwpr/na wqnB4hZJy6GKCkPQc+e0od+HtUk23//n9k9OkG0dBrmU3TFg1z+kwkQpv3FtglEwT0NA UWlVeMohmQrB/UxlKcEF3esl5ynDeqHxjVX3Bi+dqV0lUmlv6SnEzz5e+ANIvLF+j2C5 GcS3UH77SjqB81z6ksB3ZE5fEtTr3TYwf7HrDSSsdx8Bbg9PQ8IBpx8iXm/iSkzOtk5L FT+3Dr1Orm6MNqLb4uW1y3aln/hJ9shY68haIc755Cm55IXLdrAMngc9KOuXnGQq7E2L Xj1A== 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 x22si6643642ejv.378.2020.08.02.15.54.41; Sun, 02 Aug 2020 15:55:04 -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 S1727844AbgHBWpp (ORCPT + 99 others); Sun, 2 Aug 2020 18:45:45 -0400 Received: from smtprelay0225.hostedemail.com ([216.40.44.225]:40988 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726947AbgHBWpp (ORCPT ); Sun, 2 Aug 2020 18:45:45 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay02.hostedemail.com (Postfix) with ESMTP id 198F612E2; Sun, 2 Aug 2020 22:45:44 +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:1539:1593:1594:1711:1730:1747:1777:1792:2307:2393:2525:2553:2560:2563:2682:2685:2828:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3352:3622:3865:3866:3871:3872: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:13019:13069: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: paint93_0401b7726f98 X-Filterd-Recvd-Size: 2258 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Sun, 2 Aug 2020 22:45:41 +0000 (UTC) Message-ID: <60584f4c0303106b42463ddcfb108ec4a1f0b705.camel@perches.com> Subject: Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get() From: Joe Perches To: Jason Gunthorpe Cc: Leon Romanovsky , 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:45:40 -0700 In-Reply-To: <20200802222843.GP24045@ziepe.ca> References: <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> <20200802222843.GP24045@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:28 -0300, Jason Gunthorpe wrote: > On Sun, Aug 02, 2020 at 03:23:58PM -0700, Joe Perches wrote: > > 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. > > We just went over this. Yes there is, C11 requires it. c11 is not c90. The kernel uses c90.