Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp347597rdb; Thu, 5 Oct 2023 07:42:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE6h9TDKPNtxreAmJLLMEOJqXrEY5fE15ktNk3avQ4hseoa/lDgEwLIm1JXa1wnmsAErZNj X-Received: by 2002:a17:90a:6a8e:b0:26d:416a:d9d2 with SMTP id u14-20020a17090a6a8e00b0026d416ad9d2mr5183593pjj.45.1696516951652; Thu, 05 Oct 2023 07:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696516951; cv=none; d=google.com; s=arc-20160816; b=RfNtucDJs38tJKGbGRePN4tU9wTfA+jI82DUMfn/T2ZONFN14FWU7tGtozxqX3l6bS b5xgtkG3KfaGg9Hnr+gk0njdram3FDLnvTUufnK3t8O58JMrAUpaNtLGQht59izq3AVD vii3r+bNHEVWHO1pMg/tWVcEuZOrbS3D1Jmc+zYz8AMJsh06GDKo9IL2AjavWzBrbds5 w/waE/EkrOzkKxs2EuTRna0lqsrKreFB4G92KRfkScl14fcn7p0ORIAu8CqjJgi19C4W kHhwHePyoNmIk8Ti5I5iooyeLHimJj63XV+vdPGxaL6/247VsrX0uvkNVIaosPM8VpEs A0nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OCvbQiGveOUtzqltIUj0xG5Uca6sdhkG6em01QzDKWk=; fh=/9QhiiVnblW/5rlU2/j7t69FkF7DE6iP4FbaLAIYoOE=; b=FrN6znlT8dSZroJnBoXfN/ifbCL13mGPsWajuhDFoQr2KxbVEEN6ltuOj5bvDxJPd5 6PLPA4XJTcRbSbY79kp4zs/+oBa+0ky2Bjsny9FDk8dJy92bWPdD1+AXxrcHfhU8xsvp BbsgAosVz/5zRxRoY/+Ytt+6sHmoZX7hm2byxJRXzIHdqVskuTMMOa8GVfxWiCELq5g/ Fm9RiyHVWJlF+jQWLUsxZt92cVd680Wf9BCrw/ZQFum220fW/jfZt82yVlEZQ9bbpz78 0Kz+me4GqS2bA0CS+8NDNKvbQhqBlwkfU5g9nH27FNC+BI0AQcK6fSBqiu0HXzrMq+Sn jn9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HHqX91Ju; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id lb10-20020a17090b4a4a00b002748c1bbd79si4240951pjb.6.2023.10.05.07.42.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 07:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HHqX91Ju; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B07D782F05E2; Thu, 5 Oct 2023 07:42:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239182AbjJEOl7 (ORCPT + 99 others); Thu, 5 Oct 2023 10:41:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234136AbjJEOhn (ORCPT ); Thu, 5 Oct 2023 10:37:43 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC6894E358; Thu, 5 Oct 2023 07:03:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FFFCC2BCFE; Thu, 5 Oct 2023 10:27:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696501633; bh=4fxCXTLyJSEnYgLs6b+JCuhTnShTf/CIKp0OZexQrj4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HHqX91JuhSpBSMK2o5ESJ0CBb18LLzCffYRKge9Capj2sJtPUdKCWOaxUiEofWFwy YXYbGFcxtC72+SdtbwVaoy04zAaGLRi5fcM2EwOsKJDm8EESrPXXCLBrKNo9yC3Sf6 J/H2XeTyxw7J+SIcHLdbKmLBsKxTOxNeiNxlLrWI= Date: Thu, 5 Oct 2023 12:27:10 +0200 From: Greg KH To: Nuno Das Neves Cc: linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, patches@lists.linux.dev, mikelley@microsoft.com, kys@microsoft.com, wei.liu@kernel.org, haiyangz@microsoft.com, decui@microsoft.com, apais@linux.microsoft.com, Tianyu.Lan@microsoft.com, ssengar@linux.microsoft.com, mukeshrathor@microsoft.com, stanislav.kinsburskiy@gmail.com, jinankjain@linux.microsoft.com, vkuznets@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, will@kernel.org, catalin.marinas@arm.com Subject: Re: [PATCH v4 13/15] uapi: hyperv: Add mshv driver headers defining hypervisor ABIs Message-ID: <2023100517-rogue-gopher-e70f@gregkh> References: <1696010501-24584-1-git-send-email-nunodasneves@linux.microsoft.com> <1696010501-24584-14-git-send-email-nunodasneves@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1696010501-24584-14-git-send-email-nunodasneves@linux.microsoft.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 07:42:30 -0700 (PDT) On Fri, Sep 29, 2023 at 11:01:39AM -0700, Nuno Das Neves wrote: > +/* Define connection identifier type. */ > +union hv_connection_id { > + __u32 asu32; > + struct { > + __u32 id:24; > + __u32 reserved:8; Meta-commment, I don't see anywhere you are properly checking that all of the "reserved" areas of these structures are actually set to 0 when they are sent to you. If you don't do that, then they are not really reserved at all and can never be used in the future, so properly check them please. thanks, greg k-h