[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <de6d6bd8-889f-45d6-b45e-7ed8cac3e54b@linux.microsoft.com>
Date: Fri, 4 Feb 2022 16:31:17 -0800
From: Iouri Tarassov <iourit@...ux.microsoft.com>
To: Nathan Chancellor <nathan@...nel.org>
Cc: kys@...rosoft.com, haiyangz@...rosoft.com, sthemmin@...rosoft.com,
wei.liu@...nel.org, linux-hyperv@...r.kernel.org,
linux-kernel@...r.kernel.org, spronovo@...rosoft.com,
gregkh@...uxfoundation.org
Subject: Re: [PATCH v1 0/9] drivers: hv: dxgkrnl: Driver overview
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
Powered by blists - more mailing lists