Thread (5 messages) 5 messages, 2 authors, 2018-06-26

Re: [PATCH 1/2] ata: Fix ZBC_OUT command block check

From: Greg KH <gregkh@linuxfoundation.org>
Date: 2018-06-26 11:38:07
Also in: linux-scsi, stable

On Tue, Jun 26, 2018 at 04:18:37PM +0900, Damien Le Moal wrote:
The block (LBA) specified must not exceed the last addressable LBA,
which is dev->nr_sectors - 1. So fix the correct check is
"if (block >= dev->n_sectors)" and not "if (block > dev->n_sectords)".

Additionally, the asc/ascq to return for an LBA that is not a zone start
LBA should be ILLEGAL REQUEST, regardless if the bad LBA is out of
range.

Reported-by: David Butterfield <redacted>
Signed-off-by: Damien Le Moal <redacted>
<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree.  Please read:
    https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help