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)
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
Unknown Object (File)
Sep 3 2024, 11:47 AM
Unknown Object (File)
Aug 26 2024, 1:22 PM
Unknown Object (File)
Aug 18 2024, 12:02 AM
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.