Page MenuHomeFreeBSD

bhyve: validate the NVMe LBA start and count
ClosedPublic

Authored by chuck on May 18 2020, 6:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 6:12 AM
Unknown Object (File)
Thu, Nov 28, 11:22 PM
Unknown Object (File)
Nov 22 2024, 5:05 PM
Unknown Object (File)
Oct 16 2024, 6:43 PM
Unknown Object (File)
Oct 5 2024, 3:30 AM
Unknown Object (File)
Sep 6 2024, 2:00 PM
Unknown Object (File)
Sep 6 2024, 12:10 PM
Unknown Object (File)
Sep 4 2024, 7:16 PM
Subscribers

Details

Summary

Add checks that the combination of Starting LBA and Number of Logical
Blocks in a command will not exceed the range of the underlying storage.

Note that because NVMe specifices the Starting LBA as a uint64_t, care
must be taken when converting it and the block count to avoid an integer
overflow.

Fixes UNH Tests 2.2.3, 2.3.2, and 2.4.2

Test Plan

Run UNH IOL INTERACT tests

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chuck requested review of this revision.May 18 2020, 6:30 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 29 2020, 12:32 AM
This revision was automatically updated to reflect the committed changes.