[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250103221222.GA10177@bhelgaas>
Date: Fri, 3 Jan 2025 16:12:22 -0600
From: Bjorn Helgaas <helgaas@...nel.org>
To: Hans Zhang <18255117159@....com>
Cc: manivannan.sadhasivam@...aro.org, kw@...ux.com, kishon@...nel.org,
arnd@...db.de, gregkh@...uxfoundation.org,
linux-pci@...r.kernel.org, linux-kernel@...r.kernel.org,
rockswang7@...il.com, kernel test robot <lkp@...el.com>,
Niklas Cassel <cassel@...nel.org>
Subject: Re: [v5] misc: pci_endpoint_test: Fix overflow of bar_size
On Fri, Jan 03, 2025 at 04:02:00PM -0600, Bjorn Helgaas wrote:
> On Wed, Jan 01, 2025 at 11:15:09PM +0800, Hans Zhang wrote:
> > With 8GB BAR2, running pcitest -b 2 fails with "TEST FAILED".
> >
> > The return value of the `pci_resource_len` interface is not an integer.
> > Using `pcitest` with an 8GB BAR2, the bar_size of integer type will
> > overflow.
> > Change the data type of bar_size from integer to resource_size_t, to fix
> > the above issue.
>
> Add blank lines between paragraphs.
>
> Looks good to me.
Apart from the kernel test robot error [1], of course. Obviously that
needs to be resolved.
[1] https://lore.kernel.org/r/202501021000.7Cwcopot-lkp@intel.com
Powered by blists - more mailing lists