Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1644447pxa; Sun, 2 Aug 2020 15:30:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNxgbpO5vPwtE5fog+Xq92P+Lo0SXbkf86J6IRh0YkOHGGorR2PyCzF44qSDhFJsQNCE5C X-Received: by 2002:a17:906:c29a:: with SMTP id r26mr13643005ejz.153.1596407456640; Sun, 02 Aug 2020 15:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596407456; cv=none; d=google.com; s=arc-20160816; b=Lewo7MLCx4GjeU4CMlxcVg5CAUsGDw+AFxelhxH0BfiIXR/fUTfogGMxrk2Ur8+10h G4hWafXIOzmgZZZLSJONJHiMhxZPuyRSMA9y3/JCzcHm3b5VkBiK4C/kSs4PCg+KKBlE AkdOH/ARmwIaNbRmvaLH9u/4f83tDeQK0Hx6oLkBXVvLpns8JjC9NJiveozUrGGsx7Gr Ul6TuDHID99/Z2zkxWCFWwWMJH3JjiikaP23oAX13s23+nUAvXRCxaP0PKEHnc6WzzXd aweWjcditVAJTL6K/tgUUlZmG2k1JB74fjRTkfTZCpef4fA6neCyvLWu2pYDYG5+Z0mK nXFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=X2bYgTX4K3EZYIeQDAN4hcSO5LdesUSG+q6mG9kn4ys=; b=ocA+1odKRvFX1qaCcYKZrezi4DDtPCyTmYEkpw6YkYKlnMeAQo/hbSYdmIYfy3Cy6d 4prQLFhaEJGEuykifsjoaCsRVcDp9mpUoB5S4HQkFVjfuEWd68EdDQxVyukKeCtfdcfv omxP/38k0pc036TOZU5H+FaiUzO89qgNmahgV3AXSihh+aiscUoG95I7V8DsiIKY4diA EwKjwwh1ludSXSpdc97wyNvbHejoNCFeomu6godZi4SKWiqTkhp4+yWebomODPJ1fF+B 619gGrdCyVIwN80Cnroiqd+6Ve5IEmMZwvj0g26Sq76pgtLbwsveFoTShwMDXk2PwyO8 yZzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="lIf6/YNu"; 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 se5si8727797ejb.744.2020.08.02.15.30.34; Sun, 02 Aug 2020 15:30:56 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b="lIf6/YNu"; 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 S1727860AbgHBW2q (ORCPT + 99 others); Sun, 2 Aug 2020 18:28:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbgHBW2p (ORCPT ); Sun, 2 Aug 2020 18:28:45 -0400 Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E483C06174A for ; Sun, 2 Aug 2020 15:28:45 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id m7so1515115qki.12 for ; Sun, 02 Aug 2020 15:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=X2bYgTX4K3EZYIeQDAN4hcSO5LdesUSG+q6mG9kn4ys=; b=lIf6/YNuL/fGjujaZaoNWqjOsE+V2SxqHpXstZJx+0q2hXtLpUFUTz5JX8XdrjIX84 nHNBhu4B25HP4PjS2WRfH/wBVJnp15ux7/z2PJT4SEWunVT30EfxZztzctwXk7QW0gTo 9Nl0wqW9uhY/cOlHKkY2bAxXtZ8oU22wXRgsHJkYugvcXjiHns5QhPw+INH4KWhRatZ0 Zb9IgHQCzuejMB4jCfe0cnBMXT0o2vTT+BoP48ROWLDHm99aMCb15cx9yTnjG0xA+izp 1a2shGvPVx/c3qIncZKuA2cCSdiHnxQ4E8gu8ODnEPo0jl+X8CW+q5BGj0a6F6cDfN43 G5CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=X2bYgTX4K3EZYIeQDAN4hcSO5LdesUSG+q6mG9kn4ys=; b=kqht0fDuoB7x4rIQXNmxyiw+iU96QJxfgLI+vICz4lF3UTowuCUmJzKafPdB7xb5YZ GDc2RbaJLGgaV+eAZpeaFHYXObtr06PkK3FMIsG9Y/iA08s2Rjz08vlkkufjVhBVSctv kyZywnVzj416MsXt7am8nEmSBMaBJZHb2VIj7UklQJqOA+RcMRrL5hPM7JGs0WDVfDHW pWEhNK7bfgup91EHL6HEkkfMS/DbZLtHhfGTdb47V+EvGbmndB1fxDYMljtwro0we4JI bUWmvB8EkTllmzfy46HcTZczo+YeMyLDCqdj6hFI01V8aLG3hVnhAdfC4Tf4hWezeJ8C 6Sbw== X-Gm-Message-State: AOAM530Yr5SFGMiux8WwfjIWsGmP8yJH0X1C0d7DHrw7bX2NV0Q+EmbE 8YlsMYUmaeFfxo/prJ5MHT9CoQ== X-Received: by 2002:a37:4c9:: with SMTP id 192mr13359614qke.125.1596407324789; Sun, 02 Aug 2020 15:28:44 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-156-34-48-30.dhcp-dynamic.fibreop.ns.bellaliant.net. [156.34.48.30]) by smtp.gmail.com with ESMTPSA id p33sm18333547qtp.49.2020.08.02.15.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 15:28:44 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1k2MTD-002q9U-LB; Sun, 02 Aug 2020 19:28:43 -0300 Date: Sun, 2 Aug 2020 19:28:43 -0300 From: Jason Gunthorpe To: Joe Perches 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 Subject: Re: [Linux-kernel-mentees] [PATCH net] rds: Prevent kernel-infoleak in rds_notify_queue_get() Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Jason