Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5023208pxb; Sun, 6 Feb 2022 10:57:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwMpe5c4ShpFgGJuVfhyDGGx6vP95/nT2EiBRWkBq2uDZxa+3icd0vQsww7UTXnWw9PusXt X-Received: by 2002:a05:6402:2d4:: with SMTP id b20mr1434083edx.328.1644173859474; Sun, 06 Feb 2022 10:57:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644173859; cv=none; d=google.com; s=arc-20160816; b=KmQpfONcEwqor1Slr8CQVVan85/UidF0mlIeFpEtqebWqBQDZRqyByCVuPCbDTxhXY T5uO9ksphOfmpy+9DwHttpRClspUHO/QfIS4Lml7sjmxYAEtug1LSoT81FH06mkst2pp GHyzP9jMS+vLGvkGUIvlJUtZBMTaQFpmsawDbERGP1p+tBcRNGkX3uYc5t+0IYvt2RyP Fu2vNow5HLtTH53lC5nLH7m/+kCfcMEXLXrtyVKza/Cju92R67c89IbPfHdnB+uprH7v HVVHIj2mv9iOIUjs9mQs7GZGoCWKSfgQ1G2XikjbO4tgERUu2c5hjZdWGonOiFkImf5x AgtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=hu1H4uGZ0JEPq7xzJcNDhKMllfxHPdflVQYUNHmN5wo=; b=YS6/8aNtN9mIGHUzajTJ3dfW3BosAizj0i01YHlmcXd5jxhYujAKhePCNA/ZIu24tr TT3o8zBPg7x1ex/f4RNB6hzPTWphiXdcrfjWKDkaT/sFMUJUYH0y6uaSit3ezmpSuVlD v2ezmdhOmlBrNEPolUW8n5nQyzQnL/5xmNaXR/VPXNpQCOrvuC7iLDHA/y2hbIngfdnX 5kOs0ng2nlKybj5oSAqMeSFW7dHqPSzaOxe6mXnrP4vwyk+WWKGOWC5q0km7oufIiZ96 J77nkCFC4u8bsWpaWjXjGoD+ZG6cUWGbVOcR+QicV+Lp0lmkt7Qt9yjfC/pQnx6UkZrG QBLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=QPOBabXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11si6497571ede.200.2022.02.06.10.57.15; Sun, 06 Feb 2022 10:57:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=QPOBabXa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378772AbiBEAbT (ORCPT + 99 others); Fri, 4 Feb 2022 19:31:19 -0500 Received: from linux.microsoft.com ([13.77.154.182]:59046 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352482AbiBEAbS (ORCPT ); Fri, 4 Feb 2022 19:31:18 -0500 Received: from [192.168.1.17] (unknown [192.182.151.181]) by linux.microsoft.com (Postfix) with ESMTPSA id E3C7820B6C61; Fri, 4 Feb 2022 16:31:17 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com E3C7820B6C61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1644021078; bh=hu1H4uGZ0JEPq7xzJcNDhKMllfxHPdflVQYUNHmN5wo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=QPOBabXajrruzMbBRSBn/Kn7xuQkGiScEdYIXUdixSNT8M4v6Uv0EYbbCFchACF0l Pa3x31JZSYbVwBnNU/9xlpEYYchkDUw12IBBe350o6KMAAvZKGYAYZe2ijL4n6Z7/R IoviCnt47T4PdTGaVVLl6/ENfRBT7YeQ3qJLMr1Y= Message-ID: Date: Fri, 4 Feb 2022 16:31:17 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Subject: Re: [PATCH v1 0/9] drivers: hv: dxgkrnl: Driver overview Content-Language: en-US To: Nathan Chancellor Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, linux-hyperv@vger.kernel.org, linux-kernel@vger.kernel.org, spronovo@microsoft.com, gregkh@linuxfoundation.org References: From: Iouri Tarassov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/25/2022 4:27 PM, Nathan Chancellor wrote: > Hi Iouri, > > On Wed, Jan 12, 2022 at 03:39:13PM -0800, Iouri Tarassov wrote: > > > drivers/hv/dxgkrnl/dxgvmbus.c: In function ‘dxgvmb_send_query_alloc_residency’: > drivers/hv/dxgkrnl/dxgvmbus.c:147:16: warning: array subscript ‘struct dxgvmbusmsg[0]’ is partly outside array bounds of ‘struct dxgvmbusmsgres[1]’ [-Warray-bounds] > 147 | if (msg->hdr && (char *)msg->hdr != msg->msg_on_stack) > | ~~~^~~~~ > drivers/hv/dxgkrnl/dxgvmbus.c:1882:31: note: while referencing ‘msg’ > 1882 | struct dxgvmbusmsgres msg = {.hdr = NULL}; > | ^~~ Hi Nathan, I fixed the issue with the ioctls array. Regarding the warning above, it looks like a compiler error. I do not see where the out of bounds access is. I tried GCC-11 version 11.2.0 and this warning is not there. Thanks Iouri