[PATCH v3] nvme: fix memory corruption for passthrough metadata

Christoph Hellwig hch at lst.de
Tue Oct 10 23:36:15 PDT 2023


On Wed, Oct 11, 2023 at 10:56:44AM +0530, Kanchan Joshi wrote:
> > Fixing just a subset of these problems is pointless.  If people want
> > to use metadata on vendor specific commands they need to work with
> > NVMe to figure out a generic way to pass the length.
> 
> Do you suggest that vendor specific opcodes should be blocked here?

We have to block everything that we can't calculate the length for.
Otherwise you still leave the hole open.



More information about the Linux-nvme mailing list