Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp518008pxa; Fri, 14 Aug 2020 10:08:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlK24C9N65KVl1fdjbN4eMQdWN9WzwNS06T0gsHjgKIeniL7/HGPIlhz+MOSACoUvTe4SW X-Received: by 2002:a17:906:7f05:: with SMTP id d5mr3296800ejr.122.1597424902216; Fri, 14 Aug 2020 10:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597424902; cv=none; d=google.com; s=arc-20160816; b=gd8G6PRTKivW2vsFKPJrezGD+JW2PJElaZDl9cliqjHg+D7A64zIENTBwkTTWi6/Bh lZk5DEvOwt4f0gry8wTOfEmgxAbImfHOwmB4MWFmQ5oBVOuG4dBFpyxPoVrw8jCEfK3w zMZ3YCPip0iM1QX9cfCAasUijnUdUy3A6GrfKgs4hD2BAAbWFrRo3Mj+5pBclcAusL9k I+R66nsvJa+Q54PFX1GdZBZT7SPHVy/AkTSrVdnIHHdeq8BFLaP1CQii4IjgCCDl67cB LdT1Q2O6j/CnqtH/UDQ+U7AzCE5QPC8nuYZhWft5V4ux+G40nhbo1huJ7AvmzfHXV3Yv MQGw== 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=9dxlpovzJD+TOEGVVjsD+xHktzeJbFiQKOPQEqkZM9M=; b=ghFOFUSu8kjgCEDp+DrlvYM/oSMfiawh6SxHrgoXRmxF9Uc7fC9Yb1KceNIf2KdNbq +f0C8eqNiiDQBg9G1UWM5s3RGd42eVhD+UIphni1vmjxNJfLcKmIDr1VrjaOEG7c/yCD Fkp6JwUaRZseX720lxnG9+qnxl4IucJn1LnqrygBPb5PgppKbDNS/Lct2wNj/qR2pnYX yo0eqygKsUbEZw3AXimnrnvKX4+0ViKXerhWKfcDY4W0qryR7mbZVgtopTZpxwOoL603 R7Ma2fcnde16TmUmABamtA+Y187kJIp1H1zQRyWi/AV6nOiRGahLEWKjYLYcSJRUmrvi IetA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=SAuPo0kB; 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 j20si5570785edr.321.2020.08.14.10.07.58; Fri, 14 Aug 2020 10:08:22 -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=SAuPo0kB; 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 S1728360AbgHNRHN (ORCPT + 99 others); Fri, 14 Aug 2020 13:07:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbgHNRHL (ORCPT ); Fri, 14 Aug 2020 13:07:11 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D98BC061384 for ; Fri, 14 Aug 2020 10:07:11 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id x12so7454797qtp.1 for ; Fri, 14 Aug 2020 10:07:11 -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=9dxlpovzJD+TOEGVVjsD+xHktzeJbFiQKOPQEqkZM9M=; b=SAuPo0kB4++laPCsa/UJIFJ7sqnHBPnVC3kGXEza9f04NT29/1K9uJRiw/r7EK5U5u zO/yYdx38sU0we9d3cmvxhWEZKc5X6nwQ/XjLLeohAaIKY06PuBJaqR1trbDdIYnsGTH 08eXLh8G+WR8e7CRlVIWWg1gEoZlYpFZ7hcOUzARI4KKmlviDtCF6F18vHxsBasvE2t6 wAfTnGKPlE22dFrFIEH3weBYO2fU04//eTyCHDLLU0FvqwcgyhvTr+Y77w5T9pNVui0I fqiFrISZhNZ6ri+OWInsJI2CF2gs+c3eTR46kGxaCeZCwXLm7ay2e+mDwN+n2xutul2m 3UYQ== 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=9dxlpovzJD+TOEGVVjsD+xHktzeJbFiQKOPQEqkZM9M=; b=nDyTYMzc8ecThSHhs4Z7TR0CiB52+WDxevDTIUPxYy3aEbkO4NfTO+J0ivaEuEQolQ QKADG5jZlxkuaXA+x4hMGz0jZc9GqMllZJ9swNIKCvpz3aNnoIqo6jX8PwIPifQ1f8rd j8/kLeiwQjXcDua29PpfR2N2qY4t0ZgW8QOJV1ELtJLwgtGftOLtp5XXguJVZ6U7HjuE 8ad9dzRD8khwRvlnYQftPzfc5m4QHL8qcS/unZCU+D+SgqpfLVHqHlHeT8wuKOcECyHn LdhHxhN9ywhfnjgjFw7LZuOuGyNP+2RigRdQlfubWz0VskGukyRWAWfFpU9dc9HvzUvb yuAw== X-Gm-Message-State: AOAM531nEQ0qjzPVx3vB/KSwg7kO8k54Lud+mk1gMGSZCz+YY5tl5py3 HnqOuEfCmZECf/4byiDMoOw19A== X-Received: by 2002:aed:33e7:: with SMTP id v94mr2860210qtd.18.1597424829705; Fri, 14 Aug 2020 10:07:09 -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 x29sm10363864qtv.80.2020.08.14.10.07.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Aug 2020 10:07:08 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.94) (envelope-from ) id 1k6dAZ-006l92-QG; Fri, 14 Aug 2020 14:07:07 -0300 Date: Fri, 14 Aug 2020 14:07:07 -0300 From: Jason Gunthorpe To: Jack Leadford Cc: Joe Perches , 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: <20200814170707.GV24045@ziepe.ca> References: <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> <20200803230627.GQ24045@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 Sat, Aug 08, 2020 at 03:57:33PM -0700, Jack Leadford wrote: > Hello! > > Thanks to Jason for getting this conversation back on track. > > Yes: in general, {} or a partial initializer /will/ zero padding bits. > > However, there is a bug in some versions of GCC where {} will /not/ zero > padding bits; actually, Jason's test program in this mail > https://lore.kernel.org/lkml/20200731143604.GF24045@ziepe.ca/ > has the right ingredients to trigger the bug, but the GCC > versions used are outside of the bug window. :) It seems fine, at least Godbolt doesn't show a bug with that code. Can you share the test that does fail? This seems like the sort of security sensitive bug that should be addressed in gcc, not worked around in the kernel code :\ Jason