Re: [PATCH v3 08/38] zbd: avoid zone buffer overrun

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Jan 07, 2021 / 06:57, Dmitry Fomichev wrote:
> If the total number of zones on a drive is calculated to a value that
> is less than the number of zones it can actually report, zone info
> buffer can be overrun. This may happen not only due to drive firmware
> problems, but also because of underlying software incorrectly
> reporting zoned device capacity.
> 
> Fix this by more carefully setting zone report size.
> 
> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx>

Looks good to me.

Reviewed-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@xxxxxxx>

-- 
Best Regards,
Shin'ichiro Kawasaki



[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux