[PATCH] nvmet: Do not check for sg_cnt being zero for read/write commands.
Christoph Hellwig
hch at lst.de
Wed Feb 8 03:54:30 PST 2017
On Wed, Feb 08, 2017 at 11:43:23AM +0200, Sagi Grimberg wrote:
>
>> Except that we currently don't verify the data transfer in the SGL
>> matches that in the command. It's been on my todo list for a while,
>> so maybe you can take it off my plate first before we'll aply this
>> patch.
>
> Any reason not to take it as is and add the sgl validity check
> incrementally?
Because that would allow a bad actor host to crash the target easily.
More information about the Linux-nvme
mailing list