Page MenuHomeFreeBSD

bhyve: validate the NVMe LBA start and count
Needs ReviewPublic

Authored by chuck on Mon, May 18, 6:30 PM.

Details

Reviewers
jhb
imp
Group Reviewers
bhyve
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
Lint
Lint Skipped
Unit
Unit Tests Skipped
Build Status
Buildable 31157

Event Timeline

chuck created this revision.Mon, May 18, 6:30 PM
chuck requested review of this revision.Mon, May 18, 6:30 PM