Re: (subset) [PATCH 0/5] nvme: validate and decode controller supplied values

From: Keith Busch

Date: Fri Nov 20 2026 - 14:54:45 EST


On Sun, 15 Nov 2026 01:27:51 +0800 (CST), shao.mingyin@xxxxxxxxxx wrote:
> This series adds missing validation and endian decoding for values that
> come from a controller, a backing controller or a user request.
>
> Patch 1 rejects an invalid ZASL from the controller. nvme_set_max_append()
> shifts 1 by zasl + 3; a value of 29 or more shifts a 32-bit value by 32 or
> more, and the old code also used a signed int for the shift.
>
> [...]

Thanks, applied to nvme-7.4.

[3/5] nvmet: validate the LBA format count of a passthrough namespace
commit: e52b8562e2adb7c3bc77f8899db03f763d9cf49d
[5/5] nvme: bound the reservation report retry loop
commit: b80093c7d0aabb92343f6b333c8ee36e7870ca67
--
Keith Busch <kbusch@xxxxxxxxxx>