+46
−12
Loading
Ensure controller aborts command with 'Invalid Field in Command' status when LPOL/LPOU offset exceeds requested log page size, per spec. NVMe r1.4 specification says “If the host specifies an offset (i.e., LPOL and LPOU) that is greater than the size of the log page requested (e.g., a log page containing 100 bytes is requested starting at offset 200), then the controller shall abort the command with a status of Invalid Field in Command.” Fixes: 7a2a588c (nvmf/ctrlr: check offset parameter for get log page command) Change-Id: I7e56d044e530c75d2597d1b84235e9a3b398c844 Signed-off-by:Dor Deri <dor.deri@dell.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26580 Community-CI: Mellanox Build Bot Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com>