Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2423607pxa; Mon, 3 Aug 2020 16:07:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFHO8J5uD8biMGQelfV9Qb/bljq5hGdIlv/NH7hQRJG00JYUeSFVs63Et1//C6T4/2Hexk X-Received: by 2002:a17:906:c799:: with SMTP id cw25mr19915379ejb.439.1596496033390; Mon, 03 Aug 2020 16:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596496033; cv=none; d=google.com; s=arc-20160816; b=GAIx3WSF+Xu+kcVeIbVshkRprs2lXRQC/Rqkz2W6JL2rQG42hm0Y7h2NEpvO/VyTVK hk4zXh5ruDX1qX/qOomY3xSQezZGJwvKvT1LfcYv4OWVvyZnMeJIKSk52E/mHkWdGin7 CNirYpYLGTH8b8KYyJ18X9P7mpk26evJrLgNepja3gCozLAUf9cYJhdnNzyMIrDZZJyd /tYG05gg4pP5Le0vQiWeL5pgHcXc0NDJYM3orentL6A4DT5n9JP35sb/x+i/F4YIEG5t QN+wCf6XnMCtygY3I5wEK3W3QhPoxGg6nj6WWCeAkJ4BD9/u3XaPKvth5f5xgTcWYe0a YCDA== 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=wAUE6jUn5mAwPKG/Q4g9vNtYtEutYsrwV5EW4m6aKOU=; b=sJiCgNeUwqf+q/U3j6xEFBxC/0EUBiTOJH/bck4TDekljiK8nuH6QboJhUXu0GaUBt csjBREJNJP2Jsk2f6o4DX9+Zq7zjOGRBY7rM8FSOduzko2JJz5BduXKySpnIulC0IvQS eBWEdn9Qu5KS9AlrCRoWaVgA7UvcpAgEBKrPVB2Oo8pCGLsjbEBIfAoTJbmLJpkIdpyP iFz8Y9m6YDABg7RufWQ/zrcTe2zXXr6AACe3kt6eEqdY9dcKgHfU7Rr+soZVjNoZXI1I Q0nmZ7APWvhVblz/TodNjR49+EU3q/csORNA0upkf5KNdCSMRTdwA3Js4iZwJIlzYOnb /klQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=aQPbnrju; 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 ly24si3288130ejb.349.2020.08.03.16.06.51; Mon, 03 Aug 2020 16:07:13 -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=aQPbnrju; 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 S1729028AbgHCXGc (ORCPT + 99 others); Mon, 3 Aug 2020 19:06:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728601AbgHCXGa (ORCPT ); Mon, 3 Aug 2020 19:06:30 -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 2EBC9C061757 for ; Mon, 3 Aug 2020 16:06:30 -0700 (PDT) Received: by mail-qk1-x744.google.com with SMTP id j187so36750662qke.11 for ; Mon, 03 Aug 2020 16:06:30 -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=wAUE6jUn5mAwPKG/Q4g9vNtYtEutYsrwV5EW4m6aKOU=; b=aQPbnrjunrUlMKPJZCkOu9GiuwLThf4AAYXaSayDvpYZIe0S0J5kWgrEUjiDBH9If6 Nk9QNCh3nxu8CXdo+xB/HLA8CehJ2h3vX8mFXWeKtG4Ehnv/lG4XUFRHkTOmDmx2Gu+t isoDrdskWg1Yq4JaJ2gyFOMQASXHDC3AOHQFV8jXqTkjjMH9OISCb5l703LpOA/etz3n Odi5KMRaQBfXsQRPGtsPxY+h2Mu3CS08N6pHNkSCakHEE7/ei6ZPcuVPeLMgC98An320 u+suEZDSIIjWB+8Yuby/tpgOMJBQQty/fmvjkfvWZZTaQmoN4l3AusKGnGnuiBnLxtgp mMmQ== 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=wAUE6jUn5mAwPKG/Q4g9vNtYtEutYsrwV5EW4m6aKOU=; b=c3t3WGtHCI8ffVMxnlTfg0m0PqBnJnrXiGsxopIsg0apQuh/PBf//X2PU/DNxr0Bov l3Lm8ezOslxaf/0cygwq2BssjxoudtdCvZpuoapzG6Qep1VKUmH56RU6Qvwl+KXNAO3w 1RFtX0ChXc//MKSK3QqVt6aTnLVHpFesQawARkn3avxKNn1OffmKqwgTUfi5QdvT2bOb e7Gc8NiV7br783BOE+oYlc33oZN7scTDE+ljNkOqYah+zjVWPrmYHKh/Evy7k1CJHfWK afTzlfbgIYguMfU+mJaCwnTJZAjqMOprQr7iKBLHyABnJifNLdm4x6BjPx7sNpXhyYi5 gDWA== X-Gm-Message-State: AOAM530TfrKFa1O1D0Q8ImDyBBROJ1U+6pMkPM65bmr3jZhSLAMWCFj1 yoSYYyQRtFPdfI0QbDCan+EkNA== X-Received: by 2002:a37:649:: with SMTP id 70mr18613154qkg.318.1596495988988; Mon, 03 Aug 2020 16:06:28 -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 9sm22473777qtg.4.2020.08.03.16.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 16:06:27 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1k2jXH-0039ha-72; Mon, 03 Aug 2020 20:06:27 -0300 Date: Mon, 3 Aug 2020 20:06:27 -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: <20200803230627.GQ24045@ziepe.ca> References: <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> <60584f4c0303106b42463ddcfb108ec4a1f0b705.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <60584f4c0303106b42463ddcfb108ec4a1f0b705.camel@perches.com> 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:45:40PM -0700, Joe Perches wrote: > 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. The kernel already relies on a lot of C11/C99 features and behaviors. For instance Linus just bumped the minimum compiler version so that C11's _Generic is usable. Why do you think this particular part of C11 shouldn't be relied on? Jason