From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9EBB2C55179 for ; Wed, 28 Oct 2020 23:23:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3E34D207BC for ; Wed, 28 Oct 2020 23:23:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="gkFHJe+k" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390313AbgJ1XXk (ORCPT ); Wed, 28 Oct 2020 19:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388987AbgJ1XWP (ORCPT ); Wed, 28 Oct 2020 19:22:15 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A569C0613CF for ; Wed, 28 Oct 2020 16:22:15 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 13so750570pfy.4 for ; Wed, 28 Oct 2020 16:22:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=XZwWBaJ1YP4eUG0jbcZ/VfZJQEUP/FvDuE+Dcr6WVrA=; b=gkFHJe+kUFXAxf/8vOsy2x4sDIItYYYD9odc8xSFN7m2g8lYwKR38kgfTf8zfvYvs7 yBKIMBqXPuX18tqVHBX3qCSclcuf06y4SGir3XllY4gvU+rJ7oabXjMnWHBu3qRHCt+g XDQ0BDU+YDLpbohWX+lRIQe1zsidFRDvJAehw= 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=XZwWBaJ1YP4eUG0jbcZ/VfZJQEUP/FvDuE+Dcr6WVrA=; b=Lj0tqKIFMDiu2WtO0lLs56c7YTjjUgWYnHYIFeyLRtViOYdaUcQY/iqq5ZIG5/RRGq nRuiopHN1T3B0IRpeItJWZLYj4bntJTDz1KdPhxeBKk0pNkFl+rGsRM4KAepeqJCjZwO 8Hf+90lT5zXZfsHSIbpVBClfh9/BVRWXX2KYyeUZJJ4W5WM5p6QNItEOLj8PFtNIDojv ALlkHCR6dn1hTYqVR1aTNIzDJcfVTs8joRpgq5PwEvEGk6vQBoHOsqRBo7kLtDOlv8Mo nAIJt496NJJk8p38ory+8kkz9V8vDuIAu7xOcUKno6Xnul6vXNdS5yMRpEkI/3cT4VO7 9rZw== X-Gm-Message-State: AOAM533EWB6fuYiYDPBSd52QjjkkiAcqFg2/+Nw99uGynVDGKFZCDgrx mAkAUi5S0aNJNhLuP/G47GM4Ow== X-Google-Smtp-Source: ABdhPJzIxT8kqv3hOAn/eutFdfJq4DAebLsNkfJ0qK4xV8rTZ+MoJFaBn7qxZgXgYmjQNvnQLalLqg== X-Received: by 2002:a62:e104:0:b029:152:4f37:99da with SMTP id q4-20020a62e1040000b02901524f3799damr1294359pfh.17.1603927335230; Wed, 28 Oct 2020 16:22:15 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id 16sm457419pjf.36.2020.10.28.16.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Oct 2020 16:22:14 -0700 (PDT) Date: Wed, 28 Oct 2020 16:22:13 -0700 From: Kees Cook To: Thomas Gleixner Cc: David Woodhouse , x86@kernel.org, kvm , iommu@lists.linux-foundation.org, joro@8bytes.org, Paolo Bonzini , linux-kernel , linux-hyperv@vger.kernel.org, maz@misterjones.org, Dexuan Cui Subject: Re: [PATCH v3 15/35] PCI: vmd: Use msi_msg shadow structs Message-ID: <202010281622.40CB2D87@keescook> References: <20201024213535.443185-1-dwmw2@infradead.org> <20201024213535.443185-16-dwmw2@infradead.org> <202010281347.2943F5B7@keescook> <87blgmf3zj.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87blgmf3zj.fsf@nanos.tec.linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-hyperv@vger.kernel.org On Wed, Oct 28, 2020 at 10:13:52PM +0100, Thomas Gleixner wrote: > On Wed, Oct 28 2020 at 13:49, Kees Cook wrote: > > On Sat, Oct 24, 2020 at 10:35:15PM +0100, David Woodhouse wrote: > >> + memset(&msg, 0, sizeof(*msg); > > > > This should be: > > > > + memset(msg, 0, sizeof(*msg); > > memset(msg, 0, sizeof(*msg)); > > Then it compiles _and_ is correct :) \o/ ;) -- Kees Cook