]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: validate NVMe deallocate range values
authorchuck <chuck@FreeBSD.org>
Mon, 29 Jun 2020 00:31:58 +0000 (00:31 +0000)
committerchuck <chuck@FreeBSD.org>
Mon, 29 Jun 2020 00:31:58 +0000 (00:31 +0000)
commit3b7a6dbf8b7b6b7fcbc9629742b768c42c729c54
treef306aa012c1585f11b75d48c5cf1f43732bc7666
parent4697065464d489f6ea9d0dd0701a72f839032d9c
bhyve: validate NVMe deallocate range values

For NVMe emulation, validate the Data Set Management LBA ranges do not
exceed the capacity of the backing storage. If they do, return an "LBA
Out of Range" error.

Fixes UNH Test 2.2.3

Tested by: Jason Tubnor
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D24893
usr.sbin/bhyve/pci_nvme.c