patches.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: "iommu@lists.linux.dev" <iommu@lists.linux.dev>,
	Nicolin Chen <nicolinc@nvidia.com>,
	"patches@lists.linux.dev" <patches@lists.linux.dev>,
	"Liu, Yi L" <yi.l.liu@intel.com>
Subject: Re: [PATCH] iommufd: Reject non-zero data_type if no data_len is provided
Date: Wed, 21 Feb 2024 09:33:47 -0400	[thread overview]
Message-ID: <20240221133347.GT13330@nvidia.com> (raw)
In-Reply-To: <BN9PR11MB5276C5091996B828101A78AF8C572@BN9PR11MB5276.namprd11.prod.outlook.com>

On Wed, Feb 21, 2024 at 07:11:45AM +0000, Tian, Kevin wrote:
> > From: Jason Gunthorpe <jgg@nvidia.com>
> > Sent: Wednesday, February 21, 2024 2:44 AM
> > 
> > Since the current design doesn't forward the data_type to the driver to
> > check unless there is a data_len/uptr for a driver specific struct we
> > should check and ensure that data_type is 0 if data_len is 0. Otherwise
> > any value is permitted.
> > 
> > Fixes: bd529dbb661d ("iommufd: Add a nested HW pagetable object")
> > Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
> 
> Reviewed-by: Kevin Tian <kevin.tian@intel.com>

Applied to for-rc

Jason

      reply	other threads:[~2024-02-21 13:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-20 18:43 [PATCH] iommufd: Reject non-zero data_type if no data_len is provided Jason Gunthorpe
2024-02-21  7:11 ` Tian, Kevin
2024-02-21 13:33   ` Jason Gunthorpe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240221133347.GT13330@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=iommu@lists.linux.dev \
    --cc=kevin.tian@intel.com \
    --cc=nicolinc@nvidia.com \
    --cc=patches@lists.linux.dev \
    --cc=yi.l.liu@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).