Content-Type: multipart/mixed; boundary="===============8817373252317171827==" MIME-Version: 1.0 From: Jason Gunthorpe To: kbuild-all@lists.01.org Subject: Re: [PATCH vfio 08/13] vfio: Introduce the DMA logging feature support Date: Thu, 30 Jun 2022 10:48:24 -0300 Message-ID: <20220630134824.GK693670@nvidia.com> In-Reply-To: <202206302140.XlWYhlXa-lkp@intel.com> List-Id: --===============8817373252317171827== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, Jun 30, 2022 at 09:40:01PM +0800, kernel test robot wrote: > 1636 nnodes =3D control.num_ranges; > 1637 if (!nnodes || nnodes > LOG_MAX_RANGES) > 1638 return -EINVAL; > 1639 = > > 1640 ranges =3D (struct vfio_device_feature_dma_logging_range __user *) > 1641 control.ranges; Things like this should always use u64_to_user_ptr() Jason --===============8817373252317171827==--